]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[IPX]: Annotate and fix IPX checksum
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 24 Nov 2006 02:03:34 +0000 (03:03 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 24 Nov 2006 02:03:34 +0000 (03:03 +0100)
commitd6042b2ec9446e7955d72a2155a4dff473ccc511
tree20ace8632910704d6162227fd17f55a458bb4866
parent635cc29c54bd88c69a2bbd357401cfaf67190aef
[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 <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
include/net/ipx.h
net/ipx/af_ipx.c
net/ipx/ipx_route.c