diff options
author | Patrick McHardy <kaber@trash.net> | 2012-08-26 19:14:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-30 03:00:21 +0200 |
commit | ee6eb96673704225164f0ba7462e1973ce10885c (patch) | |
tree | 52c0126c03efc43b36b52f2100b043ece149c32e /net/netfilter/nf_conntrack_amanda.c | |
parent | d33cbeeb1a46a7dc82fe9f53e40a742ce0c67c79 (diff) | |
download | op-kernel-dev-ee6eb96673704225164f0ba7462e1973ce10885c.zip op-kernel-dev-ee6eb96673704225164f0ba7462e1973ce10885c.tar.gz |
netfilter: nf_nat: support IPv6 in amanda NAT helper
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/nf_conntrack_amanda.c')
-rw-r--r-- | net/netfilter/nf_conntrack_amanda.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_amanda.c b/net/netfilter/nf_conntrack_amanda.c index e0212b5..c514fe6 100644 --- a/net/netfilter/nf_conntrack_amanda.c +++ b/net/netfilter/nf_conntrack_amanda.c @@ -155,8 +155,7 @@ static int amanda_help(struct sk_buff *skb, IPPROTO_TCP, NULL, &port); nf_nat_amanda = rcu_dereference(nf_nat_amanda_hook); - if (nf_nat_amanda && nf_ct_l3num(ct) == NFPROTO_IPV4 && - ct->status & IPS_NAT_MASK) + if (nf_nat_amanda && ct->status & IPS_NAT_MASK) ret = nf_nat_amanda(skb, ctinfo, protoff, off - dataoff, len, exp); else if (nf_ct_expect_related(exp) != 0) |