conntrack.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifdef CONFIG_SYSCTL
  27. struct ctl_table_header *sysctl_header;
  28. struct ctl_table_header *acct_sysctl_header;
  29. struct ctl_table_header *tstamp_sysctl_header;
  30. struct ctl_table_header *event_sysctl_header;
  31. #endif
  32. char *slabname;
  33. };
  34. #endif