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, Mar 30, 2:46 AM
Unknown Object (File)
Wed, Mar 25, 9:05 AM
Unknown Object (File)
Sun, Mar 22, 7:02 AM
Unknown Object (File)
Sat, Mar 21, 3:08 AM
Unknown Object (File)
Sat, Mar 14, 9:39 AM
Unknown Object (File)
Mar 4 2026, 2:34 PM
Unknown Object (File)
Feb 23 2026, 10:41 PM
Unknown Object (File)
Feb 22 2026, 2:18 PM
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