aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test/vat/api_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-api-test/vat/api_format.c')
-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 6e1db76c25b..0b4ef5590e5 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -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));