summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-2.6.31/301-ipv6_send_rs_when_forwarding.patch
blob: fc4aa9a9f95b7f179aef068d97f4168e8a213d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -2864,7 +2864,8 @@ static void addrconf_dad_completed(struc
 	   start sending router solicitations.
 	 */
 
-	if (ifp->idev->cnf.forwarding == 0 &&
+	if ((ifp->idev->cnf.forwarding == 0 ||
+	     ifp->idev->cnf.forwarding == 2) &&
 	    ifp->idev->cnf.rtr_solicits > 0 &&
 	    (dev->flags&IFF_LOOPBACK) == 0 &&
 	    (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) {