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.

(cherry picked from commit bd27c71c4573e14916ccd27e545a69606f0a8192)

Details

Provenance
karelsAuthored on Oct 27 2021, 3:39 AM
Parents
rGe5d4e532a0dc: mountd: deprecate exports to a network without mask
Branches
Unknown
Tags
Unknown