Fix a bug in route(8)
dillon at apollo.backplane.com
Sun Sep 9 16:25:21 PDT 2007
:The attached patch allows "route add 128/8 <gateway>" to work
:correctly. While here, rectify the way netmasks are deduced from the
:Noticed-by: Tom Judge <tom at tomjudge.com>
:Reported-on: freebsd-net mailing list
Works here. I noticed something while testing it... netstat -rn
(display routes) is not displaying CIDR blocks properly. Look:
Destination Gateway Flags Refs Use Netif Expire
127.0.0.1 127.0.0.1 UH 0 183 lo0
128.0/8 18.104.22.168 UGSc 0 0 nfe0
That should read 128/8, not 128.0/8. It's mixing the core classes
with the CIDR specification.
Would you like to have a go at fixing that, too?
If nobody reports any bugs I'll commit your route patch on Monday.
More information about the Submit