diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ipt_TTL.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ipt_TTL.c b/net/ipv4/netfilter/ipt_TTL.c index 214d9d9c428f..96e79cc6d0f2 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, | |||
54 | } | 54 | } |
55 | 55 | ||
56 | if (new_ttl != iph->ttl) { | 56 | if (new_ttl != iph->ttl) { |
57 | iph->check = nf_csum_update((iph->ttl << 8) ^ 0xFFFF, | 57 | iph->check = nf_csum_update(ntohs((iph->ttl << 8)) ^ 0xFFFF, |
58 | new_ttl << 8, | 58 | ntohs(new_ttl << 8), |
59 | iph->check); | 59 | iph->check); |
60 | iph->ttl = new_ttl; | 60 | iph->ttl = new_ttl; |
61 | } | 61 | } |