summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGao feng <gaofeng@cn.fujitsu.com>2012-05-28 23:04:13 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-06-07 14:58:40 +0200
commit0ce490ad4387a67ee8ca5253476272d508fc0b6f (patch)
tree7ad5d0742f1eaa82494af89dd5ac35801c3e12fa /include
parentnetfilter: nf_ct_tcp: add namespace support (diff)
downloadlinux-0ce490ad4387a67ee8ca5253476272d508fc0b6f.tar.xz
linux-0ce490ad4387a67ee8ca5253476272d508fc0b6f.zip
netfilter: nf_ct_udp: add namespace support
This patch adds namespace support for UDP 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/netns/conntrack.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h
index 680d799ece8b..7bd14ab8ce1c 100644
--- a/include/net/netns/conntrack.h
+++ b/include/net/netns/conntrack.h
@@ -34,9 +34,21 @@ struct nf_tcp_net {
unsigned int tcp_max_retrans;
};
+enum udp_conntrack {
+ UDP_CT_UNREPLIED,
+ UDP_CT_REPLIED,
+ UDP_CT_MAX
+};
+
+struct nf_udp_net {
+ struct nf_proto_net pn;
+ unsigned int timeouts[UDP_CT_MAX];
+};
+
struct nf_ip_net {
struct nf_generic_net generic;
struct nf_tcp_net tcp;
+ struct nf_udp_net udp;
#if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
struct ctl_table_header *ctl_table_header;
struct ctl_table *ctl_table;