projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TCP]: remove tcp header from tcp_v4_check (take #2)
[firefly-linux-kernel-4.4.55.git]
/
net
/
ipv4
/
netfilter
/
ip_nat_helper.c
diff --git
a/net/ipv4/netfilter/ip_nat_helper.c
b/net/ipv4/netfilter/ip_nat_helper.c
index ee80feb4b2a986a5fa5526834a50f458f5d23459..2e5c4bc52a60d99f3641a5ffe91fdf3681cad5e6 100644
(file)
--- a/
net/ipv4/netfilter/ip_nat_helper.c
+++ b/
net/ipv4/netfilter/ip_nat_helper.c
@@
-183,7
+183,7
@@
ip_nat_mangle_tcp_packet(struct sk_buff **pskb,
datalen = (*pskb)->len - iph->ihl*4;
if ((*pskb)->ip_summed != CHECKSUM_PARTIAL) {
tcph->check = 0;
- tcph->check = tcp_v4_check(
tcph,
datalen,
+ tcph->check = tcp_v4_check(datalen,
iph->saddr, iph->daddr,
csum_partial((char *)tcph,
datalen, 0));