mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[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>
This commit is contained in:
parent
5251e2d212
commit
ca39df6cdf
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue