diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-05-28 21:04:14 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-07 14:58:40 +0200 |
commit | 4b626b9c5d35b4f99b073dc5d6457abddcbcf429 (patch) | |
tree | 774457d18f064a5a1ca8ee54724ab5ff3b5e0487 /net/netfilter/nf_conntrack_proto.c | |
parent | 0ce490ad4387a67ee8ca5253476272d508fc0b6f (diff) | |
download | op-kernel-dev-4b626b9c5d35b4f99b073dc5d6457abddcbcf429.zip op-kernel-dev-4b626b9c5d35b4f99b073dc5d6457abddcbcf429.tar.gz |
netfilter: nf_ct_icmp: add namespace support
This patch adds namespace support for ICMP 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 'net/netfilter/nf_conntrack_proto.c')
-rw-r--r-- | net/netfilter/nf_conntrack_proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c index 9c6aee5..dbade5f 100644 --- a/net/netfilter/nf_conntrack_proto.c +++ b/net/netfilter/nf_conntrack_proto.c @@ -307,6 +307,8 @@ static struct nf_proto_net *nf_ct_l4proto_net(struct net *net, return (struct nf_proto_net *)&net->ct.nf_ct_proto.tcp; case IPPROTO_UDP: return (struct nf_proto_net *)&net->ct.nf_ct_proto.udp; + case IPPROTO_ICMP: + return (struct nf_proto_net *)&net->ct.nf_ct_proto.icmp; case 255: /* l4proto_generic */ return (struct nf_proto_net *)&net->ct.nf_ct_proto.generic; default: |