提交 ca39df6c 编写于 作者: P Patrick McHardy 提交者: David S. Miller

[NETFILTER]: ipt_TTL: fix checksum update bug

Fix regression introduced by the incremental checksum patches.
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5251e2d2
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册