aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}