diff options
author | 2001-11-23 17:12:10 +0000 | |
---|---|---|
committer | 2001-11-23 17:12:10 +0000 | |
commit | 2d1f164cac935056a9fe33b0ad9abaedb0487b74 (patch) | |
tree | fa5fe174e2a4202b6638c83538c7a9fcfc8dc789 /usr.bin/systat/vmstat.c | |
parent | Removed an unsed variable (oops) (diff) | |
download | wireguard-openbsd-2d1f164cac935056a9fe33b0ad9abaedb0487b74.tar.xz wireguard-openbsd-2d1f164cac935056a9fe33b0ad9abaedb0487b74.zip |
Be paranoid about non-zero netmasks being associated with INET addresses
of 0.0.0.0.
The OpenBSD PF_ROUTE/NET_RT_DUMP sysctl is sending back routes with
RTAX_NETMASK set, but the corresponding sockaddr being 4 zero bytes
(with an address family of zero). ppp was getting confused by this
and ending up interpreting it as a 0.0.0.0/32 routing table
destination and subsequently failing to do anything with the route.
Specifically, after this fix, ppp under OpenBSD can successfully
change and delete the default route again !
Diffstat (limited to 'usr.bin/systat/vmstat.c')
0 files changed, 0 insertions, 0 deletions