Date: Fri, 13 Dec 2024 18:53:21 +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@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283315 Bug ID: 283315 Summary: if_ffec receive packet size in mbuf header is not properly adjusted and is 2 bytes too large. Product: Base System Version: 13.4-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: mibelanger@qnx.com In ffec_rxfinish_onebuf, there is code to adjust the start of the data, but= the size is not properly adjusted. tcpdump can be used to see the extra 2 bytes on receive packets. The following should resolve the issue. if (sc->fecflags & FECFLAG_RACC) { m->m_data =3D mtod(m, uint8_t *) + 2; >>>>>> m->m_len -=3D 2; m->m_pkthdr.len -=3D 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>