<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/netgraph, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>tests/netgraph: fix tests that depended on connect(in6addr_any)</title>
<updated>2026-02-02T20:15:26+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2026-02-02T20:15:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=32c3723f06554db7d0da49c6f361c7b8f1a394c1'/>
<id>32c3723f06554db7d0da49c6f361c7b8f1a394c1</id>
<content type='text'>
Fixes:	627e126dbb07b167b028380ef61bb45f10493938
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes:	627e126dbb07b167b028380ef61bb45f10493938
</pre>
</div>
</content>
</entry>
<entry>
<title>ng_ksocket: Add tests for IPv6</title>
<updated>2025-06-25T10:12:11+00:00</updated>
<author>
<name>Seyed Pouria Mousavizadeh Tehrani</name>
<email>info@spmzt.net</email>
</author>
<published>2025-06-25T07:31:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d86c5811cdb384b3ba565187f8dc7e7e51b6466e'/>
<id>d86c5811cdb384b3ba565187f8dc7e7e51b6466e</id>
<content type='text'>
Add udp6_connect and udp6_bind for ng_ksocket

Differential Revision:	https://reviews.freebsd.org/D50111
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add udp6_connect and udp6_bind for ng_ksocket

Differential Revision:	https://reviews.freebsd.org/D50111
</pre>
</div>
</content>
</entry>
<entry>
<title>netgraph/ksocket tests: Bind to a specific address</title>
<updated>2025-06-20T22:35:38+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-06-20T22:33:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2fcbd5a75b5adea9830b6688f3ae529bdfbc28f0'/>
<id>2fcbd5a75b5adea9830b6688f3ae529bdfbc28f0</id>
<content type='text'>
Otherwise we rely on connect(INADDR_ANY) connecting to a socket bound to
an arbitrary host address, but as of commit cd240957d7ba this is
disallowed by default.

Reported by:	Siva Mahadevan &lt;me@svmhdvn.name&gt;
Fixes:		cd240957d7ba ("netinet: Disallow connections to INADDR_ANY")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise we rely on connect(INADDR_ANY) connecting to a socket bound to
an arbitrary host address, but as of commit cd240957d7ba this is
disallowed by default.

Reported by:	Siva Mahadevan &lt;me@svmhdvn.name&gt;
Fixes:		cd240957d7ba ("netinet: Disallow connections to INADDR_ANY")
</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>
<entry>
<title>tests/netgraph: start ng_ksocket(4) tests</title>
<updated>2024-03-23T05:44:16+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2024-03-23T05:44:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a8edc9f1e316e4893b0b6aac282c542102cf3b99'/>
<id>a8edc9f1e316e4893b0b6aac282c542102cf3b99</id>
<content type='text'>
The ng_ksocket(4) functionality is very fragile as it interfaces with
kernel socket code in unusual way.  It definitely needs a test suite.
Start one with a test that tests UDP over IPv4.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ng_ksocket(4) functionality is very fragile as it interfaces with
kernel socket code in unusual way.  It definitely needs a test suite.
Start one with a test that tests UDP over IPv4.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/netgraph: mark all tests as required_user="root"</title>
<updated>2024-03-23T02:50:33+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2024-03-23T02:50:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fbbb50f57093307d972a22ef001670dc92dc8f22'/>
<id>fbbb50f57093307d972a22ef001670dc92dc8f22</id>
<content type='text'>
Any netgraph operation requires root priveleges.  Some tests in the
directory already mark themselves with 'atf_tc_set_md_var(conf,
"require.user", "root");' which creates a lot of pasted code.  Some tests
don't mark self.  For this particular directory a blanket metadata setting
in the Makefile is acceptable, imho.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Any netgraph operation requires root priveleges.  Some tests in the
directory already mark themselves with 'atf_tc_set_md_var(conf,
"require.user", "root");' which creates a lot of pasted code.  Some tests
don't mark self.  For this particular directory a blanket metadata setting
in the Makefile is acceptable, imho.
</pre>
</div>
</content>
</entry>
<entry>
<title>ng_socket: with getsockname() return node ID for unnamed node</title>
<updated>2023-11-28T04:11:38+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2023-11-28T04:11:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d2de66a90d01810b1869b7dcac290267f05e4b1d'/>
<id>d2de66a90d01810b1869b7dcac290267f05e4b1d</id>
<content type='text'>
Reviewed by:		afedorov
Differential Revision:	https://reviews.freebsd.org/D42691
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:		afedorov
Differential Revision:	https://reviews.freebsd.org/D42691
</pre>
</div>
</content>
</entry>
<entry>
<title>netgraph: increase size of sockaddr_ng to match maximum node name</title>
<updated>2023-11-28T04:10:52+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2023-11-28T04:10:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4064a1108b51b24903c8d67db21e8dbaf89b475f'/>
<id>4064a1108b51b24903c8d67db21e8dbaf89b475f</id>
<content type='text'>
The ng_socket(4) node already writes more than declared size of the
struct at least in the in ng_getsockaddr().  Make size match size of
a node name.  The value is pasted instead of including ng_message.h
into ng_socket.h.  This is external API and we want to keep it stable
even if NG_NODESIZ is redefined in a kernel build.

Reviewed by:		afedorov
Differential Revision:	https://reviews.freebsd.org/D42690
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ng_socket(4) node already writes more than declared size of the
struct at least in the in ng_getsockaddr().  Make size match size of
a node name.  The value is pasted instead of including ng_message.h
into ng_socket.h.  This is external API and we want to keep it stable
even if NG_NODESIZ is redefined in a kernel build.

Reviewed by:		afedorov
Differential Revision:	https://reviews.freebsd.org/D42690
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/netgraph:	start ng_socket test suite</title>
<updated>2023-11-20T22:36:58+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2023-11-20T22:36:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=367e8adb4be91ca3c0d40c085eaf47467d0ad25d'/>
<id>367e8adb4be91ca3c0d40c085eaf47467d0ad25d</id>
<content type='text'>
Just one check now, check node name.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just one check now, check node name.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</pre>
</div>
</content>
</entry>
</feed>
