1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

fix Rx checksum computation on little endian systems.

Reported & Tested by:	brad@OpenBSD
This commit is contained in:
Pyun YongHyeon 2006-01-17 06:02:22 +00:00
parent c57c874824
commit 1a98c9b4a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154449

View File

@ -1230,7 +1230,7 @@ hme_rxcksum(struct mbuf *m, u_int32_t flags)
return;
}
cksum = ~(flags & HME_XD_RXCKSUM);
cksum = htons(~(flags & HME_XD_RXCKSUM));
/* checksum fixup for IP options */
len = hlen - sizeof(struct ip);
if (len > 0) {