From: Hongjun Ni Date: Sat, 28 May 2016 17:27:14 +0000 (+0800) Subject: Fix VxLAN-GPE add_del API issue X-Git-Tag: v16.09-rc1~364 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=473ec878f9e45084548d3313e5b7b845257d5dbc;p=vpp.git Fix VxLAN-GPE add_del API issue Change-Id: I4210b3320d3fe841ba7ff1349b6a52affc047338 Signed-off-by: Hongjun Ni --- diff --git a/vpp/api/api.c b/vpp/api/api.c index 52d0b2d21ba..6033dc4d34c 100644 --- a/vpp/api/api.c +++ b/vpp/api/api.c @@ -4569,8 +4569,8 @@ vl_api_vxlan_gpe_add_del_tunnel_t_handler } /* Check src & dst are different */ - if ((a->is_ip6 && memcmp(mp->local, mp->remote, 16) == 0) || - (!a->is_ip6 && memcmp(mp->local, mp->remote, 4) == 0)) { + if ((mp->is_ipv6 && memcmp(mp->local, mp->remote, 16) == 0) || + (!mp->is_ipv6 && memcmp(mp->local, mp->remote, 4) == 0)) { rv = VNET_API_ERROR_SAME_SRC_DST; goto out; }