conntrack.h 1.6 KB
Newer Older
1 2 3
#ifndef __NETNS_CONNTRACK_H
#define __NETNS_CONNTRACK_H

4
#include <linux/list.h>
5
#include <linux/list_nulls.h>
A
Arun Sharma 已提交
6
#include <linux/atomic.h>
7

8
struct ctl_table_header;
9 10
struct nf_conntrack_ecache;

11 12 13 14 15 16 17 18 19 20 21 22
struct nf_proto_net {
#ifdef CONFIG_SYSCTL
	struct ctl_table_header *ctl_table_header;
	struct ctl_table        *ctl_table;
#ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
	struct ctl_table_header *ctl_compat_header;
	struct ctl_table        *ctl_compat_table;
#endif
#endif
	unsigned int		users;
};

23 24 25 26 27 28 29
struct nf_ip_net {
#if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
	struct ctl_table_header *ctl_table_header;
	struct ctl_table	*ctl_table;
#endif
};

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 41
	struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
	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 49
	int			sysctl_auto_assign_helper;
	bool			auto_assign_helper_warned;
50
	struct nf_ip_net	nf_ct_proto;
51 52
#ifdef CONFIG_SYSCTL
	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