aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-09-20 12:01:34 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:19:54 -0700
commitca39df6cdfbe2ea210e31117f5d469576cfe9008 (patch)
treefd6569e94a28ac9b654fd009918c0e82775ffae8 /net/ipv4
parent5251e2d2125407bbff0c39394a4011be9ed8b5d0 (diff)
downloadkernel_samsung_tuna-ca39df6cdfbe2ea210e31117f5d469576cfe9008.zip
kernel_samsung_tuna-ca39df6cdfbe2ea210e31117f5d469576cfe9008.tar.gz
kernel_samsung_tuna-ca39df6cdfbe2ea210e31117f5d469576cfe9008.tar.bz2
[NETFILTER]: ipt_TTL: fix checksum update bug
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/ipt_TTL.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ipt_TTL.c b/net/ipv4/netfilter/ipt_TTL.c
index 214d9d9..96e79cc 100644
--- 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,
- new_ttl << 8,
+ iph->check = nf_csum_update(ntohs((iph->ttl << 8)) ^ 0xFFFF,
+ ntohs(new_ttl << 8),
iph->check);
iph->ttl = new_ttl;
}