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/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283315 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 = mtod(m, uint8_t *) + 2; >>>>>> m->m_len -= 2; m->m_pkthdr.len -= 2; >>>>>> } else { src = mtod(m, uint8_t*); dst = src - ETHER_ALIGN; bcopy(src, dst, len); m->m_data = dst; } -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283315-227>
