<feed xmlns='http://www.w3.org/2005/Atom'>
<title>passt/doc/platform-requirements/recv-zero.c, branch 2025_05_12.8ec1341</title>
<subtitle>Plug A Simple Socket Transport</subtitle>
<link rel='alternate' type='text/html' href='https://passt.top/passt/'/>
<entry>
<title>doc: Extend zero-recv test with methods using msghdr</title>
<updated>2024-07-17T13:31:02+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2024-07-17T04:52:23+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=ba74b1fea1ef661dc8cce1d32863c9784d2747a6'/>
<id>ba74b1fea1ef661dc8cce1d32863c9784d2747a6</id>
<content type='text'>
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 &lt;david@gibson.dropbear.id.au&gt;
[sbrivio: Fixed printf() message in main of recv-zero.c]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;david@gibson.dropbear.id.au&gt;
[sbrivio: Fixed printf() message in main of recv-zero.c]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>doc: Test behaviour of zero length datagram recv()s</title>
<updated>2024-07-05T13:26:48+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2024-07-05T10:44:09+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=ec2691a12ed4c25b6fe3f542f45d13a5ef52db67'/>
<id>ec2691a12ed4c25b6fe3f542f45d13a5ef52db67</id>
<content type='text'>
Add a test program verifying that we're able to discard datagrams from a
socket without needing a big discard buffer, by using a zero length recv().

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a test program verifying that we're able to discard datagrams from a
socket without needing a big discard buffer, by using a zero length recv().

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
