mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
if_ffec: correctly trim 2 bytes from the beginning
PR: 283315
Tested by: tuexen
(cherry picked from commit b29842622d)
This commit is contained in:
committed by
Michael Tuexen
parent
7f421c7c9c
commit
aec9fc6dd2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user