blob: 9c20a82a77ec8b493aedd44e111a73467f571343 [file] [log] [blame]
Eric W. Biederman4db67e82012-08-06 08:42:04 +00001#ifndef __NETNS_SCTP_H__
2#define __NETNS_SCTP_H__
3
Eric W. Biederman2ce95502012-08-06 08:43:06 +00004struct sock;
Eric W. Biederman13d782f2012-08-06 08:45:15 +00005struct proc_dir_entry;
Eric W. Biederman2ce95502012-08-06 08:43:06 +00006
Eric W. Biederman4db67e82012-08-06 08:42:04 +00007struct netns_sctp {
Eric W. Biederman13d782f2012-08-06 08:45:15 +00008#ifdef CONFIG_PROC_FS
9 struct proc_dir_entry *proc_net_sctp;
10#endif
11
Eric W. Biederman2ce95502012-08-06 08:43:06 +000012 /* This is the global socket data structure used for responding to
13 * the Out-of-the-blue (OOTB) packets. A control sock will be created
14 * for this socket at the initialization time.
15 */
16 struct sock *ctl_sock;
17
Eric W. Biederman4db67e82012-08-06 08:42:04 +000018 /* This is the global local address list.
19 * We actively maintain this complete list of addresses on
20 * the system by catching address add/delete events.
21 *
22 * It is a list of sctp_sockaddr_entry.
23 */
24 struct list_head local_addr_list;
25 struct list_head addr_waitq;
26 struct timer_list addr_wq_timer;
27 struct list_head auto_asconf_splist;
28 spinlock_t addr_wq_lock;
29
30 /* Lock that protects the local_addr_list writers */
31 spinlock_t local_addr_lock;
32};
33
34#endif /* __NETNS_SCTP_H__ */