xref: /openbmc/linux/include/net/netns/sctp.h (revision b01a24078fa3fc4f0f447d1306ce5adc495ead86)
14db67e80SEric W. Biederman #ifndef __NETNS_SCTP_H__
24db67e80SEric W. Biederman #define __NETNS_SCTP_H__
34db67e80SEric W. Biederman 
42ce95503SEric W. Biederman struct sock;
513d782f6SEric W. Biederman struct proc_dir_entry;
6*b01a2407SEric W. Biederman struct sctp_mib;
72ce95503SEric W. Biederman 
84db67e80SEric W. Biederman struct netns_sctp {
9*b01a2407SEric W. Biederman 	DEFINE_SNMP_STAT(struct sctp_mib, sctp_statistics);
10*b01a2407SEric W. Biederman 
1113d782f6SEric W. Biederman #ifdef CONFIG_PROC_FS
1213d782f6SEric W. Biederman 	struct proc_dir_entry *proc_net_sctp;
1313d782f6SEric W. Biederman #endif
1413d782f6SEric W. Biederman 
152ce95503SEric W. Biederman 	/* This is the global socket data structure used for responding to
162ce95503SEric W. Biederman 	 * the Out-of-the-blue (OOTB) packets.  A control sock will be created
172ce95503SEric W. Biederman 	 * for this socket at the initialization time.
182ce95503SEric W. Biederman 	 */
192ce95503SEric W. Biederman 	struct sock *ctl_sock;
202ce95503SEric W. Biederman 
214db67e80SEric W. Biederman 	/* This is the global local address list.
224db67e80SEric W. Biederman 	 * We actively maintain this complete list of addresses on
234db67e80SEric W. Biederman 	 * the system by catching address add/delete events.
244db67e80SEric W. Biederman 	 *
254db67e80SEric W. Biederman 	 * It is a list of sctp_sockaddr_entry.
264db67e80SEric W. Biederman 	 */
274db67e80SEric W. Biederman 	struct list_head local_addr_list;
284db67e80SEric W. Biederman 	struct list_head addr_waitq;
294db67e80SEric W. Biederman 	struct timer_list addr_wq_timer;
304db67e80SEric W. Biederman 	struct list_head auto_asconf_splist;
314db67e80SEric W. Biederman 	spinlock_t addr_wq_lock;
324db67e80SEric W. Biederman 
334db67e80SEric W. Biederman 	/* Lock that protects the local_addr_list writers */
344db67e80SEric W. Biederman 	spinlock_t local_addr_lock;
354db67e80SEric W. Biederman };
364db67e80SEric W. Biederman 
374db67e80SEric W. Biederman #endif /* __NETNS_SCTP_H__ */
38