]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Fix ipv6 link down handling.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 18 Jul 2007 09:52:33 +0000 (02:52 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:28 +0000 (14:27 -0700)
[IPV6]: Call inet6addr_chain notifiers on link down

Currently if the link is brought down via ip link or ifconfig down,
the inet6addr_chain notifiers are not called even though all
the addresses are removed from the interface.  This caused SCTP
to add duplicate addresses to it's list.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/addrconf.c

index f96ed76d8fa4be902ea922f113bb6a18dab6010b..2cc3728f6a2d2ddd5c722b5235befa6aa061ce7e 100644 (file)
@@ -2472,6 +2472,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)
                write_unlock_bh(&idev->lock);
 
                __ipv6_ifa_notify(RTM_DELADDR, ifa);
+               atomic_notifier_call_chain(&inet6addr_chain, NETDEV_DOWN, ifa);
                in6_ifa_put(ifa);
 
                write_lock_bh(&idev->lock);