Page MenuHomeFreeBSD

netstat: reduce use of historical Internet classes
ClosedPublic

Authored by karels on Oct 28 2021, 4:53 PM.
Tags
None
Referenced Files
F168828172: D32714.id.diff
Sun, Aug 30, 8:32 AM
F168746600: D32714.diff
Sat, Aug 29, 10:51 PM
Unknown Object (File)
Thu, Aug 27, 5:04 PM
Unknown Object (File)
Sat, Aug 22, 12:20 PM
Unknown Object (File)
Mon, Aug 10, 9:16 AM
Unknown Object (File)
Fri, Aug 7, 7:54 PM
Unknown Object (File)
Fri, Aug 7, 12:47 PM
Unknown Object (File)
Thu, Aug 6, 2:31 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable