Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b99de83
)
fix ip6 prefix check for tap_v2
41/15341/2
author
Michal Cmarada
<mcmarada@cisco.com>
Wed, 17 Oct 2018 11:40:32 +0000
(13:40 +0200)
committer
Dave Barach
<openvpp@barachs.net>
Wed, 17 Oct 2018 15:13:38 +0000
(15:13 +0000)
Change-Id: Ifbb1393fc3c50c140c09e8baedcd4a92189ba56e
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
src/vat/api_format.c
patch
|
blob
|
history
diff --git
a/src/vat/api_format.c
b/src/vat/api_format.c
index
0e53f56
..
96cf802
100644
(file)
--- 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_ip
4
_prefix_len)
+ if (host_ip
6
_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);