Subject: bin/9849: "route show" does not honor netmasks
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 04/10/2000 00:38:10
>Number: 9849
>Category: bin
>Synopsis: "route show" does not present netmasks
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 10 00:39:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Jun-ichiro itojun Hagino
>Release: 1.4.2 and current
>Organization:
itojun.org
>Environment:
System: NetBSD lychee.itojun.org 1.4.2 NetBSD 1.4.2 (LYCHEE.v6) #824: Fri Apr 7 23:02:48 JST 2000 itojun@lychee.itojun.org:/export/home/itojun/k/kame/netbsd/sys/arch/i386/compile/LYCHEE.v6 i386
>Description:
"route -n show" does not honor netmasks.
for example, you can see the following entries by route -n show:
>How-To-Repeat:
% route -n show
>Fix:
not known. we can't just modify route -n show to present "/104",
since there can be scripts relying upon the traditional output format.
>Release-Note:
>Audit-Trail:
>Unformatted:
>>Internet6:
>>Destination Gateway Flags
>>default ::1 UG
>>default ::1 UG
>>default fe80::260:97ff:fe07:69ea%ne2 UG
>>::1 ::1 UH
With netstat -rn, we see that they actually are ::/104, ::/96 and
real default (::/0).
>>Routing tables
>>
>>Internet6:
>>Destination Gateway Flags Refs Use Mtu Interface
>>::/104 ::1 UGRS 0 0 32972 lo0 =>
>>::/96 ::1 UGRS 0 0 32972 lo0 =>
>>default fe80::260:97ff:fe07:69ea%ne2 UG 2 16169 1500 ne2
>>::1 ::1 UH 12 0 32972 lo0