1 #ifndef __NETNS_CONNTRACK_H
2 #define __NETNS_CONNTRACK_H
4 #include <linux/list.h>
5 #include <linux/list_nulls.h>
6 #include <linux/atomic.h>
7 #include <linux/netfilter/nf_conntrack_tcp.h>
9 struct ctl_table_header;
10 struct nf_conntrack_ecache;
14 struct ctl_table_header *ctl_table_header;
15 struct ctl_table *ctl_table;
16 #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
17 struct ctl_table_header *ctl_compat_header;
18 struct ctl_table *ctl_compat_table;
24 struct nf_generic_net {
25 struct nf_proto_net pn;
30 struct nf_proto_net pn;
31 unsigned int timeouts[TCP_CONNTRACK_TIMEOUT_MAX];
32 unsigned int tcp_loose;
33 unsigned int tcp_be_liberal;
34 unsigned int tcp_max_retrans;
44 struct nf_proto_net pn;
45 unsigned int timeouts[UDP_CT_MAX];
49 struct nf_proto_net pn;
54 struct nf_generic_net generic;
55 struct nf_tcp_net tcp;
56 struct nf_udp_net udp;
57 struct nf_icmp_net icmp;
58 struct nf_icmp_net icmpv6;
59 #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
60 struct ctl_table_header *ctl_table_header;
61 struct ctl_table *ctl_table;
67 unsigned int expect_count;
69 struct ctl_table_header *sysctl_header;
70 struct ctl_table_header *acct_sysctl_header;
71 struct ctl_table_header *tstamp_sysctl_header;
72 struct ctl_table_header *event_sysctl_header;
73 struct ctl_table_header *helper_sysctl_header;
76 unsigned int sysctl_log_invalid; /* Log invalid packets */
77 unsigned int sysctl_events_retry_timeout;
80 int sysctl_auto_assign_helper;
81 bool auto_assign_helper_warned;
85 unsigned int htable_size;
86 struct kmem_cache *nf_conntrack_cachep;
87 struct hlist_nulls_head *hash;
88 struct hlist_head *expect_hash;
89 struct hlist_nulls_head unconfirmed;
90 struct hlist_nulls_head dying;
91 struct hlist_nulls_head tmpl;
92 struct ip_conntrack_stat __percpu *stat;
93 struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
94 struct nf_exp_event_notifier __rcu *nf_expect_event_cb;
95 struct nf_ip_net nf_ct_proto;
96 #if defined(CONFIG_NF_CONNTRACK_LABELS)
97 unsigned int labels_used;
100 #ifdef CONFIG_NF_NAT_NEEDED
101 struct hlist_head *nat_bysource;
102 unsigned int nat_htable_size;