HomeFreeBSD

sockstat: show path state column only when useful

Description

sockstat: show path state column only when useful

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.

Approved by: re (cperciva)
Reviewed by: rrs
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D52986

(cherry picked from commit 746eadecaa7dc8913721cbaa9be4e603bd36ea49)
(cherry picked from commit 9a0a114b7f10c9510f6e2d4e5d1c5e40218f383b)

Details

Provenance
tuexenAuthored on Oct 9 2025, 7:16 PM
cpercivaCommitted on Oct 17 2025, 5:58 PM
Reviewer
rrs
Differential Revision
D52986: sockstat: show path state column only when useful
Parents
rG4940dc8c3526: socket(2): refactor the manual page
Branches
Unknown
Tags
Unknown