mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Remove some trailing bytes which are not part of the ethernet packet.
Discussed with: bgray @
This commit is contained in:
parent
a3bfcf3e5d
commit
66249c7c82
1 changed files with 3 additions and 1 deletions
|
|
@ -1042,7 +1042,9 @@ smsc_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
|
|||
}
|
||||
|
||||
/* Finally enqueue the mbuf on the receive queue */
|
||||
uether_rxmbuf(ue, m, pktlen);
|
||||
/* Remove 4 trailing bytes */
|
||||
if (pktlen >= (4 + ETHER_HDR_LEN))
|
||||
uether_rxmbuf(ue, m, pktlen - 4);
|
||||
}
|
||||
|
||||
/* Update the offset to move to the next potential packet */
|
||||
|
|
|
|||
Loading…
Reference in a new issue