ia64/xen-unstable

view patches/linux-2.6.16.13/ipv6-no-autoconf.patch @ 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>
author kaf24@firebug.cl.cam.ac.uk
date Sat Jun 17 08:42:31 2006 +0100 (2006-06-17)
parents
children
line source
1 net/ipv6/addrconf.c | 2 ++
2 1 files changed, 2 insertions(+)
4 Index: build/net/ipv6/addrconf.c
5 ===================================================================
6 --- build.orig/net/ipv6/addrconf.c
7 +++ build/net/ipv6/addrconf.c
8 @@ -2462,6 +2462,7 @@ static void addrconf_dad_start(struct in
9 spin_lock_bh(&ifp->lock);
11 if (dev->flags&(IFF_NOARP|IFF_LOOPBACK) ||
12 + !(dev->flags&IFF_MULTICAST) ||
13 !(ifp->flags&IFA_F_TENTATIVE)) {
14 ifp->flags &= ~IFA_F_TENTATIVE;
15 spin_unlock_bh(&ifp->lock);
16 @@ -2546,6 +2547,7 @@ static void addrconf_dad_completed(struc
17 if (ifp->idev->cnf.forwarding == 0 &&
18 ifp->idev->cnf.rtr_solicits > 0 &&
19 (dev->flags&IFF_LOOPBACK) == 0 &&
20 + (dev->flags & IFF_MULTICAST) &&
21 (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) {
22 struct in6_addr all_routers;