On Tue, Jun 30, 2020 at 09:00:30AM +0900, YASUOKA Masahiko wrote: > inet_makenetandmask() had required another treatment. > > Also -prefixlen 0 for -inet has a bug > > % doas ./obj/route -T100 add -inet 0.0.0.0 -prefixlen 0 127.0.0.1 > add net 0.0.0.0: gateway 127.0.0.1 > % netstat -nrf inet -T 100 > Routing tables > > Internet: > Destination Gateway Flags Refs Use Mtu Prio Iface > 0.0.0.0/32 127.0.0.1 UGS 0 0 32768 8 lo100 > > /0 becomes /32. The diff following also fixes the problem. Yes, this looks correct to me; regress is also happy (again).
OK kn