net: fix checksum verification
Checksum calculation on data including its own checksum (as is the case with
IP headers) should give 0xffff before bit flipping. Current code works well
for the correct checksum case, but fails to identify errors.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9b0907b commit b5abbd80740063d63f9630b27760484e0c4a36a4
@Baruch Siach Baruch Siach authored on 11 Aug 2013
Sascha Hauer committed on 12 Aug 2013
Showing 1 changed file
View
net/net.c