aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-03-04 02:27:06 -0500
committerDavid S. Miller <davem@davemloft.net>2008-03-04 02:27:06 -0500
commitf3db48517f59133610f558f29de8834d7b007691 (patch)
treed4a69e551fb9f10ea64430a26e917ce1d77e39ff /net/ipv6/addrconf.c
parent58f09b78b730cf0d936597272bf35b3d615e967c (diff)
[NETNS][IPV6] ip6_fib - fib6_clean_all handle several network namespaces
The function fib6_clean_all takes the network namespace as parameter. That allows to flush the routes related to a specific network namespace. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Benjamin Thery <benjamin.thery@bull.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 9b3a2d0e4269..a1d872dacad6 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -2431,6 +2431,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)
2431{ 2431{
2432 struct inet6_dev *idev; 2432 struct inet6_dev *idev;
2433 struct inet6_ifaddr *ifa, **bifa; 2433 struct inet6_ifaddr *ifa, **bifa;
2434 struct net *net = dev->nd_net;
2434 int i; 2435 int i;
2435 2436
2436 ASSERT_RTNL(); 2437 ASSERT_RTNL();
@@ -2438,7 +2439,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)
2438 if (dev == init_net.loopback_dev && how == 1) 2439 if (dev == init_net.loopback_dev && how == 1)
2439 how = 0; 2440 how = 0;
2440 2441
2441 rt6_ifdown(dev); 2442 rt6_ifdown(net, dev);
2442 neigh_ifdown(&nd_tbl, dev); 2443 neigh_ifdown(&nd_tbl, dev);
2443 2444
2444 idev = __in6_dev_get(dev); 2445 idev = __in6_dev_get(dev);