]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
act_nat: the checksum of ICMP doesn't have pseudo header
authorChangli Gao <xiaosuo@gmail.com>
Thu, 29 Jul 2010 14:04:18 +0000 (14:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Aug 2010 05:04:55 +0000 (22:04 -0700)
after updating the value of the ICMP payload, inet_proto_csum_replace4() should
be called with zero pseudohdr.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_nat.c

index ea008f57fc830d4d667753267f02487d3943354b..abbf4fa66a0b93a23a830ecdb7535ae8ee0d3e38 100644 (file)
@@ -247,7 +247,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: