aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp/sctp.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-06 04:45:15 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-15 02:29:53 -0400
commit13d782f6b4fbbaf9d0380a9947deb45a9de46ae7 (patch)
treea9b17830724d4470af1a37abec88902bd1a09aca /include/net/sctp/sctp.h
parent632c928a6a77fe96cda34a9978e1f6019ffc38f4 (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/sctp/sctp.h')
-rw-r--r--include/net/sctp/sctp.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index 550a81bbfc71..b49588a51d80 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -172,14 +172,14 @@ void sctp_backlog_migrate(struct sctp_association *assoc,
172/* 172/*
173 * sctp/proc.c 173 * sctp/proc.c
174 */ 174 */
175int sctp_snmp_proc_init(void); 175int sctp_snmp_proc_init(struct net *net);
176void sctp_snmp_proc_exit(void); 176void sctp_snmp_proc_exit(struct net *net);
177int sctp_eps_proc_init(void); 177int sctp_eps_proc_init(struct net *net);
178void sctp_eps_proc_exit(void); 178void sctp_eps_proc_exit(struct net *net);
179int sctp_assocs_proc_init(void); 179int sctp_assocs_proc_init(struct net *net);
180void sctp_assocs_proc_exit(void); 180void sctp_assocs_proc_exit(struct net *net);
181int sctp_remaddr_proc_init(void); 181int sctp_remaddr_proc_init(struct net *net);
182void sctp_remaddr_proc_exit(void); 182void sctp_remaddr_proc_exit(struct net *net);
183 183
184 184
185/* 185/*
@@ -360,16 +360,16 @@ atomic_t sctp_dbg_objcnt_## name = ATOMIC_INIT(0)
360#define SCTP_DBG_OBJCNT_ENTRY(name) \ 360#define SCTP_DBG_OBJCNT_ENTRY(name) \
361{.label= #name, .counter= &sctp_dbg_objcnt_## name} 361{.label= #name, .counter= &sctp_dbg_objcnt_## name}
362 362
363void sctp_dbg_objcnt_init(void); 363void sctp_dbg_objcnt_init(struct net *);
364void sctp_dbg_objcnt_exit(void); 364void sctp_dbg_objcnt_exit(struct net *);
365 365
366#else 366#else
367 367
368#define SCTP_DBG_OBJCNT_INC(name) 368#define SCTP_DBG_OBJCNT_INC(name)
369#define SCTP_DBG_OBJCNT_DEC(name) 369#define SCTP_DBG_OBJCNT_DEC(name)
370 370
371static inline void sctp_dbg_objcnt_init(void) { return; } 371static inline void sctp_dbg_objcnt_init(struct net *) { return; }
372static inline void sctp_dbg_objcnt_exit(void) { return; } 372static inline void sctp_dbg_objcnt_exit(struct net *) { return; }
373 373
374#endif /* CONFIG_SCTP_DBG_OBJCOUNT */ 374#endif /* CONFIG_SCTP_DBG_OBJCOUNT */
375 375
@@ -585,7 +585,6 @@ for (pos = chunk->subh.fwdtsn_hdr->skip;\
585 585
586extern struct proto sctp_prot; 586extern struct proto sctp_prot;
587extern struct proto sctpv6_prot; 587extern struct proto sctpv6_prot;
588extern struct proc_dir_entry *proc_net_sctp;
589void sctp_put_port(struct sock *sk); 588void sctp_put_port(struct sock *sk);
590 589
591extern struct idr sctp_assocs_id; 590extern struct idr sctp_assocs_id;