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)
Mar 31 2024, 3:31 PM
Unknown Object (File)
Mar 7 2024, 5:32 PM
Unknown Object (File)
Dec 22 2023, 10:17 PM
Unknown Object (File)
Nov 16 2023, 12:56 AM
Unknown Object (File)
Sep 4 2023, 4:19 AM
Unknown Object (File)
Sep 4 2023, 4:15 AM
Unknown Object (File)
Sep 4 2023, 4:13 AM
Unknown Object (File)
Aug 30 2023, 11:57 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