Subject: bin/17613: route add -net misinterprets the network address if abreviated
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@microware.com>
List: netbsd-bugs
Date: 07/16/2002 11:43:17
>Number: 17613
>Category: bin
>Synopsis: route add -net misinterprets the network address if abreviated
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 16 11:44:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Chris Severtson
>Release: 1.5.1
>Organization:
RadiSys
>Environment:
>Description:
In the following command the value 224 is interpreted as 0.224.0.0: "route add -net 224 127.0.0.1"
An example is provided in the "How to repeat the problem" section.
>How-To-Repeat:
float_tahi: route show
Routing tables
Internet:
Destination Gateway Flags
default 192.168.3.225 UG
127.0.0.0 127.0.0.1 UG
localhost 127.0.0.1 UH
192.168.3.0 192.168.3.103 U
float.dm1.radisy 127.0.0.1 UH
Internet6:
Destination Gateway Flags
default localhost UG
default localhost UG
default fe80::2a0:24ff:fe78:2dc2%enet0 UG
localhost localhost UH
::127.0.0.0 localhost UG
::224.0.0.0 localhost UG
::255.0.0.0 localhost UG
::ffff:0.0.0.0 localhost UG
2002:: localhost UG
2002:7f00:: localhost UG
2002:e000:: localhost UG
2002:ff00:: localhost UG
fe80:: localhost UG
fe80::%lo0 fe80::1%lo0 U
fe80::%enet0 link#2 U
fe80::2a0:24ff:fe78:2dc2%enet0 0:a0:24:78:2d:c2 UH
fec0:: link#2 U
fec0:: localhost UG
fec0:: link#2 U
float localhost UH
ff01:: localhost U
ff02::%lo0 fe80::1%lo0 U
ff02::%enet0 link#2 U
float_tahi:
float_tahi:
float_tahi: route add -net 224 127.0.0.1
add net 224: gateway 127.0.0.1
float_tahi:
float_tahi: route show
Routing tables
Internet:
Destination Gateway Flags
default 192.168.3.225 UG
0.224.0.0 127.0.0.1 UG
127.0.0.0 127.0.0.1 UG
localhost 127.0.0.1 UH
192.168.3.0 192.168.3.103 U
float.dm1.radisy 127.0.0.1 UH
Internet6:
Destination Gateway Flags
default localhost UG
default localhost UG
default fe80::2a0:24ff:fe78:2dc2%enet0 UG
localhost localhost UH
::127.0.0.0 localhost UG
::224.0.0.0 localhost UG
::255.0.0.0 localhost UG
::ffff:0.0.0.0 localhost UG
2002:: localhost UG
2002:7f00:: localhost UG
2002:e000:: localhost UG
2002:ff00:: localhost UG
fe80:: localhost UG
fe80::%lo0 fe80::1%lo0 U
fe80::%enet0 link#2 U
fe80::2a0:24ff:fe78:2dc2%enet0 0:a0:24:78:2d:c2 UH
fec0:: link#2 U
fec0:: localhost UG
fec0:: link#2 U
float localhost UH
ff01:: localhost U
ff02::%lo0 fe80::1%lo0 U
ff02::%enet0 link#2 U
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: