Eric W. Biederman | 4db67e8 | 2012-08-06 08:42:04 +0000 | [diff] [blame] | 1 | #ifndef __NETNS_SCTP_H__ |
| 2 | #define __NETNS_SCTP_H__ |
| 3 | |
Eric W. Biederman | 2ce9550 | 2012-08-06 08:43:06 +0000 | [diff] [blame^] | 4 | struct sock; |
| 5 | |
Eric W. Biederman | 4db67e8 | 2012-08-06 08:42:04 +0000 | [diff] [blame] | 6 | struct netns_sctp { |
Eric W. Biederman | 2ce9550 | 2012-08-06 08:43:06 +0000 | [diff] [blame^] | 7 | /* 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. Biederman | 4db67e8 | 2012-08-06 08:42:04 +0000 | [diff] [blame] | 13 | /* 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__ */ |