<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/netstat, 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-04-07T14:39:51Z</updated>
<entry>
<title>netstat: Add -F support for -g</title>
<updated>2026-04-07T14:39:51Z</updated>
<author>
<name>Bojan Novković</name>
<email>bnovkov@FreeBSD.org</email>
</author>
<published>2026-03-26T09:39:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cff675e83cdb6c9027e94df9d010439e42e27dee'/>
<id>urn:sha1:cff675e83cdb6c9027e94df9d010439e42e27dee</id>
<content type='text'>
This change adds the ability to examine the contents of multicast
routing tables for other FIBs without the need for executing
`netstat` with `setfib(1)`.

MFC after:	3 days
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D56205
Reviewed by:	glebius, markj, zlei
</content>
</entry>
<entry>
<title>netstat(1): '-w': Banners to appear before a new statistics line, not after</title>
<updated>2026-04-07T09:23:09Z</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2026-04-02T19:13:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=31749859525b2b79634dc7c066c3563be5b1e3fd'/>
<id>urn:sha1:31749859525b2b79634dc7c066c3563be5b1e3fd</id>
<content type='text'>
Recurring banners except the first are printed just after the latest
interval's statistics line, giving the false impression that the latter
are omitted.  It is also better to print a new banner only if it is
going to be followed by a new line of statistics, in case netstat(1) is
interrupted or we have reached the number of iterations specified by
'-q'.

Fix this by pushing printing these banners inside the loop producing
statistics lines, after having waited for the next interval.

The first banner is printed before the loop, as we want it to be printed
immediately at launch, even if at this point we do not have statistics
to display (we have to wait for an interval to compute these, as they
are based on a difference).

While here, remove the 'goto' spaghetti by putting banner printing into
its own private function and using a proper infinite loop in
sidewaysintpr().

While here, document the why of the 21 statistics line span between two
banners.

While here, check for the number of output lines of statistics once such
a line has effectively been printed.  This allows to remove the internal
incrementation performed when reading '-w''s argument, which was a hack
to compensate the misplaced check.

While here, in the manual page, simplify the description of the '-w'
mode and mention that passing 0 to '-q' means "no count limit".

Reviewed by:    glebius
Fixes:          84c1edcbad7d ("Rewrite netstat/if.c to use ...")
Fixes:          bf10ffe1d3a9 ("Add a new option, -q howmany, ...")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56227
</content>
</entry>
<entry>
<title>netstat(1): Fix expire column in -r flag using netlink</title>
<updated>2026-02-26T09:48:09Z</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-02-22T16:35:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2f7cfeebcc4356d3bb85e953900ba5d3f75831ff'/>
<id>urn:sha1:2f7cfeebcc4356d3bb85e953900ba5d3f75831ff</id>
<content type='text'>
Reviewed by: glebius
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D55440
</content>
</entry>
<entry>
<title>netstat: Fix whitespace in libxo output for multicast routes</title>
<updated>2026-01-30T20:30:58Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-01-30T20:30:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=34c3e1d718a86436f863b2ae8b91bcf406b37f0e'/>
<id>urn:sha1:34c3e1d718a86436f863b2ae8b91bcf406b37f0e</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.
</content>
</entry>
<entry>
<title>netstat: fix typo</title>
<updated>2026-01-18T12:26:52Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2026-01-18T12:26:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0ef8f7133d0f1ee28af1689f013f18e002eeae9f'/>
<id>urn:sha1:0ef8f7133d0f1ee28af1689f013f18e002eeae9f</id>
<content type='text'>
MFC after:	3 days
</content>
</entry>
<entry>
<title>netstat: Remove padding from cc and stack fields</title>
<updated>2026-01-15T14:21:07Z</updated>
<author>
<name>Johan Söllvander</name>
<email>js@FreeBSD.org</email>
</author>
<published>2026-01-15T14:21:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=faa31fc0e7acc1c53bba2b69a63e9ff55d24faf7'/>
<id>urn:sha1:faa31fc0e7acc1c53bba2b69a63e9ff55d24faf7</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
MFC after:      5 days
Reviewed by:    asomers, tuexen
Approved by:    asomers (mentor)
Differential Revision:  https://reviews.freebsd.org/D54709
</content>
</entry>
<entry>
<title>netstat: fix a segfault with --libxo</title>
<updated>2026-01-07T14:35:13Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2026-01-06T22:19:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3b6615ec0332f901fcc9e9307f78717424f09c1e'/>
<id>urn:sha1:3b6615ec0332f901fcc9e9307f78717424f09c1e</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
MFC after:	1 week
Sponsored by:	ConnectWise
Reviewed by:	tuexen, js, des
Differential Revision: https://reviews.freebsd.org/D54567
</content>
</entry>
<entry>
<title>netstat: add support for UDP-Lite endpoints</title>
<updated>2025-10-23T07:15:22Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-10-23T07:15:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c2b08c13c20d44c3368bcbf738624e5fac461314'/>
<id>urn:sha1:c2b08c13c20d44c3368bcbf738624e5fac461314</id>
<content type='text'>
With this patch UDP-Lite endpoints are also shown per default.

Reviewed by:		Nick Banks
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53252
</content>
</entry>
<entry>
<title>netstat: Fix -ia missing multicast addresses on some interfaces</title>
<updated>2025-10-03T14:32:09Z</updated>
<author>
<name>Nick Reilly</name>
<email>nreilly@qnx.com</email>
</author>
<published>2025-09-12T19:27:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0952943a680dca12fe8f65f8813a9dca0783ce88'/>
<id>urn:sha1:0952943a680dca12fe8f65f8813a9dca0783ce88</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
</content>
</entry>
<entry>
<title>pf: Add pfsync protocol for FreeBSD 15</title>
<updated>2025-09-23T10:06:33Z</updated>
<author>
<name>Kajetan Staszkiewicz</name>
<email>ks@FreeBSD.org</email>
</author>
<published>2025-08-22T10:44:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=99475087d63b4602a0213645bc17d82c3946e2fd'/>
<id>urn:sha1:99475087d63b4602a0213645bc17d82c3946e2fd</id>
<content type='text'>
A new version of pfsync packet is introduced: 1500. This version solves
the issues with data alignment introduced in version 1400 and adds syncing
of information needed to sync states created by rules with af-to (original
interface, af and proto separate for wire and stack keys), of rt_af
needed for prefer-ipv6-nexthop, and of tag names.

Reviewed by:	kp
Sponsored by:	InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D52176
</content>
</entry>
</feed>
