Page MenuHomeFreeBSD

netstat: reduce use of historical Internet classes
ClosedPublic

Authored by karels on Oct 28 2021, 4:53 PM.
Tags
None
Referenced Files
F144472746: D32714.id98251.diff
Sun, Feb 8, 3:16 PM
Unknown Object (File)
Sat, Feb 7, 5:33 PM
Unknown Object (File)
Sat, Jan 31, 7:09 AM
Unknown Object (File)
Fri, Jan 30, 10:25 PM
Unknown Object (File)
Thu, Jan 29, 6:51 AM
Unknown Object (File)
Thu, Jan 29, 6:45 AM
Unknown Object (File)
Wed, Jan 28, 6:31 AM
Unknown Object (File)
Wed, Jan 28, 6:15 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