linux(4): Fix MSG_CTRUNC handling in recvmsg()
authorDmitry Chagin <dchagin@FreeBSD.org>
Mon, 14 Aug 2023 12:46:12 +0000 (15:46 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Mon, 14 Aug 2023 12:46:12 +0000 (15:46 +0300)
commit2467ccddc0e0f5c719eddaece69a7aa0589b6449
tree289588b07b96043ad9d4ad00aa6e7ba321aa1fa8
parent9d0c9b6d6a6a90f626088308dfb895221bf6d36f
linux(4): Fix MSG_CTRUNC handling in recvmsg()

The MSG_CTRUNC flag of the msg_flags member of the message header is
set uppon successful completition if the control data was truncated.
Upon return from a successful call msg_controllen should contain the
length of the control message sequence.

Fixes: 0eda2cea
MFC after: 1 week
sys/compat/linux/linux_socket.c