]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_nat_proto_icmpv6:: fix wrong comparison in icmpv6_manip_pkt
authorPhil Oester <kernel@linuxace.com>
Fri, 13 Sep 2013 01:04:16 +0000 (18:04 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 Sep 2013 09:58:48 +0000 (11:58 +0200)
commitf8f947aac8fe77c534c1e5ffee0a5ff1cd153e27
treeadee01521dda41281668a3d61cc330262a625856
parent4d8c515dbd2ec1d20b46e244d855ccc5f77ab788
netfilter: nf_nat_proto_icmpv6:: fix wrong comparison in icmpv6_manip_pkt

In commit 94b04de3 (netfilter: ipv6: add IPv6 NAT support), icmpv6_manip_pkt
was added with an incorrect comparison of ICMP codes to types.  This causes
problems when using NAT rules with the --random option.  Correct the
comparison.

This closes netfilter bugzilla #851, reported by Alexander Neumann.

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/nf_nat_proto_icmpv6.c