Page MenuHomeFreeBSD

netstat: reduce use of historical Internet classes
ClosedPublic

Authored by karels on Oct 28 2021, 4:53 PM.
Tags
None
Referenced Files
F110617887: D32714.id.diff
Thu, Feb 20, 11:39 PM
Unknown Object (File)
Fri, Feb 14, 1:07 AM
Unknown Object (File)
Fri, Feb 7, 5:40 AM
Unknown Object (File)
Sun, Jan 26, 2:22 AM
Unknown Object (File)
Fri, Jan 24, 5:06 PM
Unknown Object (File)
Jan 18 2025, 10:21 PM
Unknown Object (File)
Jan 18 2025, 9:57 PM
Unknown Object (File)
Jan 13 2025, 9:06 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable