xref: /openbmc/linux/include/net/netns/sctp.h (revision 2ce955035081112cf1590c961da8d94324142b5e)
14db67e80SEric W. Biederman #ifndef __NETNS_SCTP_H__
24db67e80SEric W. Biederman #define __NETNS_SCTP_H__
34db67e80SEric W. Biederman 
4*2ce95503SEric W. Biederman struct sock;
5*2ce95503SEric W. Biederman 
64db67e80SEric W. Biederman struct netns_sctp {
7*2ce95503SEric W. Biederman 	/* This is the global socket data structure used for responding to
8*2ce95503SEric W. Biederman 	 * the Out-of-the-blue (OOTB) packets.  A control sock will be created
9*2ce95503SEric W. Biederman 	 * for this socket at the initialization time.
10*2ce95503SEric W. Biederman 	 */
11*2ce95503SEric W. Biederman 	struct sock *ctl_sock;
12*2ce95503SEric W. Biederman 
134db67e80SEric W. Biederman 	/* This is the global local address list.
144db67e80SEric W. Biederman 	 * We actively maintain this complete list of addresses on
154db67e80SEric W. Biederman 	 * the system by catching address add/delete events.
164db67e80SEric W. Biederman 	 *
174db67e80SEric W. Biederman 	 * It is a list of sctp_sockaddr_entry.
184db67e80SEric W. Biederman 	 */
194db67e80SEric W. Biederman 	struct list_head local_addr_list;
204db67e80SEric W. Biederman 	struct list_head addr_waitq;
214db67e80SEric W. Biederman 	struct timer_list addr_wq_timer;
224db67e80SEric W. Biederman 	struct list_head auto_asconf_splist;
234db67e80SEric W. Biederman 	spinlock_t addr_wq_lock;
244db67e80SEric W. Biederman 
254db67e80SEric W. Biederman 	/* Lock that protects the local_addr_list writers */
264db67e80SEric W. Biederman 	spinlock_t local_addr_lock;
274db67e80SEric W. Biederman };
284db67e80SEric W. Biederman 
294db67e80SEric W. Biederman #endif /* __NETNS_SCTP_H__ */
30