Page MenuHomeFreeBSD

sockstat: consolidate unix(4) protocols in the array of protocols
ClosedPublic

Authored by glebius on Jun 9 2026, 1:34 AM.
Tags
None
Referenced Files
F167624350: D57508.id.diff
Sun, Aug 23, 6:44 AM
Unknown Object (File)
Fri, Aug 21, 3:21 PM
Unknown Object (File)
Thu, Aug 20, 5:53 PM
Unknown Object (File)
Wed, Aug 19, 4:01 PM
Unknown Object (File)
Tue, Aug 18, 8:11 PM
Unknown Object (File)
Sun, Aug 16, 5:39 PM
Unknown Object (File)
Wed, Aug 12, 7:06 PM
Unknown Object (File)
Wed, Aug 12, 6:49 PM

Details

Summary

This makes it possible to list unix(4) protocols in -P, which was not
possible before. Update the manual page and provide an example.

In 'struct sock' make member proto a pointer into the protocols table
instead of a number. This removes namespace collision that mixed
IPPROTO_TCP and etc with SOCK_STREAM and etc. There were no known bugs
due to this collision, though.

Preserve all current UI bugs for possible combinations of protocol
selection options. Should be no UI changes outside the improved -P.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable