freebsd-dev/sys/contrib/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
..
bsd_nvpair.c libnv: Fix array unpack endianness logic 2021-09-13 21:21:14 +02:00
cnvlist.c
dnvlist.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
nv_impl.h libnv: Allow use in non-sleepable contexts 2021-04-07 15:54:10 +02:00
nvlist_impl.h
nvlist.c libnv: read entire datagram in nvlist_recv() 2021-12-06 09:54:55 -09:00
nvpair_impl.h