ba74b1fea1
This test program verifies that we can receive and discard datagrams by using recv() with a NULL buffer and zero-length. Extend it to verify it also works using recvmsg() and either an iov with a zero-length NULL buffer or an iov that itself is NULL and zero-length. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> [sbrivio: Fixed printf() message in main of recv-zero.c] Signed-off-by: Stefano Brivio <sbrivio@redhat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
common.c | ||
common.h | ||
Makefile | ||
README | ||
recv-zero.c | ||
reuseaddr-priority.c | ||
udp-close-dup.c |
Platform Requirements ===================== TODO: document the various Linux specific features we currently require Test Programs ------------- In some places we rely on quite specific behaviour of sockets. Although Linux, at least, seems to behave as required, It's not always clear from the available documentation if this is required by POSIX or some other specification. To specifically document those expectations this directory has some test programs which explicitly check for the behaviour we need. When/if we attempt a port to a new platform, running these to check behaviour would be a good place to start.