mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fix Rx checksum computation on little endian systems.
Reported & Tested by: brad@OpenBSD
This commit is contained in:
parent
c57c874824
commit
1a98c9b4a2
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue