MFC if_hme.c:1.46 to RELENG_6:

fix Rx checksum computation on little endian systems.
This commit is contained in:
yongari 2006-01-20 06:27:49 +00:00
parent 13fdba80c5
commit cb5b5410bf

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) {