sctp.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __NETNS_SCTP_H__
  2. #define __NETNS_SCTP_H__
  3. struct sock;
  4. struct proc_dir_entry;
  5. struct sctp_mib;
  6. struct ctl_table_header;
  7. struct netns_sctp {
  8. DEFINE_SNMP_STAT(struct sctp_mib, sctp_statistics);
  9. #ifdef CONFIG_PROC_FS
  10. struct proc_dir_entry *proc_net_sctp;
  11. #endif
  12. #ifdef CONFIG_SYSCTL
  13. struct ctl_table_header *sysctl_header;
  14. #endif
  15. /* This is the global socket data structure used for responding to
  16. * the Out-of-the-blue (OOTB) packets. A control sock will be created
  17. * for this socket at the initialization time.
  18. */
  19. struct sock *ctl_sock;
  20. /* This is the global local address list.
  21. * We actively maintain this complete list of addresses on
  22. * the system by catching address add/delete events.
  23. *
  24. * It is a list of sctp_sockaddr_entry.
  25. */
  26. struct list_head local_addr_list;
  27. struct list_head addr_waitq;
  28. struct timer_list addr_wq_timer;
  29. struct list_head auto_asconf_splist;
  30. spinlock_t addr_wq_lock;
  31. /* Lock that protects the local_addr_list writers */
  32. spinlock_t local_addr_lock;
  33. };
  34. #endif /* __NETNS_SCTP_H__ */