]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - net/ipv6/addrconf.c
ipv6: add special mode forwarding=2 to send RS while
[linux-imx.git] / net / ipv6 / addrconf.c
index b5ab939d4d92dec859ed4a310c2ac9bfc1aa629c..5d59520ae162af8b665116f70b027780327af61b 100644 (file)
@@ -2960,7 +2960,8 @@ static void addrconf_dad_completed(struct inet6_ifaddr *ifp)
           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)) {