HomeFreeBSD

netstat: reduce use of historical Internet classes

Description

netstat: reduce use of historical Internet classes

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.

MFC after: 1 month
Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D32714

Details

Provenance
karelsAuthored on Oct 27 2021, 3:39 AM
Reviewer
tuexen
Differential Revision
D32714: netstat: reduce use of historical Internet classes
Parents
rG92aebdeaff57: mountd: deprecate exports to a network without mask
Branches
Unknown
Tags
Unknown