linux(4): Fix control message size calculation
authorDmitry Chagin <dchagin@FreeBSD.org>
Sat, 29 Jul 2023 08:21:35 +0000 (11:21 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Sat, 29 Jul 2023 08:21:35 +0000 (11:21 +0300)
commit67116c69052d27dbd6d6c066104850d4d53f0041
tree58c2e9efa80571956187570b21e267c36bfa8ca4
parent38588749af45d738e6f548f15beb415c46ba8658
linux(4): Fix control message size calculation

To determine the size in bytes needed to hold a control message
and its contents of length len, CMSG_SPACE should be used.

Reviewed by:
Differential Revision: https://reviews.freebsd.org/D41224
MFC after: 1 week
sys/compat/linux/linux_socket.c