NetBSD Problem Report #998
From gnats Wed Apr 26 22:09:25 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id WAA25446 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 26 Apr 1995 22:09:24 -0700
Message-Id: <199504270509.BAA03054@lola-granola.MIT.EDU>
Date: Thu, 27 Apr 1995 01:09:54 -0400
From: jhawk@mit.edu (John Hawkinson)
Reply-To: jhawk@mit.edu (John Hawkinson)
To: gnats-bugs@NetBSD.ORG
Subject: route -q makes noise
X-Send-Pr-Version: 3.2
>Number: 998
>Category: bin
>Synopsis: route -q makes noise
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 26 22:20:05 +0000 1995
>Closed-Date: Sat Jan 06 23:51:22 +0000 1996
>Last-Modified: Thu Jun 05 06:02:48 +0000 1997
>Originator: John Hawkinson
>Release: 12 April
>Organization:
MIT SIPB
>Environment:
System: NetBSD lola-granola 1.0A NetBSD 1.0A (ATHENA-AHA) #7: Wed Apr 26 02:01:02 GMT 1995 ghudson@limekiller:/afs/sipb.mit.edu/project/netbsd/dev/current-source/src/sys/arch/i386/compile/ATHENA-AHA i386
>Description:
route -q does not ``suppress all output'' like route(8)
claims it should.
>How-To-Repeat:
./route -q delete 18.70.0.1
delete host 18.70.0.1
>Fix:
diff -c -r1.1 route.c
*** route.c 1995/04/27 05:04:22 1.1
--- route.c 1995/04/27 05:05:19
***************
*** 678,693 ****
if (*cmd == 'g')
exit(0);
oerrno = errno;
! (void) printf("%s %s %s", cmd, ishost? "host" : "net", dest);
! if (*gateway) {
! (void) printf(": gateway %s", gateway);
! if (attempts > 1 && ret == 0 && af == AF_INET)
! (void) printf(" (%s)",
! inet_ntoa(((struct sockaddr_in *)&route.rt_gateway)->sin_addr));
}
! if (ret == 0)
! (void) printf("\n");
! else {
switch (oerrno) {
case ESRCH:
err = "not in table";
--- 678,695 ----
if (*cmd == 'g')
exit(0);
oerrno = errno;
! if ((!qflag) && (ret==0)) {
! (void) printf("%s %s %s", cmd, ishost? "host" : "net", dest);
! if (*gateway) {
! (void) printf(": gateway %s", gateway);
! if (attempts > 1 && ret == 0 && af == AF_INET)
! (void) printf(" (%s)",
! inet_ntoa(((struct sockaddr_in *)&route.rt_gateway)->sin_addr));
! }
! if (ret == 0)
! (void) printf("\n");
}
! if (ret != 0) {
switch (oerrno) {
case ESRCH:
err = "not in table";
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: pk
State-Changed-When: Sat Jan 6 18:51:22 EST 1996
State-Changed-Why:
Fixed in route.c rev. 1.15
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.