blob: 29e36b4b4feba0ce9bf92fe2c3544668c2c47d49 [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;
5
Eric W. Biederman4db67e82012-08-06 08:42:04 +00006struct netns_sctp {
Eric W. Biederman2ce95502012-08-06 08:43:06 +00007 /* 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
9 * for this socket at the initialization time.
10 */
11 struct sock *ctl_sock;
12
Eric W. Biederman4db67e82012-08-06 08:42:04 +000013 /* This is the global local address list.
14 * We actively maintain this complete list of addresses on
15 * the system by catching address add/delete events.
16 *
17 * It is a list of sctp_sockaddr_entry.
18 */
19 struct list_head local_addr_list;
20 struct list_head addr_waitq;
21 struct timer_list addr_wq_timer;
22 struct list_head auto_asconf_splist;
23 spinlock_t addr_wq_lock;
24
25 /* Lock that protects the local_addr_list writers */
26 spinlock_t local_addr_lock;
27};
28
29#endif /* __NETNS_SCTP_H__ */