diff options
| author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-05-28 17:04:13 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-07 08:58:40 -0400 |
| commit | 0ce490ad4387a67ee8ca5253476272d508fc0b6f (patch) | |
| tree | 7ad5d0742f1eaa82494af89dd5ac35801c3e12fa /include/net/netns | |
| parent | d2ba1fde42af44fbce361202e9af13daff9e4381 (diff) | |
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/net/netns')
| -rw-r--r-- | include/net/netns/conntrack.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index 680d799ece8..7bd14ab8ce1 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
| @@ -34,9 +34,21 @@ struct nf_tcp_net { | |||
| 34 | unsigned int tcp_max_retrans; | 34 | unsigned int tcp_max_retrans; |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | enum udp_conntrack { | ||
| 38 | UDP_CT_UNREPLIED, | ||
| 39 | UDP_CT_REPLIED, | ||
| 40 | UDP_CT_MAX | ||
| 41 | }; | ||
| 42 | |||
| 43 | struct nf_udp_net { | ||
| 44 | struct nf_proto_net pn; | ||
| 45 | unsigned int timeouts[UDP_CT_MAX]; | ||
| 46 | }; | ||
| 47 | |||
| 37 | struct nf_ip_net { | 48 | struct nf_ip_net { |
| 38 | struct nf_generic_net generic; | 49 | struct nf_generic_net generic; |
| 39 | struct nf_tcp_net tcp; | 50 | struct nf_tcp_net tcp; |
| 51 | struct nf_udp_net udp; | ||
| 40 | #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT) | 52 | #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT) |
| 41 | struct ctl_table_header *ctl_table_header; | 53 | struct ctl_table_header *ctl_table_header; |
| 42 | struct ctl_table *ctl_table; | 54 | struct ctl_table *ctl_table; |
