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 /include | |
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 'include')
-rw-r--r-- | include/net/ipv6.h | 4 | ||||
-rw-r--r-- | include/net/udp.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 8db06af1efbb..e01a563132e8 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -597,8 +597,8 @@ extern int raw6_proc_init(void); | |||
597 | extern void raw6_proc_exit(void); | 597 | extern void raw6_proc_exit(void); |
598 | extern int tcp6_proc_init(void); | 598 | extern int tcp6_proc_init(void); |
599 | extern void tcp6_proc_exit(void); | 599 | extern void tcp6_proc_exit(void); |
600 | extern int udp6_proc_init(void); | 600 | extern int udp6_proc_init(struct net *net); |
601 | extern void udp6_proc_exit(void); | 601 | extern void udp6_proc_exit(struct net *net); |
602 | extern int udplite6_proc_init(void); | 602 | extern int udplite6_proc_init(void); |
603 | extern void udplite6_proc_exit(void); | 603 | extern void udplite6_proc_exit(void); |
604 | extern int ipv6_misc_proc_init(void); | 604 | extern int ipv6_misc_proc_init(void); |
diff --git a/include/net/udp.h b/include/net/udp.h index a1b33d667199..b4cbdce883d1 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -200,8 +200,8 @@ struct udp_iter_state { | |||
200 | }; | 200 | }; |
201 | 201 | ||
202 | #ifdef CONFIG_PROC_FS | 202 | #ifdef CONFIG_PROC_FS |
203 | extern int udp_proc_register(struct udp_seq_afinfo *afinfo); | 203 | extern int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo); |
204 | extern void udp_proc_unregister(struct udp_seq_afinfo *afinfo); | 204 | extern void udp_proc_unregister(struct net *net, struct udp_seq_afinfo *afinfo); |
205 | 205 | ||
206 | extern int udp4_proc_init(void); | 206 | extern int udp4_proc_init(void); |
207 | extern void udp4_proc_exit(void); | 207 | extern void udp4_proc_exit(void); |