papi: Use CMSG_SPACE for sizing ancillary buffer space 64/40564/5
authorTom Jones <thj@freebsd.org>
Wed, 7 Feb 2024 13:31:50 +0000 (13:31 +0000)
committerOle Tr�an <otroan@employees.org>
Tue, 26 Mar 2024 15:09:29 +0000 (15:09 +0000)
CMSG_LEN provides the length required to store an ancillary item, but it
does not consider padding. RFC 3542 requires portable applications to
use CMSG_SPACE(), this is documented in the python API:

https://docs.python.org/3/library/socket.html#socket.CMSG_LEN

Type: improvement
Change-Id: I0eab470585f2f39bea38639db95d6b0e047d2cff
Signed-off-by: Tom Jones <thj@freebsd.org>

No differences found