diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-03-21 07:14:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-21 07:14:17 -0400 |
commit | 0c96d8c50bffb7f02690dd8a8cf1adb8e07e100f (patch) | |
tree | 9add3d8686b41aa3022b49d9cc57710865245e26 /net/ipv6/udp.c | |
parent | f40c8174d3c21bf178283f3ef3aa8c7bf238fdec (diff) |
[NETNS][IPV6] udp6 - make proc per namespace
The proc init/exit functions take a new network namespace parameter in
order to register/unregister /proc/net/udp6 for a namespace.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index d6e311f6c8eb..af619d48ba80 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -989,13 +989,13 @@ static struct udp_seq_afinfo udp6_seq_afinfo = { | |||
989 | .seq_fops = &udp6_seq_fops, | 989 | .seq_fops = &udp6_seq_fops, |
990 | }; | 990 | }; |
991 | 991 | ||
992 | int __init udp6_proc_init(void) | 992 | int udp6_proc_init(struct net *net) |
993 | { | 993 | { |
994 | return udp_proc_register(&udp6_seq_afinfo); | 994 | return udp_proc_register(net, &udp6_seq_afinfo); |
995 | } | 995 | } |
996 | 996 | ||
997 | void udp6_proc_exit(void) { | 997 | void udp6_proc_exit(struct net *net) { |
998 | udp_proc_unregister(&udp6_seq_afinfo); | 998 | udp_proc_unregister(net, &udp6_seq_afinfo); |
999 | } | 999 | } |
1000 | #endif /* CONFIG_PROC_FS */ | 1000 | #endif /* CONFIG_PROC_FS */ |
1001 | 1001 | ||