Page MenuHomeFreeBSD

netstat: reduce use of historical Internet classes
ClosedPublic

Authored by karels on Oct 28 2021, 4:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 15, 2:37 PM
Unknown Object (File)
Mon, Jun 15, 2:34 PM
Unknown Object (File)
Mon, May 25, 9:52 AM
Unknown Object (File)
Sun, May 24, 7:39 PM
Unknown Object (File)
Sun, May 24, 5:39 PM
Unknown Object (File)
May 21 2026, 2:10 PM
Unknown Object (File)
May 14 2026, 2:11 PM
Unknown Object (File)
May 2 2026, 11:22 AM
Subscribers

Details

Summary

When attempting to characterize bound addresses, netstat was checking
for host 0 on a (historical) net using inet_lnaof(). Such addresses
are not normally bound, as they would not work, with the exception
of the unspecified address, INADDR_ANY. Check for that explicitly.
Similarly, don't check bound addresses for a match to a network name.

Test Plan

tested on a system with numerous servers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42419
Build 39307: arc lint + arc unit