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.

Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D53212

(cherry picked from commit 4ee0ddae1dab05dd8e3f273d861043c3e2919f23)

Details

Provenance
tuexenAuthored on Oct 20 2025, 2:26 PM
Reviewer
asomers
Differential Revision
D53212: sockstat: fix column length for PROTO
Parents
rG9899843370bb: tcp: cleanup of syncache_expand()
Branches
Unknown
Tags
Unknown