projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5251e2d
)
[NETFILTER]: ipt_TTL: fix checksum update bug
author
Patrick McHardy
<kaber@trash.net>
Wed, 20 Sep 2006 19:01:34 +0000
(12:01 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:19:54 +0000
(15:19 -0700)
Fix regression introduced by the incremental checksum patches.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_TTL.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/netfilter/ipt_TTL.c
b/net/ipv4/netfilter/ipt_TTL.c
index 214d9d9c428f90b452daa42f48782a7264f8273e..96e79cc6d0f233dd20cb95b4ffc76336a72d2a7d 100644
(file)
--- a/
net/ipv4/netfilter/ipt_TTL.c
+++ b/
net/ipv4/netfilter/ipt_TTL.c
@@
-54,8
+54,8
@@
ipt_ttl_target(struct sk_buff **pskb,
}
if (new_ttl != iph->ttl) {
- iph->check = nf_csum_update(
(iph->ttl << 8
) ^ 0xFFFF,
- n
ew_ttl << 8
,
+ iph->check = nf_csum_update(
ntohs((iph->ttl << 8)
) ^ 0xFFFF,
+ n
tohs(new_ttl << 8)
,
iph->check);
iph->ttl = new_ttl;
}