diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-06 04:45:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-15 02:29:53 -0400 |
commit | 13d782f6b4fbbaf9d0380a9947deb45a9de46ae7 (patch) | |
tree | a9b17830724d4470af1a37abec88902bd1a09aca /include/net/netns | |
parent | 632c928a6a77fe96cda34a9978e1f6019ffc38f4 (diff) |
sctp: Make the proc files per network namespace.
- Convert all of the files under /proc/net/sctp to be per
network namespace.
- Don't print anything for /proc/net/sctp/snmp except in
the initial network namespaces as the snmp counters still
have to be converted to be per network namespace.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/sctp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h index 29e36b4b4feb..9c20a82a77ec 100644 --- a/include/net/netns/sctp.h +++ b/include/net/netns/sctp.h | |||
@@ -2,8 +2,13 @@ | |||
2 | #define __NETNS_SCTP_H__ | 2 | #define __NETNS_SCTP_H__ |
3 | 3 | ||
4 | struct sock; | 4 | struct sock; |
5 | struct proc_dir_entry; | ||
5 | 6 | ||
6 | struct netns_sctp { | 7 | struct netns_sctp { |
8 | #ifdef CONFIG_PROC_FS | ||
9 | struct proc_dir_entry *proc_net_sctp; | ||
10 | #endif | ||
11 | |||
7 | /* This is the global socket data structure used for responding to | 12 | /* This is the global socket data structure used for responding to |
8 | * the Out-of-the-blue (OOTB) packets. A control sock will be created | 13 | * the Out-of-the-blue (OOTB) packets. A control sock will be created |
9 | * for this socket at the initialization time. | 14 | * for this socket at the initialization time. |