<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/netinet/libalias, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-07-17T16:51:11Z</updated>
<entry>
<title>man: Fix RFC 1918 network prefix lengths</title>
<updated>2026-07-17T16:51:11Z</updated>
<author>
<name>Yusuke Ichiki</name>
<email>public@yusuke.pub</email>
</author>
<published>2026-07-17T14:58:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1403ca10189c47ad1de3915eeb030deddc114685'/>
<id>urn:sha1:1403ca10189c47ad1de3915eeb030deddc114685</id>
<content type='text'>
According to RFC 1918, the following IP prefixes are reserved for
private internets:

    10.0.0.0/8
    172.16.0.0/12
    192.168.0.0/16

This PR fixes the prefix lengths in references to private networks
("RFC 1918 networks", "the standard private IP address ranges").
The changes are limited to man pages.

Signed-off-by:	Yusuke Ichiki &lt;public@yusuke.pub&gt;
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2328
MFC after:	3 days
</content>
</entry>
<entry>
<title>libalias: use htons() when converting from host to network</title>
<updated>2026-07-10T18:12:10Z</updated>
<author>
<name>Yusuke Ichiki</name>
<email>public@yusuke.pub</email>
</author>
<published>2026-07-10T18:11:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f0b8c514a18d098d9e1cfd10fa4401f277cb2f1f'/>
<id>urn:sha1:f0b8c514a18d098d9e1cfd10fa4401f277cb2f1f</id>
<content type='text'>
PR:	295434
</content>
</entry>
<entry>
<title>libalias: Fix buffer overflow in RTSP aliasing</title>
<updated>2026-06-30T17:00:22Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-06-28T22:10:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=271b8f0f090836393d835219c37ae7e41ac39357'/>
<id>urn:sha1:271b8f0f090836393d835219c37ae7e41ac39357</id>
<content type='text'>
In alias_rtsp_out(), we construct a new packet in a fixed-length buffer
before copying it back into the original buffer.  We never checked if
the data we were writing to this temporary buffer fit in it, nor if the
result fit in the original buffer.

* Use a dynamically sized allocated buffer instead of a fixed-length
  stack buffer.

* Check for overflow before appending to our temporary buffer.

* Check for overflow before copying the data back to the packet buffer.

* While here, use size_t for sizes and bool for booleans.

Approved by:	so
Security:	FreeBSD-SA-26:41.libalias
Security:	CVE-2026-49420
MFC after:	1 week
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D57753
</content>
</entry>
<entry>
<title>libalias: Serialize updates to the global instance list</title>
<updated>2026-06-08T22:49:51Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-06-08T22:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2ff705f32a2033201a8f83f1ade5ddbc0460387d'/>
<id>urn:sha1:2ff705f32a2033201a8f83f1ade5ddbc0460387d</id>
<content type='text'>
libalias maintains a global list of all libalias handles.  The list was
updated without any locking, but nothing prevents updates from running
concurrently.

MFC after:	1 week
</content>
</entry>
<entry>
<title>libalias: quiet gcc -Wcalloc-transposed-args</title>
<updated>2025-10-17T22:43:06Z</updated>
<author>
<name>Ryan Libby</name>
<email>rlibby@FreeBSD.org</email>
</author>
<published>2025-10-17T22:43:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bf427a09b617b60068af65a4c14632fea4ef7dda'/>
<id>urn:sha1:bf427a09b617b60068af65a4c14632fea4ef7dda</id>
<content type='text'>
Reviewed by:	phk
Differential Revision:	https://reviews.freebsd.org/D53151
</content>
</entry>
<entry>
<title>machine/stdarg.h -&gt; sys/stdarg.h</title>
<updated>2025-06-11T16:39:02Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2025-06-11T16:39:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e453e498cbb88570a3ff7b3679de65c88707da95'/>
<id>urn:sha1:e453e498cbb88570a3ff7b3679de65c88707da95</id>
<content type='text'>
Switch to using sys/stdarg.h for va_list type and va_* builtins.

Make an attempt to insert the include in a sensible place.  Where
style(9) was followed this is easy, where it was ignored, aim for the
first block of sys/*.h headers and don't get too fussy or try to fix
other style bugs.

Reviewed by:	imp
Exp-run by:	antoine (PR 286274)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1595
</content>
</entry>
<entry>
<title>libalias: Handle GetNewPort() errors properly</title>
<updated>2025-04-18T15:11:51Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-04-18T13:37:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb2ea26f3c3681f5ef639af9c798a631d800864b'/>
<id>urn:sha1:fb2ea26f3c3681f5ef639af9c798a631d800864b</id>
<content type='text'>
AddLink() fails when memory allocation fails or no free port is
available; both are error conditions.  However, functions such as
FindUdpTcpIn() were converting such failures to PKT_ALIAS_IGNORED, which
effectively means, "pass the packet without translation," which isn't
what we want.

Fix the problem by making sure that AddLink() errors are converted to
PKT_ALIAS_ERROR where appropriate.  The diff is a bit large but is
mostly mechanical: functions like TcpAliasOut() are converted to return
a result code, and an additional out-parameter is added to return the
alias_link pointer.

Reported by:	Yuxiang Yang &lt;yangyx22@mails.tsinghua.edu.cn&gt;
Tested by:	Yuxiang Yang &lt;yangyx22@mails.tsinghua.edu.cn&gt;
MFC after:	2 months
Differential Revision:	https://reviews.freebsd.org/D47778
</content>
</entry>
<entry>
<title>man: Remove references to classful networks</title>
<updated>2025-02-04T21:27:21Z</updated>
<author>
<name>Olivier Cochard</name>
<email>olivier@FreeBSD.org</email>
</author>
<published>2025-02-04T21:22:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f16ca171eaad70563872f61042eccd2971da572f'/>
<id>urn:sha1:f16ca171eaad70563872f61042eccd2971da572f</id>
<content type='text'>
Update wording in manual pages to replace references to classful networks with
CIDR notation.

Approved by:	glebius, dhw
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D48853
</content>
</entry>
<entry>
<title>libalias: Add support for EIM NAT</title>
<updated>2024-12-05T16:19:13Z</updated>
<author>
<name>Damjan Jovanovic</name>
<email>damjan.jov@gmail.com</email>
</author>
<published>2024-12-05T16:19:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=61bf830cbb260c2a046cb44421d319184393e028'/>
<id>urn:sha1:61bf830cbb260c2a046cb44421d319184393e028</id>
<content type='text'>
Add support for endpoint-independent mapping ("full cone NAT") in
Libalias's UDP NAT.

This conforms to RFC 4787 requirements 1 and 3. All UDP packets sent out from a
particular internal address:port leave via the same NAT address:port,
regardless of their destination.

Add some libalias tests and supporting defines.

Reviewed by:    igoro, thj
Differential Revision:  https://reviews.freebsd.org/D46689D
</content>
</entry>
<entry>
<title>tcp: extend the use of the th_flags accessor function</title>
<updated>2024-11-29T08:48:23Z</updated>
<author>
<name>Richard Scheffenegger</name>
<email>rscheff@FreeBSD.org</email>
</author>
<published>2024-11-29T08:44:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0fc7bdc978366abb4351b0b76b50a5848cc5d982'/>
<id>urn:sha1:0fc7bdc978366abb4351b0b76b50a5848cc5d982</id>
<content type='text'>
Formally, there are 12 bits for TCP header flags.
Use the accessor functions in more (kernel) places.

No functional change.

Reviewed By: cc, #transport, cy, glebius, #iflib, kbowling
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D47063
</content>
</entry>
</feed>
