Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
conntrack.h
Go to the documentation of this file.
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 #include <linux/netfilter/nf_conntrack_tcp.h>
8 
9 struct ctl_table_header;
10 struct nf_conntrack_ecache;
11 
12 struct nf_proto_net {
13 #ifdef CONFIG_SYSCTL
15  struct ctl_table *ctl_table;
16 #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
17  struct ctl_table_header *ctl_compat_header;
18  struct ctl_table *ctl_compat_table;
19 #endif
20 #endif
21  unsigned int users;
22 };
23 
25  struct nf_proto_net pn;
26  unsigned int timeout;
27 };
28 
29 struct nf_tcp_net {
30  struct nf_proto_net pn;
32  unsigned int tcp_loose;
33  unsigned int tcp_be_liberal;
34  unsigned int tcp_max_retrans;
35 };
36 
41 };
42 
43 struct nf_udp_net {
44  struct nf_proto_net pn;
45  unsigned int timeouts[UDP_CT_MAX];
46 };
47 
48 struct nf_icmp_net {
49  struct nf_proto_net pn;
50  unsigned int timeout;
51 };
52 
53 struct nf_ip_net {
55  struct nf_tcp_net tcp;
56  struct nf_udp_net udp;
57  struct nf_icmp_net icmp;
59 #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
61  struct ctl_table *ctl_table;
62 #endif
63 };
64 
65 struct netns_ct {
67  unsigned int expect_count;
68  unsigned int htable_size;
75  struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
76  struct nf_exp_event_notifier __rcu *nf_expect_event_cb;
82  unsigned int sysctl_log_invalid; /* Log invalid packets */
86 #ifdef CONFIG_NF_NAT_NEEDED
87  struct hlist_head *nat_bysource;
88  unsigned int nat_htable_size;
89 #endif
90 #ifdef CONFIG_SYSCTL
91  struct ctl_table_header *sysctl_header;
92  struct ctl_table_header *acct_sysctl_header;
93  struct ctl_table_header *tstamp_sysctl_header;
94  struct ctl_table_header *event_sysctl_header;
95  struct ctl_table_header *helper_sysctl_header;
96 #endif
97  char *slabname;
98 };
99 #endif