summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Cmarada <mcmarada@cisco.com>2018-10-17 13:40:32 +0200
committerMichal Cmarada <mcmarada@cisco.com>2018-10-17 12:17:43 +0000
commit44c6e1d1880513e6e02612509f27b24da04bb5b3 (patch)
treed3f08b86b8e0aec6dbe373d863861eb1d51f2e69 /src
parent44c6ca6038776787671e78e3dae78e812c72429e (diff)
fix ip6 prefix check for tap_v2
Change-Id: Ifbb1393fc3c50c140c09e8baedcd4a92189ba56e Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vat/api_format.c2
1 files changed, 1 insertions, 1 deletions
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);