ia64/xen-unstable
changeset 10463:c6f8fcca0282
[LINUX] Kernel should not send out IPv6 autoconfig multicast
packets if the interface is not marked as multicast-capable.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
packets if the interface is not marked as multicast-capable.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Sat Jun 17 08:42:31 2006 +0100 (2006-06-17) |
parents | 45f504d6b548 |
children | 0849bb1b73f9 |
files | patches/linux-2.6.16.13/ipv6-no-autoconf.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/patches/linux-2.6.16.13/ipv6-no-autoconf.patch Sat Jun 17 08:42:31 2006 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 + net/ipv6/addrconf.c | 2 ++ 1.5 + 1 files changed, 2 insertions(+) 1.6 + 1.7 +Index: build/net/ipv6/addrconf.c 1.8 +=================================================================== 1.9 +--- build.orig/net/ipv6/addrconf.c 1.10 ++++ build/net/ipv6/addrconf.c 1.11 +@@ -2462,6 +2462,7 @@ static void addrconf_dad_start(struct in 1.12 + spin_lock_bh(&ifp->lock); 1.13 + 1.14 + if (dev->flags&(IFF_NOARP|IFF_LOOPBACK) || 1.15 ++ !(dev->flags&IFF_MULTICAST) || 1.16 + !(ifp->flags&IFA_F_TENTATIVE)) { 1.17 + ifp->flags &= ~IFA_F_TENTATIVE; 1.18 + spin_unlock_bh(&ifp->lock); 1.19 +@@ -2546,6 +2547,7 @@ static void addrconf_dad_completed(struc 1.20 + if (ifp->idev->cnf.forwarding == 0 && 1.21 + ifp->idev->cnf.rtr_solicits > 0 && 1.22 + (dev->flags&IFF_LOOPBACK) == 0 && 1.23 ++ (dev->flags & IFF_MULTICAST) && 1.24 + (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) { 1.25 + struct in6_addr all_routers; 1.26 +