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; |
Eric W. Biederman | 13d782f | 2012-08-06 08:45:15 +0000 | [diff] [blame] | 5 | struct proc_dir_entry; |
Eric W. Biederman | b01a240 | 2012-08-06 08:47:55 +0000 | [diff] [blame] | 6 | struct sctp_mib; |
Eric W. Biederman | ebb7e95 | 2012-08-07 07:23:59 +0000 | [diff] [blame^] | 7 | struct ctl_table_header; |
Eric W. Biederman | 2ce9550 | 2012-08-06 08:43:06 +0000 | [diff] [blame] | 8 | |
Eric W. Biederman | 4db67e8 | 2012-08-06 08:42:04 +0000 | [diff] [blame] | 9 | struct netns_sctp { |
Eric W. Biederman | b01a240 | 2012-08-06 08:47:55 +0000 | [diff] [blame] | 10 | DEFINE_SNMP_STAT(struct sctp_mib, sctp_statistics); |
| 11 | |
Eric W. Biederman | 13d782f | 2012-08-06 08:45:15 +0000 | [diff] [blame] | 12 | #ifdef CONFIG_PROC_FS |
| 13 | struct proc_dir_entry *proc_net_sctp; |
| 14 | #endif |
Eric W. Biederman | ebb7e95 | 2012-08-07 07:23:59 +0000 | [diff] [blame^] | 15 | #ifdef CONFIG_SYSCTL |
| 16 | struct ctl_table_header *sysctl_header; |
| 17 | #endif |
Eric W. Biederman | 2ce9550 | 2012-08-06 08:43:06 +0000 | [diff] [blame] | 18 | /* This is the global socket data structure used for responding to |
| 19 | * the Out-of-the-blue (OOTB) packets. A control sock will be created |
| 20 | * for this socket at the initialization time. |
| 21 | */ |
| 22 | struct sock *ctl_sock; |
| 23 | |
Eric W. Biederman | 4db67e8 | 2012-08-06 08:42:04 +0000 | [diff] [blame] | 24 | /* This is the global local address list. |
| 25 | * We actively maintain this complete list of addresses on |
| 26 | * the system by catching address add/delete events. |
| 27 | * |
| 28 | * It is a list of sctp_sockaddr_entry. |
| 29 | */ |
| 30 | struct list_head local_addr_list; |
| 31 | struct list_head addr_waitq; |
| 32 | struct timer_list addr_wq_timer; |
| 33 | struct list_head auto_asconf_splist; |
| 34 | spinlock_t addr_wq_lock; |
| 35 | |
| 36 | /* Lock that protects the local_addr_list writers */ |
| 37 | spinlock_t local_addr_lock; |
Eric W. Biederman | ebb7e95 | 2012-08-07 07:23:59 +0000 | [diff] [blame^] | 38 | |
Eric W. Biederman | 4db67e8 | 2012-08-06 08:42:04 +0000 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | #endif /* __NETNS_SCTP_H__ */ |