Subject: bin/18319: "route delete" incorrectly reports "host" when deleting a network route
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 09/17/2002 22:18:49
>Number:         18319
>Category:       bin
>Synopsis:       "route delete" incorrectly reports "host" when deleting a network route
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 17 05:14:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        -current, 20020909
>Organization:
>Environment:
System: NetBSD mofo 1.6H NetBSD 1.6H (GENERIC) #0: Mon Sep 9 02:14:47 EST 2002 root@mofo:/raid0/netbsd/current/20020909/i386/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

Deleting a network route without specifying -net returns
"delete host" when it should return "delete net".

The route is correctly removed from the route table.

>How-To-Repeat:
# route add -net 10.44.1.0 -netmask 255.255.255.0 10.44.1.1
add net 10.44.1.0: gateway 10.44.1.1
# route delete -net 10.44.1.0
delete net 10.44.1.0

# route add -net 10.44.1.0 -netmask 255.255.255.0 10.44.1.1
add net 10.44.1.0: gateway 10.44.1.1
# route delete 10.44.1.0
delete host 10.44.1.0

>Fix:
unknown.

>Release-Note:
>Audit-Trail:
>Unformatted: