aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/af_inet6.c
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-03-26 19:52:32 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-26 19:52:32 -0400
commit6ab57e7e7fa316552d0f94eaebf1def1d49f18da (patch)
tree5e0f5d2d9d302758a6c3bebd91ff0c11b110f5a1 /net/ipv6/af_inet6.c
parenta233352506be35aafd49c0ba8c88ca96ebde1c3d (diff)
[NETNS][IPV6] anycast - handle several network namespace
Make use of the network namespace information to have this protocol to handle several 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/af_inet6.c')
-rw-r--r--net/ipv6/af_inet6.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index 12f04e9d3e88..1731b0abf7f5 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -862,11 +862,16 @@ static int inet6_net_init(struct net *net)
862 err = tcp6_proc_init(net); 862 err = tcp6_proc_init(net);
863 if (err) 863 if (err)
864 goto proc_tcp6_fail; 864 goto proc_tcp6_fail;
865 err = ac6_proc_init(net);
866 if (err)
867 goto proc_ac6_fail;
865out: 868out:
866#endif 869#endif
867 return err; 870 return err;
868 871
869#ifdef CONFIG_PROC_FS 872#ifdef CONFIG_PROC_FS
873proc_ac6_fail:
874 tcp6_proc_exit(net);
870proc_tcp6_fail: 875proc_tcp6_fail:
871 udp6_proc_exit(net); 876 udp6_proc_exit(net);
872 goto out; 877 goto out;
@@ -878,6 +883,7 @@ static void inet6_net_exit(struct net *net)
878#ifdef CONFIG_PROC_FS 883#ifdef CONFIG_PROC_FS
879 udp6_proc_exit(net); 884 udp6_proc_exit(net);
880 tcp6_proc_exit(net); 885 tcp6_proc_exit(net);
886 ac6_proc_exit(net);
881#endif 887#endif
882} 888}
883 889
@@ -965,9 +971,6 @@ static int __init inet6_init(void)
965 goto proc_udplite6_fail; 971 goto proc_udplite6_fail;
966 if (ipv6_misc_proc_init()) 972 if (ipv6_misc_proc_init())
967 goto proc_misc6_fail; 973 goto proc_misc6_fail;
968
969 if (ac6_proc_init())
970 goto proc_anycast6_fail;
971 if (if6_proc_init()) 974 if (if6_proc_init())
972 goto proc_if6_fail; 975 goto proc_if6_fail;
973#endif 976#endif
@@ -1039,8 +1042,6 @@ ip6_route_fail:
1039#ifdef CONFIG_PROC_FS 1042#ifdef CONFIG_PROC_FS
1040 if6_proc_exit(); 1043 if6_proc_exit();
1041proc_if6_fail: 1044proc_if6_fail:
1042 ac6_proc_exit();
1043proc_anycast6_fail:
1044 ipv6_misc_proc_exit(); 1045 ipv6_misc_proc_exit();
1045proc_misc6_fail: 1046proc_misc6_fail:
1046 udplite6_proc_exit(); 1047 udplite6_proc_exit();
@@ -1101,7 +1102,6 @@ static void __exit inet6_exit(void)
1101 1102
1102 /* Cleanup code parts. */ 1103 /* Cleanup code parts. */
1103 if6_proc_exit(); 1104 if6_proc_exit();
1104 ac6_proc_exit();
1105 ipv6_misc_proc_exit(); 1105 ipv6_misc_proc_exit();
1106 udplite6_proc_exit(); 1106 udplite6_proc_exit();
1107 raw6_proc_exit(); 1107 raw6_proc_exit();