From: Al Viro Date: Fri, 3 Nov 2006 08:28:23 +0000 (-0800) Subject: [IPX]: Annotate and fix IPX checksum X-Git-Tag: v2.6.19-rc5~19^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02e60370d4dac83f22d5ae75d5512bcb9a3f24b7;p=pandora-kernel.git [IPX]: Annotate and fix IPX checksum Calculation of IPX checksum got buggered about 2.4.0. The old variant mangled the packet; that got fixed, but calculation itself got buggered. Restored the correct logics, fixed a subtle breakage we used to have even back then: if the sum is 0 mod 0xffff, we want to return 0, not 0xffff. The latter has special meaning for IPX (cheksum disabled). Observation (and obvious fix) nicked from history of FreeBSD ipx_cksum.c... Signed-off-by: Al Viro Signed-off-by: David S. Miller --- Reading git-diff-tree failed