From 22130e163ee2fc618b6681861ab9eafbc7ebf32d Mon Sep 17 00:00:00 2001 From: ahdj007 Date: Tue, 14 Aug 2018 10:35:43 +0800 Subject: neighbor advertisement must with target_link option Change-Id: Ic20eea8f2fd19dd3c1728a1f7c622ef0c9728f81 Signed-off-by: ahdj007 --- src/vnet/ip/ip6_neighbor.c | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 src/vnet/ip/ip6_neighbor.c (limited to 'src') diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c old mode 100644 new mode 100755 index c506ad7cfe9..1093009dd15 --- 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 = -- cgit 1.2.3-korg