<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/netlink, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>tests/netlink: Bugfix on snl_parse_errmsg_capped test</title>
<updated>2026-03-27T12:01:06+00:00</updated>
<author>
<name>K Rin</name>
<email>rin@sandb0x.tw</email>
</author>
<published>2025-04-12T05:41:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=18ce9e2dd0e062583080da624499927e8df8eaf3'/>
<id>18ce9e2dd0e062583080da624499927e8df8eaf3</id>
<content type='text'>
Turn off the NETLINK_EXT_ACK flag to fix bug of snl_parse_errmsg_capped.

Reviewed by:	pouria
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1660
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Turn off the NETLINK_EXT_ACK flag to fix bug of snl_parse_errmsg_capped.

Reviewed by:	pouria
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1660
</pre>
</div>
</content>
</entry>
<entry>
<title>gre tests: Fix gcc warnings on gre netlink tests</title>
<updated>2026-02-20T16:45:13+00:00</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-02-20T16:45:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=49fa0079cfc850917723e2163c51622eb5462429'/>
<id>49fa0079cfc850917723e2163c51622eb5462429</id>
<content type='text'>
Avoid using `snl_add_msg_attr_ip` for now and directly use
`snl_add_msg_attr_ip4` to silence gcc warnings.

Fixes: e1e18cc12e68
Differential Revision: https://reviews.freebsd.org/D54443
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoid using `snl_add_msg_attr_ip` for now and directly use
`snl_add_msg_attr_ip4` to silence gcc warnings.

Fixes: e1e18cc12e68
Differential Revision: https://reviews.freebsd.org/D54443
</pre>
</div>
</content>
</entry>
<entry>
<title>gre tests: Add required_kmods to gre netlink test</title>
<updated>2026-02-20T07:50:20+00:00</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-02-20T07:50:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1635ba90615a5d9342604d495b71ac5380030b36'/>
<id>1635ba90615a5d9342604d495b71ac5380030b36</id>
<content type='text'>
Fixes: e1e18cc12e68
Differential Revision: https://reviews.freebsd.org/D54443
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: e1e18cc12e68
Differential Revision: https://reviews.freebsd.org/D54443
</pre>
</div>
</content>
</entry>
<entry>
<title>if_gre: Add netlink support with tests</title>
<updated>2026-02-18T19:42:29+00:00</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-02-18T18:12:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e1e18cc12e68762b641646b203d9ac42d10e3b1f'/>
<id>e1e18cc12e68762b641646b203d9ac42d10e3b1f</id>
<content type='text'>
Migrate to new if_clone KPI and implement netlink support
for gre(4). Also refactor some of the gre specific ioctls.

Reviewed by: glebius, zlei
Differential Revision: https://reviews.freebsd.org/D54443
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Migrate to new if_clone KPI and implement netlink support
for gre(4). Also refactor some of the gre specific ioctls.

Reviewed by: glebius, zlei
Differential Revision: https://reviews.freebsd.org/D54443
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/netlink: fix flaky netlink_sockets:sizes</title>
<updated>2025-09-28T14:49:31+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2025-09-28T14:49:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=aab45f2aeec803d37514b574010cb5e7cfba8249'/>
<id>aab45f2aeec803d37514b574010cb5e7cfba8249</id>
<content type='text'>
The problem is that fullsocket() creates a socket that has both send and
receive buffers full and as we process messages from the receive buffer we
allow the kernel to continue processing of the send buffer and a new
message may arrive while the test expects that no new messages arrive.
Fix that by creating a socket that has several messages in the receive
buffer, but don't have any in the send buffer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The problem is that fullsocket() creates a socket that has both send and
receive buffers full and as we process messages from the receive buffer we
allow the kernel to continue processing of the send buffer and a new
message may arrive while the test expects that no new messages arrive.
Fix that by creating a socket that has several messages in the receive
buffer, but don't have any in the send buffer.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/sys/netlink: use require.kmods property instead of ad-hoc checks</title>
<updated>2025-09-05T18:42:22+00:00</updated>
<author>
<name>Siva Mahadevan</name>
<email>me@svmhdvn.name</email>
</author>
<published>2025-07-21T13:25:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=215a0654186926b2e4497d83f3eb45b5eefcb23f'/>
<id>215a0654186926b2e4497d83f3eb45b5eefcb23f</id>
<content type='text'>
Signed-off-by: Siva Mahadevan &lt;me@svmhdvn.name&gt;
Sponsored by: The FreeBSD Foundation
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1780
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Siva Mahadevan &lt;me@svmhdvn.name&gt;
Sponsored by: The FreeBSD Foundation
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1780
</pre>
</div>
</content>
</entry>
<entry>
<title>netlink: Move static arrays of parsers into tests that use them</title>
<updated>2025-04-11T13:52:39+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-04-11T01:30:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=65eaf726201cd81ecbc17b266786a042bccdf473'/>
<id>65eaf726201cd81ecbc17b266786a042bccdf473</id>
<content type='text'>
These are not documented as part of the API in the manpages and
raise warnings on GCC in the test-includes stage.

Reported by:	-Wunused-variable
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are not documented as part of the API in the manpages and
raise warnings on GCC in the test-includes stage.

Reported by:	-Wunused-variable
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/netlink: Assert the route scope of interface's addresses</title>
<updated>2025-03-07T04:14:44+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2025-03-07T04:14:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5d8b48487acc8375675f2b7c4507c98ac5d0bf75'/>
<id>5d8b48487acc8375675f2b7c4507c98ac5d0bf75</id>
<content type='text'>
While here, add one additional IPv4 link-local address to test_46_nofilter
to cover the IPv4 RT_SCOPE_LINK case.

Reviewed by:	melifaro, #network
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D49226
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While here, add one additional IPv4 link-local address to test_46_nofilter
to cover the IPv4 RT_SCOPE_LINK case.

Reviewed by:	melifaro, #network
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D49226
</pre>
</div>
</content>
</entry>
<entry>
<title>netlink: underscore snl_get_genl_family_info() to discourage its use</title>
<updated>2025-01-20T20:53:37+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2025-01-20T20:53:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f2a4eed3e13b6aeb9ddeef580d3b931cf22a14e3'/>
<id>f2a4eed3e13b6aeb9ddeef580d3b931cf22a14e3</id>
<content type='text'>
This function uses already supposedly opaque struct _getfamily_attrs as
the argument and it fills it with pointers to volatile memory, which makes
it is unsafe for general use.  While here also underscore structures that
hang off the struct _getfamily_attrs.

Small programs like powerd(8) and RPC daemons are converted to use
snl_get_genl_mcast_group() and/or snl_get_genl_family().  The genl(1)
utility was fixed not to mix its own parsers with parsers declared in
netlink_snl_generic.h.

Reviewed by:		melifaro
Differential Revision:	https://reviews.freebsd.org/D48480
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This function uses already supposedly opaque struct _getfamily_attrs as
the argument and it fills it with pointers to volatile memory, which makes
it is unsafe for general use.  While here also underscore structures that
hang off the struct _getfamily_attrs.

Small programs like powerd(8) and RPC daemons are converted to use
snl_get_genl_mcast_group() and/or snl_get_genl_family().  The genl(1)
utility was fixed not to mix its own parsers with parsers declared in
netlink_snl_generic.h.

Reviewed by:		melifaro
Differential Revision:	https://reviews.freebsd.org/D48480
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</pre>
</div>
</content>
</entry>
</feed>
