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)
Nov 11 2025, 12:30 AM
Unknown Object (File)
Nov 5 2025, 11:50 PM
Unknown Object (File)
Oct 31 2025, 6:15 AM
Unknown Object (File)
Oct 30 2025, 4:29 PM
Unknown Object (File)
Oct 25 2025, 2:54 PM
Unknown Object (File)
Oct 23 2025, 2:16 AM
Unknown Object (File)
Jul 26 2025, 1:35 PM
Unknown Object (File)
Jul 6 2025, 10:28 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