if_ffec: correctly trim 2 bytes from the beginning
PR: 283315 Tested by: tuexen MFC after: 3 days
This commit is contained in:
committed by
Michael Tuexen
parent
ff873565bc
commit
b29842622d
@@ -850,7 +850,7 @@ ffec_rxfinish_onebuf(struct ffec_softc *sc, int len)
|
|||||||
* biggest header is, instead of the whole 1530ish-byte frame.
|
* biggest header is, instead of the whole 1530ish-byte frame.
|
||||||
*/
|
*/
|
||||||
if (sc->fecflags & FECFLAG_RACC) {
|
if (sc->fecflags & FECFLAG_RACC) {
|
||||||
m->m_data = mtod(m, uint8_t *) + 2;
|
m_adj(m, 2);
|
||||||
} else {
|
} else {
|
||||||
src = mtod(m, uint8_t*);
|
src = mtod(m, uint8_t*);
|
||||||
dst = src - ETHER_ALIGN;
|
dst = src - ETHER_ALIGN;
|
||||||
|
|||||||
Reference in New Issue
Block a user