<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/kern/socket_msg_trunc.c, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-10-24T18:03:49Z</updated>
<entry>
<title>Revert "socket tests: Add a regression test for ktrace+recv(MSG_TRUNC)"</title>
<updated>2023-10-24T18:03:49Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-24T18:03:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4bf16a282503fb1b9091e7e431220d97e72e25f9'/>
<id>urn:sha1:4bf16a282503fb1b9091e7e431220d97e72e25f9</id>
<content type='text'>
This reverts commit f5a9a849e9034c597c2b0a9014673a44834b9516.

This test will require extra work to port to stable/13.
</content>
</entry>
<entry>
<title>Revert "socket tests: Build fix"</title>
<updated>2023-10-24T18:03:27Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-24T18:03:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7259e54556f21f34dc6c161cb1bb9d8d42e49777'/>
<id>urn:sha1:7259e54556f21f34dc6c161cb1bb9d8d42e49777</id>
<content type='text'>
This reverts commit 1b07f630c11ccf899612a7d02777fe0855e3bb25.

This test will require extra work to port to stable/13.
</content>
</entry>
<entry>
<title>socket tests: Build fix</title>
<updated>2023-10-24T14:28:34Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-17T14:21:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b07f630c11ccf899612a7d02777fe0855e3bb25'/>
<id>urn:sha1:1b07f630c11ccf899612a7d02777fe0855e3bb25</id>
<content type='text'>
Fixes:	d8735eb7acc0 ("socket tests: Add a regression test for ktrace+recv(MSG_TRUNC)")
Reported by:	Jenkins

(cherry picked from commit 4bd1e19684945aa1fd3397b58613f5210fda9091)
</content>
</entry>
<entry>
<title>socket tests: Add a regression test for ktrace+recv(MSG_TRUNC)</title>
<updated>2023-10-24T13:18:43Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-16T22:23:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f5a9a849e9034c597c2b0a9014673a44834b9516'/>
<id>urn:sha1:f5a9a849e9034c597c2b0a9014673a44834b9516</id>
<content type='text'>
MFC after:	1 week

(cherry picked from commit d8735eb7acc0613fd19f74a49d3bdcb7ed0e9b0e)
</content>
</entry>
<entry>
<title>socket tests: Clean up the MSG_TRUNC regression tests a bit</title>
<updated>2023-10-24T13:18:27Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-16T21:35:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=95fa4ae00e18a46eb85e31718d172b12ba2d2ce4'/>
<id>urn:sha1:95fa4ae00e18a46eb85e31718d172b12ba2d2ce4</id>
<content type='text'>
- Fix style.
- Move test case-specific code out of the shared function and into the
  individual test cases.
- Remove unneeded setting of SO_REUSEPORT.
- Avoid unnecessary copying.
- Use ATF_REQUIRE* instead of ATF_CHECK*.  The former cause test
  execution to stop after a failed assertion, which is what we want.
- Add a test case for AF_LOCAL/SOCK_SEQPACKET sockets.

MFC after:	1 week

(cherry picked from commit b5e7dbac756afb49c58315c7081737b34a1d2dfd)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:26Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3d497e17ebd33fe0f58d773e35ab994d750258d6'/>
<id>urn:sha1:3d497e17ebd33fe0f58d773e35ab994d750258d6</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in main:
(cherry picked from commit 1d386b48a555)
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-07-25T15:13:49Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=caa41f641755c935b036e17440a3b49329c904ed'/>
<id>urn:sha1:caa41f641755c935b036e17440a3b49329c904ed</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
</content>
</entry>
<entry>
<title>sockets: add MSG_TRUNC flag handling for recvfrom()/recvmsg().</title>
<updated>2023-02-09T18:01:49Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2022-07-25T19:46:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=adaf752192c165b66875e81db62d274a09591d0c'/>
<id>urn:sha1:adaf752192c165b66875e81db62d274a09591d0c</id>
<content type='text'>
Implement Linux-variant of MSG_TRUNC input flag used in recv(), recvfrom() and recvmsg().
Posix defines MSG_TRUNC as an output flag, indicating packet/datagram truncation.
Linux extended it a while (~15+ years) ago to act as input flag,
resulting in returning the full packet size regarless of the input
buffer size.
It's a (relatively) popular pattern to do recvmsg( MSG_PEEK | MSG_TRUNC) to get the
packet size, allocate the buffer and issue another call to fetch the packet.
In particular, it's popular in userland netlink code, which is the primary driving factor of this change.

This commit implements the MSG_TRUNC support for SOCK_DGRAM sockets (udp, unix and all soreceive_generic() users).

PR:		kern/176322
Reviewed by:	pauamma(doc)
Differential Revision: https://reviews.freebsd.org/D35909
MFC after:	1 month

(cherry picked from commit be1f485d7d6bebc53b055cc165a11ada0ab5fb17)
</content>
</entry>
</feed>
