neighbor advertisement must with target_link option 87/14187/3
authorahdj007 <dong.juan1@zte.com.cn>
Tue, 14 Aug 2018 02:35:43 +0000 (10:35 +0800)
committerOle Trøan <otroan@employees.org>
Tue, 14 Aug 2018 11:11:18 +0000 (11:11 +0000)
Change-Id: Ic20eea8f2fd19dd3c1728a1f7c622ef0c9728f81
Signed-off-by: ahdj007 <dong.juan1@zte.com.cn>
src/vnet/ip/ip6_neighbor.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c506ad7..1093009
@@ -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 =