conntrack.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 nf_proto_net {
  9. #ifdef CONFIG_SYSCTL
  10. struct ctl_table_header *ctl_table_header;
  11. struct ctl_table *ctl_table;
  12. #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
  13. struct ctl_table_header *ctl_compat_header;
  14. struct ctl_table *ctl_compat_table;
  15. #endif
  16. #endif
  17. unsigned int users;
  18. };
  19. struct nf_generic_net {
  20. struct nf_proto_net pn;
  21. unsigned int timeout;
  22. };
  23. struct nf_ip_net {
  24. struct nf_generic_net generic;
  25. #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
  26. struct ctl_table_header *ctl_table_header;
  27. struct ctl_table *ctl_table;
  28. #endif
  29. };
  30. struct netns_ct {
  31. atomic_t count;
  32. unsigned int expect_count;
  33. unsigned int htable_size;
  34. struct kmem_cache *nf_conntrack_cachep;
  35. struct hlist_nulls_head *hash;
  36. struct hlist_head *expect_hash;
  37. struct hlist_nulls_head unconfirmed;
  38. struct hlist_nulls_head dying;
  39. struct ip_conntrack_stat __percpu *stat;
  40. struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
  41. struct nf_exp_event_notifier __rcu *nf_expect_event_cb;
  42. int sysctl_events;
  43. unsigned int sysctl_events_retry_timeout;
  44. int sysctl_acct;
  45. int sysctl_tstamp;
  46. int sysctl_checksum;
  47. unsigned int sysctl_log_invalid; /* Log invalid packets */
  48. int sysctl_auto_assign_helper;
  49. bool auto_assign_helper_warned;
  50. struct nf_ip_net nf_ct_proto;
  51. #ifdef CONFIG_SYSCTL
  52. struct ctl_table_header *sysctl_header;
  53. struct ctl_table_header *acct_sysctl_header;
  54. struct ctl_table_header *tstamp_sysctl_header;
  55. struct ctl_table_header *event_sysctl_header;
  56. struct ctl_table_header *helper_sysctl_header;
  57. #endif
  58. char *slabname;
  59. };
  60. #endif