X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvat%2Fapi_format.c;h=96cf802690053b33ac12fa1b521897a8b31455d5;hb=87460d05e8a2257a26fb3bc656572e2d5e9ccd52;hp=0e53f56196ad4bd8b9cedda0b90a5fe4bafcacce;hpb=b99de836f7f03609b92e6e8f0d7ad4d87940a400;p=vpp.git diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 0e53f56196a..96cf8026900 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -8315,7 +8315,7 @@ api_tap_create_v2 (vat_main_t * vam) clib_memcpy (mp->host_bridge, host_bridge, vec_len (host_bridge)); if (host_ip4_prefix_len) clib_memcpy (mp->host_ip4_addr, &host_ip4_addr, 4); - if (host_ip4_prefix_len) + if (host_ip6_prefix_len) clib_memcpy (mp->host_ip6_addr, &host_ip6_addr, 16); if (host_ip4_gw_set) clib_memcpy (mp->host_ip4_gw, &host_ip4_gw, 4);