<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/netstat, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>netstat: Fix whitespace in libxo output for multicast routes</title>
<updated>2026-02-16T16:09:28+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-01-30T20:30:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=49dbd7670300e015a217ffb00a3110db5ef28c7d'/>
<id>49dbd7670300e015a217ffb00a3110db5ef28c7d</id>
<content type='text'>
Also fix some bogus libxo format strings in mroute6.c, and close a
couple of lists instead of opening them twice.

Fixes:		ade9ccfe211a ("Convert netstat to use libxo.")
MFC after:	2 weeks
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.

(cherry picked from commit 34c3e1d718a86436f863b2ae8b91bcf406b37f0e)
(cherry picked from commit d2b595debaf2ff82a402c9226a77cd43cc97bb50)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also fix some bogus libxo format strings in mroute6.c, and close a
couple of lists instead of opening them twice.

Fixes:		ade9ccfe211a ("Convert netstat to use libxo.")
MFC after:	2 weeks
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.

(cherry picked from commit 34c3e1d718a86436f863b2ae8b91bcf406b37f0e)
(cherry picked from commit d2b595debaf2ff82a402c9226a77cd43cc97bb50)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: fix typo</title>
<updated>2026-01-21T15:18:14+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2026-01-18T12:26:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e8731113c601a4ed0d2faa3a1e8aaee643176760'/>
<id>e8731113c601a4ed0d2faa3a1e8aaee643176760</id>
<content type='text'>
(cherry picked from commit 0ef8f7133d0f1ee28af1689f013f18e002eeae9f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 0ef8f7133d0f1ee28af1689f013f18e002eeae9f)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: fix a segfault with --libxo</title>
<updated>2026-01-20T17:15:13+00:00</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2026-01-06T22:19:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b3647e2a408e8a0246ec2240a152f8c41c3482cb'/>
<id>b3647e2a408e8a0246ec2240a152f8c41c3482cb</id>
<content type='text'>
Fix a segfault when printing the "protocol" field.  The field-format and
encoding-format were expecting different numbers of arguments.

Also, fix the width of the tcp-state field in encoded output.

PR:		292228
Fixes:		c2b08c13c20 netstat: add support for UDP-Lite endpoints
Sponsored by:	ConnectWise
Reviewed by:	tuexen, js, des
Differential Revision: https://reviews.freebsd.org/D54567

(cherry picked from commit 3b6615ec0332f901fcc9e9307f78717424f09c1e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a segfault when printing the "protocol" field.  The field-format and
encoding-format were expecting different numbers of arguments.

Also, fix the width of the tcp-state field in encoded output.

PR:		292228
Fixes:		c2b08c13c20 netstat: add support for UDP-Lite endpoints
Sponsored by:	ConnectWise
Reviewed by:	tuexen, js, des
Differential Revision: https://reviews.freebsd.org/D54567

(cherry picked from commit 3b6615ec0332f901fcc9e9307f78717424f09c1e)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: Remove padding from cc and stack fields</title>
<updated>2026-01-20T13:25:39+00:00</updated>
<author>
<name>Johan Söllvander</name>
<email>js@FreeBSD.org</email>
</author>
<published>2026-01-15T14:21:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=af46d309a72b73398c3d0e4bee9b21437af17d7a'/>
<id>af46d309a72b73398c3d0e4bee9b21437af17d7a</id>
<content type='text'>
Trim white space padding that gets added libxo fields cc and stack when
using -C and -c.

The padding is only visible if you're using multiple stacks or
congestion algorithms.

PR:             292262
Reviewed by:    asomers, tuexen
Approved by:    asomers (mentor)
Differential Revision:  https://reviews.freebsd.org/D54709

(cherry picked from commit faa31fc0e7acc1c53bba2b69a63e9ff55d24faf7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Trim white space padding that gets added libxo fields cc and stack when
using -C and -c.

The padding is only visible if you're using multiple stacks or
congestion algorithms.

PR:             292262
Reviewed by:    asomers, tuexen
Approved by:    asomers (mentor)
Differential Revision:  https://reviews.freebsd.org/D54709

(cherry picked from commit faa31fc0e7acc1c53bba2b69a63e9ff55d24faf7)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: add support for UDP-Lite endpoints</title>
<updated>2025-10-31T14:05:57+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-10-23T07:15:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a0b91ae49c190d2976b2b5f0b41177b4e5da30ff'/>
<id>a0b91ae49c190d2976b2b5f0b41177b4e5da30ff</id>
<content type='text'>
With this patch UDP-Lite endpoints are also shown per default.

Reviewed by:		Nick Banks
Differential Revision:	https://reviews.freebsd.org/D53252

(cherry picked from commit c2b08c13c20d44c3368bcbf738624e5fac461314)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this patch UDP-Lite endpoints are also shown per default.

Reviewed by:		Nick Banks
Differential Revision:	https://reviews.freebsd.org/D53252

(cherry picked from commit c2b08c13c20d44c3368bcbf738624e5fac461314)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: Fix -ia missing multicast addresses on some interfaces</title>
<updated>2025-10-11T15:21:48+00:00</updated>
<author>
<name>Nick Reilly</name>
<email>nreilly@qnx.com</email>
</author>
<published>2025-09-12T19:27:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=54a72bbaee2eeed26f8a06bb28a1fc52f24789f7'/>
<id>54a72bbaee2eeed26f8a06bb28a1fc52f24789f7</id>
<content type='text'>
sdl_data isn't always NULL terminated

Signed-off-by: nreilly@qnx.com

PR:		288958
Reviewed by:	markj
MFC after:	1 week

(cherry picked from commit 0952943a680dca12fe8f65f8813a9dca0783ce88)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sdl_data isn't always NULL terminated

Signed-off-by: nreilly@qnx.com

PR:		288958
Reviewed by:	markj
MFC after:	1 week

(cherry picked from commit 0952943a680dca12fe8f65f8813a9dca0783ce88)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: improve statistic output for sctp</title>
<updated>2025-09-05T22:26:39+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-08-26T12:57:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bb2287ec1b0170e0f52a13c44d5571dbcfd6fff0'/>
<id>bb2287ec1b0170e0f52a13c44d5571dbcfd6fff0</id>
<content type='text'>
Provide counters for receive and transmit checksum offloading for
SCTP.

(cherry picked from commit 6d988ec3a76135409730313877b3eb0b8a7517fc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Provide counters for receive and transmit checksum offloading for
SCTP.

(cherry picked from commit 6d988ec3a76135409730313877b3eb0b8a7517fc)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: report undelivered multi and broadcast UDP packets correctly</title>
<updated>2025-09-05T19:02:52+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-08-13T06:57:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fd86cd7a7f499358f4402e9963529e3637b508ed'/>
<id>fd86cd7a7f499358f4402e9963529e3637b508ed</id>
<content type='text'>
When reporting undelivered broadcast/multicast datagrams, don't just
report the undelivered broadcast ones. Actually report the sum of both.
Alternatively, one could also report broadcast and multicast datagrams
separately, but that would change the output format of netstat.
While there, use the correct type for casting a variable printed
with %ju.

Reviewed by:		cc
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D51881

(cherry picked from commit 2b068d35de84975ea4b04a19413786663a51dc70)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When reporting undelivered broadcast/multicast datagrams, don't just
report the undelivered broadcast ones. Actually report the sum of both.
Alternatively, one could also report broadcast and multicast datagrams
separately, but that would change the output format of netstat.
While there, use the correct type for casting a variable printed
with %ju.

Reviewed by:		cc
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D51881

(cherry picked from commit 2b068d35de84975ea4b04a19413786663a51dc70)
</pre>
</div>
</content>
</entry>
<entry>
<title>netstat: remove unneeded cast</title>
<updated>2025-09-05T19:02:22+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-08-12T17:45:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4eb741473379cec354a5f478a6cc94a31d505dfd'/>
<id>4eb741473379cec354a5f478a6cc94a31d505dfd</id>
<content type='text'>
delivered is already an uint64_t, so no need to cast it to that
type.

Sponsored by:		Netflix, Inc.

(cherry picked from commit 6bca82843e5605fc242211093b56d1129eb4307c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
delivered is already an uint64_t, so no need to cast it to that
type.

Sponsored by:		Netflix, Inc.

(cherry picked from commit 6bca82843e5605fc242211093b56d1129eb4307c)
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't include netinet/tcp_timer.h when not needed</title>
<updated>2025-09-05T06:18:15+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-06-17T04:07:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=39291cea53ad06e0dacc98d7c81658b7d75c28c1'/>
<id>39291cea53ad06e0dacc98d7c81658b7d75c28c1</id>
<content type='text'>
Reviewed by:		glebius
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D50889

(cherry picked from commit 6039cd1b45eb847ef5bbe6c58341b8b92fff8a74)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:		glebius
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D50889

(cherry picked from commit 6039cd1b45eb847ef5bbe6c58341b8b92fff8a74)
</pre>
</div>
</content>
</entry>
</feed>
