HomeFreeBSD

The ioctl() calls using FIONREAD, FIONWRITE, FIONSPACE, and SIOCATMARK

Description

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
MFC after: 1 week
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
rS367463: MFC r367323:
Branches
Unknown
Tags
Unknown