aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahdj007 <dong.juan1@zte.com.cn>2018-08-14 10:35:43 +0800
committerOle Trøan <otroan@employees.org>2018-08-14 11:11:18 +0000
commit22130e163ee2fc618b6681861ab9eafbc7ebf32d (patch)
treeb5e8c9f0f1801db7eda2514b18fdedb591dff4a4
parent758dc46072032b7145a556804a29e87baa602958 (diff)
neighbor advertisement must with target_link option
Change-Id: Ic20eea8f2fd19dd3c1728a1f7c622ef0c9728f81 Signed-off-by: ahdj007 <dong.juan1@zte.com.cn>
-rwxr-xr-x[-rw-r--r--]src/vnet/ip/ip6_neighbor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c
index c506ad7cfe9..1093009dd15 100644..100755
--- 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 =