HomeFreeBSD

MFC r367464:

Description

MFC r367464:
The ioctl() calls using FIONREAD, FIONWRITE, FIONSPACE, and SIOCATMARK
access the socket send or receive buffer. This is not possible for
listening sockets since r319722.
Because send()/recv() calls fail on listening sockets, fail also ioctl()
indicating EINVAL.

PR: 250366
Reported by: Yong-Hao Zou
Reviewed by: glebius, rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D26897

Details

Provenance
tuexenAuthored on
Reviewer
glebius
Differential Revision
D26897: Improve ioctl() for listening TCP sockets
Parents
rS368178: MFC r366750:
Branches
Unknown
Tags
Unknown