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:
758dc46
)
neighbor advertisement must with target_link option
87/14187/3
author
ahdj007
<
[email protected]
>
Tue, 14 Aug 2018 02:35:43 +0000
(10:35 +0800)
committer
Ole Trøan
<
[email protected]
>
Tue, 14 Aug 2018 11:11:18 +0000
(11:11 +0000)
Change-Id: Ic20eea8f2fd19dd3c1728a1f7c622ef0c9728f81
Signed-off-by: ahdj007 <
[email protected]
>
src/vnet/ip/ip6_neighbor.c
[changed mode: 0644->0755]
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip6_neighbor.c
b/src/vnet/ip/ip6_neighbor.c
old mode 100644
(file)
new mode 100755
(executable)
index
c506ad7
..
1093009
--- a/
src/vnet/ip/ip6_neighbor.c
+++ b/
src/vnet/ip/ip6_neighbor.c
@@
-5050,6
+5050,8
@@
send_ip6_na_w_addr (vlib_main_t * vm,
h->neighbor.target_address = ip6_addr[0];
h->neighbor.advertisement_flags = clib_host_to_net_u32
(ICMP6_NEIGHBOR_ADVERTISEMENT_FLAG_OVERRIDE);
+ h->link_layer_option.header.type =
+ ICMP6_NEIGHBOR_DISCOVERY_OPTION_target_link_layer_address;
clib_memcpy (h->link_layer_option.ethernet_address,
hi->hw_address, vec_len (hi->hw_address));
h->neighbor.icmp.checksum =