conntrack.h 701 字节
Newer Older
1 2 3
#ifndef __NETNS_CONNTRACK_H
#define __NETNS_CONNTRACK_H

4
#include <linux/list.h>
5 6
#include <asm/atomic.h>

7
struct ctl_table_header;
8 9
struct nf_conntrack_ecache;

10
struct netns_ct {
11
	atomic_t		count;
12
	unsigned int		expect_count;
13
	struct hlist_head	*hash;
14
	struct hlist_head	*expect_hash;
15
	struct hlist_head	unconfirmed;
16
	struct ip_conntrack_stat *stat;
17 18
#ifdef CONFIG_NF_CONNTRACK_EVENTS
	struct nf_conntrack_ecache *ecache;
19
#endif
20
	int			sysctl_acct;
21
	int			sysctl_checksum;
22
	unsigned int		sysctl_log_invalid; /* Log invalid packets */
23 24
#ifdef CONFIG_SYSCTL
	struct ctl_table_header	*sysctl_header;
25
	struct ctl_table_header	*acct_sysctl_header;
26
#endif
27
	int			hash_vmalloc;
28
	int			expect_vmalloc;
29 30
};
#endif