conntrack.h 743 B

12345678910111213141516171819202122232425262728293031
  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. struct hlist_nulls_head *hash;
  12. struct hlist_head *expect_hash;
  13. struct hlist_nulls_head unconfirmed;
  14. struct ip_conntrack_stat *stat;
  15. #ifdef CONFIG_NF_CONNTRACK_EVENTS
  16. struct nf_conntrack_ecache *ecache;
  17. #endif
  18. int sysctl_acct;
  19. int sysctl_checksum;
  20. unsigned int sysctl_log_invalid; /* Log invalid packets */
  21. #ifdef CONFIG_SYSCTL
  22. struct ctl_table_header *sysctl_header;
  23. struct ctl_table_header *acct_sysctl_header;
  24. #endif
  25. int hash_vmalloc;
  26. int expect_vmalloc;
  27. };
  28. #endif