xref: /openbmc/linux/include/net/netns/conntrack.h (revision 82ced6fd)
1 #ifndef __NETNS_CONNTRACK_H
2 #define __NETNS_CONNTRACK_H
3 
4 #include <linux/list.h>
5 #include <linux/list_nulls.h>
6 #include <asm/atomic.h>
7 
8 struct ctl_table_header;
9 struct nf_conntrack_ecache;
10 
11 struct netns_ct {
12 	atomic_t		count;
13 	unsigned int		expect_count;
14 	struct hlist_nulls_head	*hash;
15 	struct hlist_head	*expect_hash;
16 	struct hlist_nulls_head	unconfirmed;
17 	struct ip_conntrack_stat *stat;
18 #ifdef CONFIG_NF_CONNTRACK_EVENTS
19 	struct nf_conntrack_ecache *ecache;
20 #endif
21 	int			sysctl_acct;
22 	int			sysctl_checksum;
23 	unsigned int		sysctl_log_invalid; /* Log invalid packets */
24 #ifdef CONFIG_SYSCTL
25 	struct ctl_table_header	*sysctl_header;
26 	struct ctl_table_header	*acct_sysctl_header;
27 #endif
28 	int			hash_vmalloc;
29 	int			expect_vmalloc;
30 };
31 #endif
32