2012-08-06 15:42:04 +07:00
|
|
|
#ifndef __NETNS_SCTP_H__
|
|
|
|
#define __NETNS_SCTP_H__
|
|
|
|
|
2012-08-06 15:43:06 +07:00
|
|
|
struct sock;
|
|
|
|
|
2012-08-06 15:42:04 +07:00
|
|
|
struct netns_sctp {
|
2012-08-06 15:43:06 +07:00
|
|
|
/* This is the global socket data structure used for responding to
|
|
|
|
* the Out-of-the-blue (OOTB) packets. A control sock will be created
|
|
|
|
* for this socket at the initialization time.
|
|
|
|
*/
|
|
|
|
struct sock *ctl_sock;
|
|
|
|
|
2012-08-06 15:42:04 +07:00
|
|
|
/* This is the global local address list.
|
|
|
|
* We actively maintain this complete list of addresses on
|
|
|
|
* the system by catching address add/delete events.
|
|
|
|
*
|
|
|
|
* It is a list of sctp_sockaddr_entry.
|
|
|
|
*/
|
|
|
|
struct list_head local_addr_list;
|
|
|
|
struct list_head addr_waitq;
|
|
|
|
struct timer_list addr_wq_timer;
|
|
|
|
struct list_head auto_asconf_splist;
|
|
|
|
spinlock_t addr_wq_lock;
|
|
|
|
|
|
|
|
/* Lock that protects the local_addr_list writers */
|
|
|
|
spinlock_t local_addr_lock;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __NETNS_SCTP_H__ */
|