conntrack.h 907 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __NETNS_CONNTRACK_H
  2. #define __NETNS_CONNTRACK_H
  3. #include <linux/list.h>
  4. #include <linux/list_nulls.h>
  5. #include <asm/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. int sysctl_events;
  19. unsigned int sysctl_events_retry_timeout;
  20. int sysctl_acct;
  21. int sysctl_checksum;
  22. unsigned int sysctl_log_invalid; /* Log invalid packets */
  23. #ifdef CONFIG_SYSCTL
  24. struct ctl_table_header *sysctl_header;
  25. struct ctl_table_header *acct_sysctl_header;
  26. struct ctl_table_header *event_sysctl_header;
  27. #endif
  28. int hash_vmalloc;
  29. int expect_vmalloc;
  30. char *slabname;
  31. };
  32. #endif