Subject: misc/885: netstat -i doesn't line up columns correctly
To: None <gnats-admin@NetBSD.ORG>
From: Kenneth Stailey <kstailey@leidecker.gsfc.nasa.gov>
List: netbsd-bugs
Date: 03/20/1995 14:35:04
>Number: 885
>Category: misc
>Synopsis: netstat -i doesn't line up columns correctly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 20 14:35:02 1995
>Originator: Kenneth Stailey
>Organization:
what's that?
>Release: March 18th tarballs<NetBSD-current source date>
>Environment:
System: NetBSD pluto 1.0A NetBSD 1.0A (PLUTO) #19: Sat Mar 18 16:46:13 EST 1995 ken@pluto:/usr/src/sys/arch/i386/compile/PLUTO i386
>Description:
When I type "netstat -i" I get this:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
ep0 1500 <Link> 0.20.af.9c.dc.ec 144 0 289 0 0
ep0 1500 spacenet.co pluto.spacenet. 144 0 289 0 0
lo0 32768 <Link> 162 0 162 0 0
lo0 32768 127 localhost 162 0 162 0 0
sl0* 296 <Link> 0 0 0 0 0
>How-To-Repeat:
"netstat -i" on my system
>Fix:
in /usr/src/usr.bin/netstat apply this diff:
--- if.c.DIST Thu Mar 9 15:53:51 1995
+++ if.c.new Mon Mar 20 08:47:30 1995
@@ -180,7 +180,7 @@
cp = (char *)LLADDR(sdl);
n = sdl->sdl_alen;
}
- m = printf("%-11.11s ", "<Link>");
+ m = printf("%-11.11s", "<Link>");
goto hexprint;
default:
m = printf("(%d)", sa->sa_family);
--RAA01096.795738092/pluto.spacenet.com--
>Audit-Trail:
>Unformatted: