NetBSD Problem Report #7955
Received: (qmail 28382 invoked from network); 10 Jul 1999 13:55:19 -0000
Message-Id: <199907090113.DAA02020@miyu.feyrer.net>
Date: Fri, 9 Jul 1999 03:13:30 +0200 (MEST)
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
Reply-To: hubert.feyrer@rz.uni-regensburg.de
To: gnats-bugs@gnats.netbsd.org
Subject: "route show" truncates output
X-Send-Pr-Version: 3.95
>Number: 7955
>Category: bin
>Synopsis: "route show" truncates output
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 10 07:05:01 +0000 1999
>Closed-Date: Sat Jul 17 13:11:19 +0000 1999
>Last-Modified: Sat Jul 17 13:11:42 +0000 1999
>Originator: Hubert Feyrer
>Release: 19990708
>Organization:
NetBSD - Better for your uptime than Viagra
>Environment:
Systems:
NetBSD nc 1.4D NetBSD 1.4D (NC.v6) #0: Sat Jul 3 21:38:12 MEST 1999 feyrer@nc:/tmp_mnt/miyu/data/cvs/src/sys/arch/arm32/compile/NC.v6 arm32
NetBSD rfhs8012 1.4D NetBSD 1.4D (RFHS8012.v6) #0: Sat Jul 3 03:33:10 MEST 1999 feyrer@rfhs8012:/tmp_mnt/miyu/data/cvs/src/sys/arch/sparc/compile/RFHS8012.v6 sparc
>Description:
"route show" truncate ipv6 addresses, while "netstat -ran" prints them ok:
nc% netstat -ran | grep ^ff
ff01::/32 ::1 U 0 0 32976 lo0
ff02:1::/32 link#1 UC 0 0 1500 cs0
ff02:2::/32 fe80:2::1 UC 0 0 32976 lo0
ff02:4::/32 fe80:4::800:2bff:fe81:63ac UC 0 0 1280 gif0
ff02:5::/32 fe80:5::800:2bff:fe81:63ac UC 0 0 1280 gif1
ff02:6::/32 fe80:6::800:2bff:fe81:63ac UC 0 0 1280 gif2
ff02:7::/32 fe80:7::800:2bff:fe81:63ac UC 0 0 1280 gif3
ff02:8::/32 fe80:8::800:2bff:fe81:63ac UC 0 0 1500 faith0
nc% route show | grep ^ff
ff01:: ::1 U
ff02:1:: link#1 U
ff02:2:: fe80:2::1 U
ff02:4:: fe80:4::800:2bff:f U
ff02:5:: fe80:5::800:2bff:f U
ff02:6:: fe80:6::800:2bff:f U
ff02:7:: fe80:7::800:2bff:f U
ff02:8:: fe80:8::800:2bff:f U
>How-To-Repeat:
See above.
>Fix:
no idea.
>Release-Note:
>Audit-Trail:
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: hubert.feyrer@rz.uni-regensburg.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/7955: "route show" truncates output
Date: Sat, 10 Jul 1999 16:20:03 +0200 (MET DST)
On Fri, 9 Jul 1999, Hubert Feyrer wrote:
> "route show" truncate ipv6 addresses, while "netstat -ran" prints
> them ok:
FYI, "netstat -i" also truncates them.
- Hubert
--
NetBSD - Better for your uptime than Viagra
From: itojun@iijlab.net
To: hubert.feyrer@rz.uni-regensburg.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/7955: "route show" truncates output
Date: Tue, 13 Jul 1999 05:44:37 +0900
>>Synopsis: "route show" truncates output
>>Description:
> "route show" truncate ipv6 addresses, while "netstat -ran" prints them ok:
>>Fix:
> no idea.
The code (sbin/netstat/show.c) intend to truncate destination address
to 16 columns on non "-n" output, and does not truncate at all on "-n"
output. 16 is INET_ADDRSTRLEN (numeric IPv4 address fits into 16
columns).
Possible fixes are:
- use INET6_ADDRSTRLEN for destination address column, on AF_INET6
- do not truncate to 16 columns on printing numeric IPv6 addresses
(but how can you recognize numeric addresses easily?)
- some other ways
and this is the matter of which you prefer.
itojun
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: itojun@iijlab.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/7955: "route show" truncates output
Date: Tue, 13 Jul 1999 02:39:06 +0200 (MET DST)
On Tue, 13 Jul 1999 itojun@iijlab.net wrote:
> Possible fixes are:
> - use INET6_ADDRSTRLEN for destination address column, on AF_INET6
> - do not truncate to 16 columns on printing numeric IPv6 addresses
> (but how can you recognize numeric addresses easily?)
> - some other ways
> and this is the matter of which you prefer.
regarding "route show", I'd prefer if it printed the full routed (just as
instructed :-), i.e. #1 or the solutions you list above.
BTW, the truncation of IPv6 numbers on "netstat -i" will unfortunately not
go away with "netstat -in". :(
- Hubert
--
NetBSD - Better for your uptime than Viagra
State-Changed-From-To: open->closed
State-Changed-By: itojun
State-Changed-When: Sat Jul 17 06:11:19 PDT 1999
State-Changed-Why:
fix commited. (behavior debetable)
>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.