diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-05-28 17:04:11 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-07 08:58:39 -0400 |
commit | 15f585bd76b6bd2974b23c9e69ff038a0826a0be (patch) | |
tree | 6719807ab454cd1121b32f7eb9421890b661ce4f /include | |
parent | 524a53e5ad5f34f64ed34281e8b0eca19437db5b (diff) |
netfilter: nf_ct_generic: add namespace support
This patch adds namespace support for the generic layer 4 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')
-rw-r--r-- | include/net/netfilter/nf_conntrack_core.h | 4 | ||||
-rw-r--r-- | include/net/netns/conntrack.h | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_conntrack_core.h b/include/net/netfilter/nf_conntrack_core.h index aced085132e7..d8f5b9f52169 100644 --- a/include/net/netfilter/nf_conntrack_core.h +++ b/include/net/netfilter/nf_conntrack_core.h | |||
@@ -28,8 +28,8 @@ extern unsigned int nf_conntrack_in(struct net *net, | |||
28 | extern int nf_conntrack_init(struct net *net); | 28 | extern int nf_conntrack_init(struct net *net); |
29 | extern void nf_conntrack_cleanup(struct net *net); | 29 | extern void nf_conntrack_cleanup(struct net *net); |
30 | 30 | ||
31 | extern int nf_conntrack_proto_init(void); | 31 | extern int nf_conntrack_proto_init(struct net *net); |
32 | extern void nf_conntrack_proto_fini(void); | 32 | extern void nf_conntrack_proto_fini(struct net *net); |
33 | 33 | ||
34 | extern bool | 34 | extern bool |
35 | nf_ct_get_tuple(const struct sk_buff *skb, | 35 | nf_ct_get_tuple(const struct sk_buff *skb, |
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index b2dbcc5cd813..0ef8592d48bf 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
@@ -20,7 +20,13 @@ struct nf_proto_net { | |||
20 | unsigned int users; | 20 | unsigned int users; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | struct nf_generic_net { | ||
24 | struct nf_proto_net pn; | ||
25 | unsigned int timeout; | ||
26 | }; | ||
27 | |||
23 | struct nf_ip_net { | 28 | struct nf_ip_net { |
29 | struct nf_generic_net generic; | ||
24 | #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT) | 30 | #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT) |
25 | struct ctl_table_header *ctl_table_header; | 31 | struct ctl_table_header *ctl_table_header; |
26 | struct ctl_table *ctl_table; | 32 | struct ctl_table *ctl_table; |