freebsd-dev/lib/libnv
Robert Wing 5916ae1fb1 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
2021-12-06 09:54:55 -09:00
..
tests libnv: read entire datagram in nvlist_recv() 2021-12-06 09:54:55 -09:00
common_impl.h Ensure that libnv can be used when kern.trap_enotcap=1. 2018-11-13 20:07:55 +00:00
Makefile libpfct: Fix PIC flag 2021-04-17 22:10:13 +02:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
msgio.c libnv: let nvlist_recv() pass flags to recv() 2021-12-06 09:54:55 -09:00
msgio.h libnv: let nvlist_recv() pass flags to recv() 2021-12-06 09:54:55 -09:00