Loading...
1#ifndef __NETNS_CONNTRACK_H
2#define __NETNS_CONNTRACK_H
3
4#include <linux/list.h>
5#include <linux/list_nulls.h>
6#include <linux/atomic.h>
7
8struct ctl_table_header;
9struct nf_conntrack_ecache;
10
11struct netns_ct {
12 atomic_t count;
13 unsigned int expect_count;
14 unsigned int htable_size;
15 struct kmem_cache *nf_conntrack_cachep;
16 struct hlist_nulls_head *hash;
17 struct hlist_head *expect_hash;
18 struct hlist_nulls_head unconfirmed;
19 struct hlist_nulls_head dying;
20 struct ip_conntrack_stat __percpu *stat;
21 int sysctl_events;
22 unsigned int sysctl_events_retry_timeout;
23 int sysctl_acct;
24 int sysctl_tstamp;
25 int sysctl_checksum;
26 unsigned int sysctl_log_invalid; /* Log invalid packets */
27#ifdef CONFIG_SYSCTL
28 struct ctl_table_header *sysctl_header;
29 struct ctl_table_header *acct_sysctl_header;
30 struct ctl_table_header *tstamp_sysctl_header;
31 struct ctl_table_header *event_sysctl_header;
32#endif
33 char *slabname;
34};
35#endif
1#ifndef __NETNS_CONNTRACK_H
2#define __NETNS_CONNTRACK_H
3
4#include <linux/list.h>
5#include <linux/list_nulls.h>
6#include <linux/atomic.h>
7
8struct ctl_table_header;
9struct nf_conntrack_ecache;
10
11struct netns_ct {
12 atomic_t count;
13 unsigned int expect_count;
14 unsigned int htable_size;
15 struct kmem_cache *nf_conntrack_cachep;
16 struct hlist_nulls_head *hash;
17 struct hlist_head *expect_hash;
18 struct hlist_nulls_head unconfirmed;
19 struct hlist_nulls_head dying;
20 struct ip_conntrack_stat __percpu *stat;
21 struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
22 struct nf_exp_event_notifier __rcu *nf_expect_event_cb;
23 int sysctl_events;
24 unsigned int sysctl_events_retry_timeout;
25 int sysctl_acct;
26 int sysctl_tstamp;
27 int sysctl_checksum;
28 unsigned int sysctl_log_invalid; /* Log invalid packets */
29 int sysctl_auto_assign_helper;
30 bool auto_assign_helper_warned;
31#ifdef CONFIG_SYSCTL
32 struct ctl_table_header *sysctl_header;
33 struct ctl_table_header *acct_sysctl_header;
34 struct ctl_table_header *tstamp_sysctl_header;
35 struct ctl_table_header *event_sysctl_header;
36 struct ctl_table_header *helper_sysctl_header;
37#endif
38 char *slabname;
39};
40#endif