NetBSD Problem Report #18319

Received: (qmail 24152 invoked by uid 605); 17 Sep 2002 12:13:50 -0000
Message-Id: <200209171218.g8HCInN02113@mofo.grunta.com>
Date: Tue, 17 Sep 2002 22:18:49 +1000 (EST)
From: grant@netbsd.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: grant@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: "route delete" incorrectly reports "host" when deleting a network route
X-Send-Pr-Version: 3.95

>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 12:14:01 +0000 2002
>Closed-Date:    
>Last-Modified:  Thu Jun 12 16:19:01 +0000 2003
>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:

From: itojun@iijlab.net
To: grant@mofo.grunta.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/18319: "route delete" incorrectly reports "host" when deleting a network route 
Date: Wed, 18 Sep 2002 00:37:38 +0900

 >>Synopsis:       "route delete" incorrectly reports "host" when deleting a network route

 	this behavior is not a bug.  "host" means "i'm about to issue a delete
 	request for host route", not that "i have removed a host route".

 itojun
State-Changed-From-To: open->feedback 
State-Changed-By: itojun 
State-Changed-When: Tue Sep 17 16:53:17 PDT 2002 
State-Changed-Why:  
it is a feature.  can i close this PR? 
State-Changed-From-To: feedback->closed 
State-Changed-By: fair 
State-Changed-When: Tue Jun 10 01:42:15 UTC 2003 
State-Changed-Why:  
this would appear to come under the heading of 
"the system did what you asked it to do, why 
are you complaining?" 

Itojun asked for feedback, and has not gotten 
any in many months. 
State-Changed-From-To: closed->open 
State-Changed-By: grant 
State-Changed-When: Thu Jun 12 12:35:24 UTC 2003 
State-Changed-Why:  

From: grant beattie <grant@netbsd.org>
To: fair@netbsd.org
Cc: gnats-admin@netbsd.org
Subject: Re: bin/18319
Date: Thu, 12 Jun 2003 22:38:29 +1000

 On Tue, Jun 10, 2003 at 01:43:12AM -0000, fair@netbsd.org wrote:

 > Synopsis: "route delete" incorrectly reports "host" when deleting a network route
 > 
 > State-Changed-From-To: feedback->closed
 > State-Changed-By: fair
 > State-Changed-When: Tue Jun 10 01:42:15 UTC 2003
 > State-Changed-Why: 
 > this would appear to come under the heading of
 > "the system did what you asked it to do, why
 > are you complaining?"
 > 
 > Itojun asked for feedback, and has not gotten
 > any in many months.

 The output is misleading and confusing ("I asked you to delete a
 network route and you deleted a host route?!?!"). It would be better
 to fix what is printed.

 g.


From: grant beattie <grant@netbsd.org>
To: fair@netbsd.org
Cc: gnats-admin@netbsd.org
Subject: Re: bin/18319
Date: Thu, 12 Jun 2003 22:38:29 +1000

 On Tue, Jun 10, 2003 at 01:43:12AM -0000, fair@netbsd.org wrote:

 > Synopsis: "route delete" incorrectly reports "host" when deleting a network route
 > 
 > State-Changed-From-To: feedback->closed
 > State-Changed-By: fair
 > State-Changed-When: Tue Jun 10 01:42:15 UTC 2003
 > State-Changed-Why: 
 > this would appear to come under the heading of
 > "the system did what you asked it to do, why
 > are you complaining?"
 > 
 > Itojun asked for feedback, and has not gotten
 > any in many months.

 The output is misleading and confusing ("I asked you to delete a
 network route and you deleted a host route?!?!"). It would be better
 to fix what is printed.

 g.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.