aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-10 06:21:09 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:24 -0500
commit61a0265344786a548e8a0b26cb668e78a71f9602 (patch)
treecebfe266232678baba5b3d48f46b3e0f160bebdb /net/ipv4/af_inet.c
parent5fd30ee7c48bf7f9cd16ab44c8a09fa4a57cc21d (diff)
[NETNS]: Add namespace to API for routing /proc entries creation.
This adds netns parameter to fib_proc_init/exit and replaces __init specifier with __net_init. After this, we will not yet have these proc files show info from the specific namespace - this will be done when these tables become namespaced. Acked-by: Benjamin Thery <benjamin.thery@bull.net> Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 0e12cf646071..d5b8cb1dad67 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1475,14 +1475,14 @@ static int __init ipv4_proc_init(void)
1475 goto out_tcp; 1475 goto out_tcp;
1476 if (udp4_proc_init()) 1476 if (udp4_proc_init())
1477 goto out_udp; 1477 goto out_udp;
1478 if (fib_proc_init()) 1478 if (fib_proc_init(&init_net))
1479 goto out_fib; 1479 goto out_fib;
1480 if (ip_misc_proc_init()) 1480 if (ip_misc_proc_init())
1481 goto out_misc; 1481 goto out_misc;
1482out: 1482out:
1483 return rc; 1483 return rc;
1484out_misc: 1484out_misc:
1485 fib_proc_exit(); 1485 fib_proc_exit(&init_net);
1486out_fib: 1486out_fib:
1487 udp4_proc_exit(); 1487 udp4_proc_exit();
1488out_udp: 1488out_udp: