HomeFreeBSD

sockstat: fix column length for PROTO

Description

sockstat: fix column length for PROTO

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.

Approved by: re (cperciva)
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D53212

(cherry picked from commit 4ee0ddae1dab05dd8e3f273d861043c3e2919f23)
(cherry picked from commit 8c197879bf55dd9bdec84397fc29c3abcf959840)

Details

Provenance
tuexenAuthored on Oct 20 2025, 2:26 PM
cpercivaCommitted on Oct 23 2025, 11:32 PM
Reviewer
asomers
Differential Revision
D53212: sockstat: fix column length for PROTO
Parents
rG2c40d6e95f1a: UPDATING: bump __FreeBSD_version for LinuxKPI changes
Branches
Unknown
Tags
Unknown