Skip to content
Commit 429da4c0 authored by Ulrich Weber's avatar Ulrich Weber Committed by Pablo Neira Ayuso
Browse files

netfilter: ip6t_NPT: fix IPv6 NTP checksum calculation



csum16_add() has a broken carry detection, should be:
sum += sum < (__force u16)b;

Instead of fixing csum16_add, remove the custom checksum
functions and use the generic csum_add/csum_sub ones.

Signed-off-by: default avatarUlrich Weber <ulrich.weber@sophos.com>
Acked-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent fdb184d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment