From: Changli Gao Date: Thu, 29 Jul 2010 14:04:18 +0000 (+0000) Subject: act_nat: the checksum of ICMP doesn't have pseudo header X-Git-Tag: v2.6.35.4~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51a9e83a53f2b20be0611349180d5b125471a86a;p=thirdparty%2Fkernel%2Fstable.git act_nat: the checksum of ICMP doesn't have pseudo header [ Upstream commit 3a3dfb062c2e086c202d34f09ce29634515ad256 ] after updating the value of the ICMP payload, inet_proto_csum_replace4() should be called with zero pseudohdr. Signed-off-by: Changli Gao Acked-by: Herbert Xu Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/sched/act_nat.c b/net/sched/act_nat.c index 724553e8ed7bc..4e7c24ae2ac55 100644 --- a/net/sched/act_nat.c +++ b/net/sched/act_nat.c @@ -246,7 +246,7 @@ static int tcf_nat(struct sk_buff *skb, struct tc_action *a, iph->saddr = new_addr; inet_proto_csum_replace4(&icmph->checksum, skb, addr, new_addr, - 1); + 0); break; } default: