netfilter: ip6t_NPT: fix IPv6 NTP checksum calculation
authorUlrich Weber <ulrich.weber@sophos.com>
Wed, 2 Jan 2013 05:24:40 +0000 (05:24 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 4 Jan 2013 19:03:02 +0000 (20:03 +0100)
commit429da4c0b1e59837ec946cdf0f04eb1899586923
treea7b9ce4917c399fb7d67bd7e3132f70b35f536ac
parentfdb184d1467f9ed5b17c553b85eb1bb72bdbf62f
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: Ulrich Weber <ulrich.weber@sophos.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/ip6t_NPT.c