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 Nov 7 2020, 9:17 PM
Parents
rGce558a3f3307: Fix build post-r367455.
Branches
Unknown
Tags
Unknown

Event Timeline