netfilter: nat: fix udp checksum corruption
authorFlorian Westphal <fw@strlen.de>
Mon, 20 May 2019 11:48:10 +0000 (13:48 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 May 2019 18:20:40 +0000 (20:20 +0200)
commit6bac76db1da3cb162c425d58ae421486f8e43955
tree110be51688911771d46771b72af8d4c96e1e1dbd
parent82ce6eb1dd13fd12e449b2ee2c2ec051e6f52c43
netfilter: nat: fix udp checksum corruption

Due to copy&paste error nf_nat_mangle_udp_packet passes IPPROTO_TCP,
resulting in incorrect udp checksum when payload had to be mangled.

Fixes: dac3fe72596f9 ("netfilter: nat: remove csum_recalc hook")
Reported-by: Marc Haber <mh+netdev@zugschlus.de>
Tested-by: Marc Haber <mh+netdev@zugschlus.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_nat_helper.c