projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
072d79a
)
act_nat: the checksum of ICMP doesn't have pseudo header
author
Changli Gao
<xiaosuo@gmail.com>
Thu, 29 Jul 2010 14:04:18 +0000
(14:04 +0000)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/act_nat.c
b/net/sched/act_nat.c
index ea008f57fc830d4d667753267f02487d3943354b..abbf4fa66a0b93a23a830ecdb7535ae8ee0d3e38 100644
(file)
--- 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,
iph->saddr = new_addr;
inet_proto_csum_replace4(&icmph->checksum, skb, addr, new_addr,
-
1
);
+
0
);
break;
}
default: