summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-05-29 01:27:14 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-05-29 01:27:14 +0800
commit473ec878f9e45084548d3313e5b7b845257d5dbc (patch)
tree57d5f1cc067d666f17ffd465c4266af03bdf2bae
parent404be66978ff77769953eb96c6db036574288697 (diff)
Fix VxLAN-GPE add_del API issue
Change-Id: I4210b3320d3fe841ba7ff1349b6a52affc047338 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
-rw-r--r--vpp/api/api.c4
1 files changed, 2 insertions, 2 deletions
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;
}