MFC if_hme.c:1.46 to RELENG_6:
fix Rx checksum computation on little endian systems.
This commit is contained in:
parent
13fdba80c5
commit
cb5b5410bf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user