summaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorDaniel Lezcano2008-03-04 22:47:14 +0100
committerDavid S. Miller2008-03-04 22:47:14 +0100
commit7b4da53229bb61469bdab321384b9a13406e3485 (patch)
treee2d067ffbbcabaa511b092ac8a9abf7affc40b79 /net/ipv6/route.c
parent[NETNS][IPV6] route6 - Pass network namespace to rt6_add_route_info and rt6_g... (diff)
downloadkernel-qcow2-linux-7b4da53229bb61469bdab321384b9a13406e3485.tar.gz
kernel-qcow2-linux-7b4da53229bb61469bdab321384b9a13406e3485.tar.xz
kernel-qcow2-linux-7b4da53229bb61469bdab321384b9a13406e3485.zip
[NETNS][IPV6] route6 - Pass the network namespace parameter to rt6_purge_dflt_routers
Add a network namespace parameter to rt6_purge_dflt_routers. This is needed to call fib6_get_table with the appropriate 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/route.c')
-rw-r--r--net/ipv6/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 4278cec522c5..ad3d684e544a 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1697,13 +1697,13 @@ struct rt6_info *rt6_add_dflt_router(struct in6_addr *gwaddr,
return rt6_get_dflt_router(gwaddr, dev);
}
-void rt6_purge_dflt_routers(void)
+void rt6_purge_dflt_routers(struct net *net)
{
struct rt6_info *rt;
struct fib6_table *table;
/* NOTE: Keep consistent with rt6_get_dflt_router */
- table = fib6_get_table(&init_net, RT6_TABLE_DFLT);
+ table = fib6_get_table(net, RT6_TABLE_DFLT);
if (table == NULL)
return;