summaryrefslogtreecommitdiffstats
path: root/vpp-api-test
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2016-05-20 12:13:02 -0400
committerChris Luke <chrisy@flirble.org>2016-05-20 12:14:32 -0400
commit1728f850666fc5d573a881a965a7fdbf59f08d10 (patch)
tree45644ba314e68fa743aabbc674c49a4cd7df4f05 /vpp-api-test
parent2c386b26c6a94dd9bff062889c242e40dae0a6e2 (diff)
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>
Diffstat (limited to 'vpp-api-test')
-rw-r--r--vpp-api-test/vat/api_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c
index 4776e2adca1..a685f0a28c4 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -7364,8 +7364,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));