VPP-77 Creating VXLAN over IPv6 via API fails

Tunnel dst is incorrectly being set to the requested src address.

Change-Id: I44e2ee475f0572e78d148951c5d4684e85e08ce7
Signed-off-by: Chris Luke <chrisy@flirble.org>
This commit is contained in:
Chris Luke
2016-05-20 12:13:02 -04:00
parent e855480acd
commit d686c632d1

View File

@ -7492,8 +7492,8 @@ static int api_vxlan_add_del_tunnel (vat_main_t * vam)
M (VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel);
if (ipv6_set) {
clib_memcpy(&mp->dst_address, &src6, sizeof(src6));
clib_memcpy(&mp->dst_address, &src6, sizeof(dst6));
clib_memcpy(&mp->src_address, &src6, sizeof(src6));
clib_memcpy(&mp->dst_address, &dst6, sizeof(dst6));
} else {
clib_memcpy(&mp->src_address, &src4, sizeof(src4));
clib_memcpy(&mp->dst_address, &dst4, sizeof(dst4));