socket_wrapper.c: let swrap_vioctl() handle SIOCOUTQ/TIOCOUTQ/FIONWRITE explicitly
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Jun 2020 12:21:25 +0000 (14:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Jun 2020 20:59:00 +0000 (22:59 +0200)
commitf317ebcdcdd626ed9e06de2eb60031306994c803
treeb9004de1af9a4e645da631f6ebf905967207d9c6
parentc95b7cb1d7b9348472276edceff71889aa676d25
socket_wrapper.c: let swrap_vioctl() handle SIOCOUTQ/TIOCOUTQ/FIONWRITE explicitly

They are used to ask for the number of unacked bytes in the send queue,
with AF_UNIX sockets get strange result, on linux 5.3 I get more bytes
reported than I sent into the socket. All bytes reach the destination
directly, so we can just always report 0 unacked bytes.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897

Signed-off-by: Stefan Metzmacher <metze@samba.org>
src/socket_wrapper.c