| 5916ae1f | 06-Dec-2021 |
Robert Wing <[email protected]> |
libnv: read entire datagram in nvlist_recv()
When SOCK_DGRAM is used, a portion of the datagram is discarded during the initial recv() when getting the nvlist_header.
To workaround this, use MSG_PE
libnv: read entire datagram in nvlist_recv()
When SOCK_DGRAM is used, a portion of the datagram is discarded during the initial recv() when getting the nvlist_header.
To workaround this, use MSG_PEEK for the initial recv() when using a datagram socket.
Add tests for SOCK_DGRAM with nvlist_send()/nvlist_recv().
Differential Revision: https://reviews.freebsd.org/D32722
show more ...
|
| 07cf2bb6 | 16-Jul-2019 |
Mark Johnston <[email protected]> |
Use a platform-independent constant for PKG_MAX_SIZE.
This constant determines the number of rights libnv will attempt to transmit in a given control message. In practice, the upper limit defined b
Use a platform-independent constant for PKG_MAX_SIZE.
This constant determines the number of rights libnv will attempt to transmit in a given control message. In practice, the upper limit defined by the kernel is machine-dependent and is smaller on 64-bit kernels than on 32-bit kernels. To ensure that a 32-bit libnv works as expected when run on a 64-bit kernel, use a limit that will work on both 32-bit and 64-bit kernels.
PR: 238511 Discussed with: oshogbo MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20942
show more ...
|