From: YOSHIFUJI Hideaki / 吉藤英明 Date: Sat, 26 Jan 2013 08:37:48 +0000 (+0000) Subject: netfilter: ip6t_NPT: Fix adjustment calculation X-Git-Tag: v3.8~10^2~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5271fff56c76e92fde122bcc02f102e99da5c8a;p=pandora-kernel.git netfilter: ip6t_NPT: Fix adjustment calculation Cast __wsum from/to __sum16 is wrong. Instead, apply appropriate conversion function: csum_unfold() or csum_fold(). [ The original patch has been modified to undo the final ~ that csum_fold returns. We only need to fold the 32-bit word that results from the checksum calculation into a 16-bit to ensure that the original subnet is restored appropriately. Spotted by Ulrich Weber. ] Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed