conntrack.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __NETNS_CONNTRACK_H
  2. #define __NETNS_CONNTRACK_H
  3. #include <linux/list.h>
  4. #include <linux/list_nulls.h>
  5. #include <linux/atomic.h>
  6. struct ctl_table_header;
  7. struct nf_conntrack_ecache;
  8. struct netns_ct {
  9. atomic_t count;
  10. unsigned int expect_count;
  11. unsigned int htable_size;
  12. struct kmem_cache *nf_conntrack_cachep;
  13. struct hlist_nulls_head *hash;
  14. struct hlist_head *expect_hash;
  15. struct hlist_nulls_head unconfirmed;
  16. struct hlist_nulls_head dying;
  17. struct ip_conntrack_stat __percpu *stat;
  18. struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
  19. struct nf_exp_event_notifier __rcu *nf_expect_event_cb;
  20. int sysctl_events;
  21. unsigned int sysctl_events_retry_timeout;
  22. int sysctl_acct;
  23. int sysctl_tstamp;
  24. int sysctl_checksum;
  25. unsigned int sysctl_log_invalid; /* Log invalid packets */
  26. int sysctl_auto_assign_helper;
  27. bool auto_assign_helper_warned;
  28. #if defined(CONFIG_NF_CONNTRACK_LABELS)
  29. unsigned int labels_used;
  30. u8 label_words;
  31. #endif
  32. #ifdef CONFIG_NF_NAT_NEEDED
  33. struct hlist_head *nat_bysource;
  34. unsigned int nat_htable_size;
  35. #endif
  36. #ifdef CONFIG_SYSCTL
  37. struct ctl_table_header *sysctl_header;
  38. struct ctl_table_header *acct_sysctl_header;
  39. struct ctl_table_header *tstamp_sysctl_header;
  40. struct ctl_table_header *event_sysctl_header;
  41. struct ctl_table_header *helper_sysctl_header;
  42. #endif
  43. char *slabname;
  44. };
  45. #endif