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
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D53212

Details

Provenance
tuexenAuthored on Oct 20 2025, 2:26 PM
Reviewer
asomers
Differential Revision
D53212: sockstat: fix column length for PROTO
Parents
rGa2838e818cfe: ehci(4): Add ID for Realtek RTL811x USB 2.0 controller
Branches
Unknown
Tags
Unknown