HomeFreeBSD

sockstat: improve handling of path state

Description

sockstat: improve handling of path state

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

Details

Provenance
tuexenAuthored on Oct 14 2025, 6:39 AM
Reviewer
rG746eadecaa7d: sockstat: show path state column only when useful
Differential Revision
D53005: sockstat: improve handling of path state
Parents
rGad13fd5a8fa1: socket.2: spell
Branches
Unknown
Tags
Unknown