aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-07 03:23:59 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-15 02:30:37 -0400
commitebb7e95d9351f77a8ec1fca20eb645051401b7b2 (patch)
tree9edfe4abbdac8c05f3fe19ef3eb5d7e32500b69b /include/net/netns
parentb01a24078fa3fc4f0f447d1306ce5adc495ead86 (diff)
sctp: Add infrastructure for per net sysctls
Start with an empty sctp_net_table that will be populated as the various tunable sysctls are made per net. 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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h
index 06ccddf9566c..9576b60cbd25 100644
--- a/include/net/netns/sctp.h
+++ b/include/net/netns/sctp.h
@@ -4,6 +4,7 @@
4struct sock; 4struct sock;
5struct proc_dir_entry; 5struct proc_dir_entry;
6struct sctp_mib; 6struct sctp_mib;
7struct ctl_table_header;
7 8
8struct netns_sctp { 9struct netns_sctp {
9 DEFINE_SNMP_STAT(struct sctp_mib, sctp_statistics); 10 DEFINE_SNMP_STAT(struct sctp_mib, sctp_statistics);
@@ -11,7 +12,9 @@ struct netns_sctp {
11#ifdef CONFIG_PROC_FS 12#ifdef CONFIG_PROC_FS
12 struct proc_dir_entry *proc_net_sctp; 13 struct proc_dir_entry *proc_net_sctp;
13#endif 14#endif
14 15#ifdef CONFIG_SYSCTL
16 struct ctl_table_header *sysctl_header;
17#endif
15 /* This is the global socket data structure used for responding to 18 /* This is the global socket data structure used for responding to
16 * the Out-of-the-blue (OOTB) packets. A control sock will be created 19 * the Out-of-the-blue (OOTB) packets. A control sock will be created
17 * for this socket at the initialization time. 20 * for this socket at the initialization time.
@@ -32,6 +35,7 @@ struct netns_sctp {
32 35
33 /* Lock that protects the local_addr_list writers */ 36 /* Lock that protects the local_addr_list writers */
34 spinlock_t local_addr_lock; 37 spinlock_t local_addr_lock;
38
35}; 39};
36 40
37#endif /* __NETNS_SCTP_H__ */ 41#endif /* __NETNS_SCTP_H__ */