diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-07-29 10:04:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-01 01:04:55 -0400 |
commit | 3a3dfb062c2e086c202d34f09ce29634515ad256 (patch) | |
tree | 01569a926ed206fa91736eb06def56d000e46791 /net/sched/act_nat.c | |
parent | 072d79a31a3b870b49886f4347e23f81b7eca3ac (diff) |
act_nat: the checksum of ICMP doesn't have pseudo header
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>
Diffstat (limited to 'net/sched/act_nat.c')
-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 ea008f57fc83..abbf4fa66a0b 100644 --- a/net/sched/act_nat.c +++ b/net/sched/act_nat.c | |||
@@ -247,7 +247,7 @@ static int tcf_nat(struct sk_buff *skb, struct tc_action *a, | |||
247 | iph->saddr = new_addr; | 247 | iph->saddr = new_addr; |
248 | 248 | ||
249 | inet_proto_csum_replace4(&icmph->checksum, skb, addr, new_addr, | 249 | inet_proto_csum_replace4(&icmph->checksum, skb, addr, new_addr, |
250 | 1); | 250 | 0); |
251 | break; | 251 | break; |
252 | } | 252 | } |
253 | default: | 253 | default: |