Date: Fri, 13 Dec 2024 19:05:38 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283315] if_ffec receive packet size in mbuf header is not properly adjusted and is 2 bytes too large. Message-ID: <bug-283315-227-5RL9sfsMOA@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-283315-227@https.bugs.freebsd.org/bugzilla/> References: <bug-283315-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283315 --- Comment #1 from Mike Belanger <mibelanger@qnx.com> --- The following would be better, i.e. use m_adj instead of modifying m->m_dat= a: if (sc->fecflags & FECFLAG_RACC) { - m->m_data =3D mtod(m, uint8_t *) + 2; + m_adj(m, 2); } else { src =3D mtod(m, uint8_t*); dst =3D src - ETHER_ALIGN; bcopy(src, dst, len); m->m_data =3D dst; } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283315-227-5RL9sfsMOA>