summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-2.6.30/301-ipv6_send_rs_when_forwarding.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/patches-2.6.30/301-ipv6_send_rs_when_forwarding.patch')
-rw-r--r--target/linux/generic/patches-2.6.30/301-ipv6_send_rs_when_forwarding.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.30/301-ipv6_send_rs_when_forwarding.patch b/target/linux/generic/patches-2.6.30/301-ipv6_send_rs_when_forwarding.patch
new file mode 100644
index 0000000000..b4fef3f91a
--- /dev/null
+++ b/target/linux/generic/patches-2.6.30/301-ipv6_send_rs_when_forwarding.patch
@@ -0,0 +1,12 @@
+--- a/net/ipv6/addrconf.c
++++ b/net/ipv6/addrconf.c
+@@ -2839,7 +2839,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)) {