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>
This commit is contained in:

committed by
David S. Miller

parent
b01a24078f
commit
ebb7e95d93
@@ -375,9 +375,13 @@ static inline void sctp_dbg_objcnt_exit(struct net *) { return; }
|
||||
#if defined CONFIG_SYSCTL
|
||||
void sctp_sysctl_register(void);
|
||||
void sctp_sysctl_unregister(void);
|
||||
int sctp_sysctl_net_register(struct net *net);
|
||||
void sctp_sysctl_net_unregister(struct net *net);
|
||||
#else
|
||||
static inline void sctp_sysctl_register(void) { return; }
|
||||
static inline void sctp_sysctl_unregister(void) { return; }
|
||||
static inline int sctp_sysctl_net_register(struct net *net) { return 0; }
|
||||
static inline void sctp_sysctl_net_unregister(struct net *net) { return; }
|
||||
#endif
|
||||
|
||||
/* Size of Supported Address Parameter for 'x' address types. */
|
||||
|
Reference in New Issue
Block a user