HomeFreeBSD

sockstat: change check for wildcard sockets to avoid historical classes

Description

sockstat: change check for wildcard sockets to avoid historical classes

sockstat was checking whether a bound address was "host 0", the lowest
host on a network, using inet_lnaof(). This only works for class A/B/C.
However, it isn't useful to bind such an address unless it is really
the unspecified address INADDR_ANY. Change the check to to use that.

MFC after: 1 month
Reviewd by: tuexen
Differential Revision: https://reviews.freebsd.org/D32715

Details

Provenance
karelsAuthored on Oct 27 2021, 3:12 AM
Differential Revision
D32715: sockstat: change check for wildcard sockets to avoid historical classes
Parents
rGbd27c71c4573: netstat: reduce use of historical Internet classes
Branches
Unknown
Tags
Unknown