diff options
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 8f1e5be26d91..3053c685e249 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -2996,12 +2996,12 @@ static void addrconf_dad_completed(struct inet6_ifaddr *ifp) | |||
2996 | 2996 | ||
2997 | ipv6_ifa_notify(RTM_NEWADDR, ifp); | 2997 | ipv6_ifa_notify(RTM_NEWADDR, ifp); |
2998 | 2998 | ||
2999 | /* If added prefix is link local and forwarding is off, | 2999 | /* If added prefix is link local and we are prepared to process |
3000 | start sending router solicitations. | 3000 | router advertisements, start sending router solicitations. |
3001 | */ | 3001 | */ |
3002 | 3002 | ||
3003 | if ((ifp->idev->cnf.forwarding == 0 || | 3003 | if (((ifp->idev->cnf.accept_ra == 1 && !ifp->idev->cnf.forwarding) || |
3004 | ifp->idev->cnf.forwarding == 2) && | 3004 | ifp->idev->cnf.accept_ra == 2) && |
3005 | ifp->idev->cnf.rtr_solicits > 0 && | 3005 | ifp->idev->cnf.rtr_solicits > 0 && |
3006 | (dev->flags&IFF_LOOPBACK) == 0 && | 3006 | (dev->flags&IFF_LOOPBACK) == 0 && |
3007 | (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) { | 3007 | (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) { |