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>
8 #include <linux/seqlock.h>
10 struct ctl_table_header;
11 struct nf_conntrack_ecache;
15 struct ctl_table_header *ctl_table_header;
16 struct ctl_table *ctl_table;
17 #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
18 struct ctl_table_header *ctl_compat_header;
19 struct ctl_table *ctl_compat_table;
25 struct nf_generic_net {
26 struct nf_proto_net pn;
31 struct nf_proto_net pn;
32 unsigned int timeouts[TCP_CONNTRACK_TIMEOUT_MAX];
33 unsigned int tcp_loose;
34 unsigned int tcp_be_liberal;
35 unsigned int tcp_max_retrans;
45 struct nf_proto_net pn;
46 unsigned int timeouts[UDP_CT_MAX];
50 struct nf_proto_net pn;
55 struct nf_generic_net generic;
56 struct nf_tcp_net tcp;
57 struct nf_udp_net udp;
58 struct nf_icmp_net icmp;
59 struct nf_icmp_net icmpv6;
60 #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
61 struct ctl_table_header *ctl_table_header;
62 struct ctl_table *ctl_table;
68 struct hlist_nulls_head unconfirmed;
69 struct hlist_nulls_head dying;
70 struct hlist_nulls_head tmpl;
75 unsigned int expect_count;
77 struct ctl_table_header *sysctl_header;
78 struct ctl_table_header *acct_sysctl_header;
79 struct ctl_table_header *tstamp_sysctl_header;
80 struct ctl_table_header *event_sysctl_header;
81 struct ctl_table_header *helper_sysctl_header;
84 unsigned int sysctl_log_invalid; /* Log invalid packets */
85 unsigned int sysctl_events_retry_timeout;
88 int sysctl_auto_assign_helper;
89 bool auto_assign_helper_warned;
93 unsigned int htable_size;
94 seqcount_t generation;
95 struct kmem_cache *nf_conntrack_cachep;
96 struct hlist_nulls_head *hash;
97 struct hlist_head *expect_hash;
98 struct ct_pcpu __percpu *pcpu_lists;
99 struct ip_conntrack_stat __percpu *stat;
100 struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
101 struct nf_exp_event_notifier __rcu *nf_expect_event_cb;
102 struct nf_ip_net nf_ct_proto;
103 #if defined(CONFIG_NF_CONNTRACK_LABELS)
104 unsigned int labels_used;
107 #ifdef CONFIG_NF_NAT_NEEDED
108 struct hlist_head *nat_bysource;
109 unsigned int nat_htable_size;