Re: [PATCH net v2] net: ipv6: Fix a bug in ndisc_send_ns when netdev only has a global address

2019-07-30 Thread David Ahern
On 7/29/19 8:35 PM, Su Yanjun wrote: > diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c > index 083cc1c..156c027 100644 > --- a/net/ipv6/ndisc.c > +++ b/net/ipv6/ndisc.c > @@ -603,11 +603,14 @@ void ndisc_send_ns(struct net_device *dev, const struct > in6_addr *solicit, > int inc_opt =

[PATCH net v2] net: ipv6: Fix a bug in ndisc_send_ns when netdev only has a global address

2019-07-29 Thread Su Yanjun
When the egress interface does not have a link local address, it can not communicate with other hosts. In RFC4861, 7.2.2 says "If the source address of the packet prompting the solicitation is the same as one of the addresses assigned to the outgoing interface, that address SHOULD be placed in