Page MenuHomeFreeBSD

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

Authored by glebius on Tue, Jun 9, 1:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 29, 3:19 PM
Unknown Object (File)
Mon, Jun 29, 3:16 PM
Unknown Object (File)
Sun, Jun 28, 11:07 PM
Unknown Object (File)
Sun, Jun 28, 11:04 PM
Unknown Object (File)
Sun, Jun 28, 2:08 AM
Unknown Object (File)
Fri, Jun 26, 11:11 PM
Unknown Object (File)
Fri, Jun 26, 11:07 PM
Unknown Object (File)
Wed, Jun 24, 1:30 AM

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