<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/sockstat, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>sockstat: Unbreak SEE ALSO section</title>
<updated>2026-04-15T09:36:40+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-04-15T09:36:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a6bd704850a615ae81076855a2083c7ab6481df1'/>
<id>a6bd704850a615ae81076855a2083c7ab6481df1</id>
<content type='text'>
MFC after:	1 week
Fixes:		7b35b4d19630 ("sockstat: add libxo support")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	1 week
Fixes:		7b35b4d19630 ("sockstat: add libxo support")
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: Surround explicit IPv6 addresses with brackets</title>
<updated>2026-01-31T20:48:56+00:00</updated>
<author>
<name>Michael Osipov</name>
<email>michaelo@FreeBSD.org</email>
</author>
<published>2025-12-26T17:27:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fe81e3944c085e765c83c4f78941d7529ceb556e'/>
<id>fe81e3944c085e765c83c4f78941d7529ceb556e</id>
<content type='text'>
PR:		254611
Approved by:	otis, tuexen, des
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54375
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		254611
Approved by:	otis, tuexen, des
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54375
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: improve formataddr() according to style(9)</title>
<updated>2026-01-16T19:36:46+00:00</updated>
<author>
<name>Michael Osipov</name>
<email>michaelo@FreeBSD.org</email>
</author>
<published>2025-12-29T21:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f89f7e58ba1d54c6a683e3cc899938895496c088'/>
<id>f89f7e58ba1d54c6a683e3cc899938895496c088</id>
<content type='text'>
Reviewed by:	des
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D54412
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	des
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D54412
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat(1): Add "-F" parameter</title>
<updated>2025-11-02T15:17:47+00:00</updated>
<author>
<name>Juraj Lutter</name>
<email>otis@FreeBSD.org</email>
</author>
<published>2025-10-29T20:48:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2deeed061b1473a4230211c6562a533b76ce846c'/>
<id>2deeed061b1473a4230211c6562a533b76ce846c</id>
<content type='text'>
Add "-F" parameter that, when specified, instructs sockstat(1) to
only display sockets for username/UID specified.

For consistency with "-j", the last occurence of "-F" is used.

Reviewed by:		asomers
Approved by:		asomers
Differential Revision:	https://reviews.freebsd.org/D53458
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add "-F" parameter that, when specified, instructs sockstat(1) to
only display sockets for username/UID specified.

For consistency with "-j", the last occurence of "-F" is used.

Reviewed by:		asomers
Approved by:		asomers
Differential Revision:	https://reviews.freebsd.org/D53458
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: add support for UDP-Lite endpoints</title>
<updated>2025-10-23T07:12:32+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-10-23T07:12:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f48c6390dd5a01ab2b33f26ee50f4e8cbe8ae737'/>
<id>f48c6390dd5a01ab2b33f26ee50f4e8cbe8ae737</id>
<content type='text'>
With this patch UDP-Lite endpoints are also show per default.

Reviewed by:		Peter Lei, Nick Banks
MFC after:		3 days
Relnotes:		yes
Differential Revision:	https://reviews.freebsd.org/D53230
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this patch UDP-Lite endpoints are also show per default.

Reviewed by:		Peter Lei, Nick Banks
MFC after:		3 days
Relnotes:		yes
Differential Revision:	https://reviews.freebsd.org/D53230
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: fix column length for PROTO</title>
<updated>2025-10-20T14:26:52+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-10-20T14:26:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4ee0ddae1dab05dd8e3f273d861043c3e2919f23'/>
<id>4ee0ddae1dab05dd8e3f273d861043c3e2919f23</id>
<content type='text'>
The computation of the length was not taking into account that IPv6
endpoints, which are not IPv6 only, have a suffix of 46.
For UDP and TCP this bug was not relevant, since tcp46 and udp46
has the same length as PROTO, but sctp46 is longer. Upcoming
udplite support will also be affected.

Reviewed by:		asomers
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53212
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The computation of the length was not taking into account that IPv6
endpoints, which are not IPv6 only, have a suffix of 46.
For UDP and TCP this bug was not relevant, since tcp46 and udp46
has the same length as PROTO, but sctp46 is longer. Upcoming
udplite support will also be affected.

Reviewed by:		asomers
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53212
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: improve handling of path state</title>
<updated>2025-10-14T06:48:43+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-10-14T06:39:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=97e858f5b335ae8f98619f9cee8ab9a0501cd06d'/>
<id>97e858f5b335ae8f98619f9cee8ab9a0501cd06d</id>
<content type='text'>
Only suppress the path state column when producing traditional text
output. When generating html output, always include the column.
Please note that when generating json or xml output, optional fields
like the path state are only generated if they is applicable. This
has not been changed.
The changes in this patch were suggested by asomers.

Reviewed by:		asomers
Fixes:			746eadecaa7d ("sockstat: show path state column only when useful")
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D53005
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only suppress the path state column when producing traditional text
output. When generating html output, always include the column.
Please note that when generating json or xml output, optional fields
like the path state are only generated if they is applicable. This
has not been changed.
The changes in this patch were suggested by asomers.

Reviewed by:		asomers
Fixes:			746eadecaa7d ("sockstat: show path state column only when useful")
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D53005
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: Fix build reproducibility</title>
<updated>2025-10-10T20:50:45+00:00</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2025-10-10T20:13:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9934558460e4e73e5b55648c4b13a702f4f019d7'/>
<id>9934558460e4e73e5b55648c4b13a702f4f019d7</id>
<content type='text'>
Both usr.bin/sockstat and usr.bin/sockstat/tests build the file
src/usr.bin/sockstat/sockstat.c.  Unfortunately, they place the
resulting object file in the same place, but produce different
files due to paths appearing in the .debug files; this results
in different binaries depending on how the race between the two
builds ends.

Use .PATH to tell make to find sockstat.c in the parent directory
but place the object file in the current object directory, rather
than placing '..' into the name of the source file.

Suggested by:	bdrewery, emaste, jrtc27
MFC after:	5 minutes (15.0 build fix)
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D53032
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both usr.bin/sockstat and usr.bin/sockstat/tests build the file
src/usr.bin/sockstat/sockstat.c.  Unfortunately, they place the
resulting object file in the same place, but produce different
files due to paths appearing in the .debug files; this results
in different binaries depending on how the race between the two
builds ends.

Use .PATH to tell make to find sockstat.c in the parent directory
but place the object file in the current object directory, rather
than placing '..' into the name of the source file.

Suggested by:	bdrewery, emaste, jrtc27
MFC after:	5 minutes (15.0 build fix)
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D53032
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: show path state column only when useful</title>
<updated>2025-10-09T19:16:38+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-10-09T19:16:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=746eadecaa7dc8913721cbaa9be4e603bd36ea49'/>
<id>746eadecaa7dc8913721cbaa9be4e603bd36ea49</id>
<content type='text'>
Showing the path state column is only useful, if there is at least one
SCTP endpoint shown, which is not in the state CLOSED or LISTEN.
Don't show it when it is not useful.

Reviewed by:		rrs
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D52986
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Showing the path state column is only useful, if there is at least one
SCTP endpoint shown, which is not in the state CLOSED or LISTEN.
Don't show it when it is not useful.

Reviewed by:		rrs
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D52986
</pre>
</div>
</content>
</entry>
<entry>
<title>sockstat: improve output formatting</title>
<updated>2025-10-09T19:13:56+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-10-09T19:10:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=98b2a2265f5ee47bd932347699e6117df2f41488'/>
<id>98b2a2265f5ee47bd932347699e6117df2f41488</id>
<content type='text'>
Fix the format when the output for a socket spans multiple lines.

Reviewed by:		rrs
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D52984
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the format when the output for a socket spans multiple lines.

Reviewed by:		rrs
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D52984
</pre>
</div>
</content>
</entry>
</feed>
