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: [email protected]
Reporter: [email protected]
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.