if_ffec: correctly trim 2 bytes from the beginning

PR:		283315
Tested by:	tuexen
MFC after:	3 days
This commit is contained in:
Mike Belanger
2026-05-28 13:09:52 +02:00
committed by Michael Tuexen
parent ff873565bc
commit b29842622d
+1 -1
View File
@@ -850,7 +850,7 @@ ffec_rxfinish_onebuf(struct ffec_softc *sc, int len)
* biggest header is, instead of the whole 1530ish-byte frame.
*/
if (sc->fecflags & FECFLAG_RACC) {
m->m_data = mtod(m, uint8_t *) + 2;
m_adj(m, 2);
} else {
src = mtod(m, uint8_t*);
dst = src - ETHER_ALIGN;