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)
Jul 26 2025, 1:35 PM
Unknown Object (File)
Jul 6 2025, 10:28 PM
Unknown Object (File)
Jul 6 2025, 8:32 AM
Unknown Object (File)
Jun 30 2025, 3:42 PM
Unknown Object (File)
Jun 24 2025, 9:21 AM
Unknown Object (File)
Jun 23 2025, 3:26 PM
Unknown Object (File)
Jun 23 2025, 2:39 AM
Unknown Object (File)
Jun 22 2025, 4:42 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