HomeFreeBSD

socket: Do not include control messages in FIONREAD return value

Description

socket: Do not include control messages in FIONREAD return value

Some system software expects to be able to read at least the number of
bytes returned by FIONREAD. When control messages are counted in this
return value, this assumption is violated. Follow Linux and OpenBSD
here (as well as our own kevent(EVFILT_READ)) and only return the number
of data bytes available.

Reported by: avg
MFC after: 2 weeks

Details

Provenance
markjAuthored on Sep 12 2021, 8:05 PM
Parents
R10:e31cc1d526dc: bhyve: Fix pci device node key in bhyve_config.5
Branches
Unknown
Tags
Unknown