diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-07-29 14:04:18 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-26 16:43:44 -0700 |
commit | c57bbdaff4f0831cc97d6265a0d293c42b4e86ce (patch) | |
tree | 9c82b52a600654a2ecf3a401b63b1928c539ab19 | |
parent | 047e9f3e4e6bb1362b788d7d7d99e72a15357955 (diff) |
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 <xiaosuo@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | net/sched/act_nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_nat.c b/net/sched/act_nat.c index d885ba31156..37e198cda94 100644 --- a/net/sched/act_nat.c +++ b/net/sched/act_nat.c @@ -240,7 +240,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: |