netfilter: nf_nat: don't check for port change on ICMP tuples
authorUlrich Weber <ulrich.weber@sophos.com>
Thu, 25 Oct 2012 05:34:45 +0000 (05:34 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 28 Oct 2012 21:43:34 +0000 (22:43 +0100)
commit38fe36a248ec3228f8e6507955d7ceb0432d2000
treea065f4023c55b9d65d9dfe7786e84e15a39d890f
parentbbb5823cf742a7e955f35c7d891e4e936944c33a
netfilter: nf_nat: don't check for port change on ICMP tuples

ICMP tuples have id in src and type/code in dst.
So comparing src.u.all with dst.u.all will always fail here
and ip_xfrm_me_harder() is called for every ICMP packet,
even if there was no NAT.

Signed-off-by: Ulrich Weber <ulrich.weber@sophos.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/iptable_nat.c
net/ipv6/netfilter/ip6table_nat.c