diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-05-28 17:04:12 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-07 08:58:39 -0400 |
commit | d2ba1fde42af44fbce361202e9af13daff9e4381 (patch) | |
tree | ff268b9e00824abbcbf2bd2234cd338c34045180 /include/net/netns | |
parent | 15f585bd76b6bd2974b23c9e69ff038a0826a0be (diff) |
netfilter: nf_ct_tcp: add namespace support
This patch adds namespace support for TCP protocol tracker.
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/conntrack.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index 0ef8592d48bf..680d799ece8b 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
5 | #include <linux/list_nulls.h> | 5 | #include <linux/list_nulls.h> |
6 | #include <linux/atomic.h> | 6 | #include <linux/atomic.h> |
7 | #include <linux/netfilter/nf_conntrack_tcp.h> | ||
7 | 8 | ||
8 | struct ctl_table_header; | 9 | struct ctl_table_header; |
9 | struct nf_conntrack_ecache; | 10 | struct nf_conntrack_ecache; |
@@ -25,8 +26,17 @@ struct nf_generic_net { | |||
25 | unsigned int timeout; | 26 | unsigned int timeout; |
26 | }; | 27 | }; |
27 | 28 | ||
29 | struct nf_tcp_net { | ||
30 | struct nf_proto_net pn; | ||
31 | unsigned int timeouts[TCP_CONNTRACK_TIMEOUT_MAX]; | ||
32 | unsigned int tcp_loose; | ||
33 | unsigned int tcp_be_liberal; | ||
34 | unsigned int tcp_max_retrans; | ||
35 | }; | ||
36 | |||
28 | struct nf_ip_net { | 37 | struct nf_ip_net { |
29 | struct nf_generic_net generic; | 38 | struct nf_generic_net generic; |
39 | struct nf_tcp_net tcp; | ||
30 | #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT) | 40 | #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT) |
31 | struct ctl_table_header *ctl_table_header; | 41 | struct ctl_table_header *ctl_table_header; |
32 | struct ctl_table *ctl_table; | 42 | struct ctl_table *ctl_table; |