Subject: bin/344: netstat mis-formats mac addresses with -i option
To: None <gnats-admin>
From: Peter Galbavy <peter@alice.wonderland.org>
List: netbsd-bugs
Date: 07/18/1994 08:35:05
>Number: 344
>Category: bin
>Synopsis: netstat does not put spaces after <Link> to align mac address
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 18 08:35:03 1994
>Originator: Peter Galbavy
>Organization:
Wonderland
>Release: 1.0-ALPHA
>Environment:
NetBSD/sparc
System: NetBSD alice.wonderland.org 1.0-ALPHA NetBSD 1.0-ALPHA (DUMPTY) #0: Sun Jul 10 17:21:04 BST 1994 peter@alice.wonderland.org:/usr/src/sys/arch/sparc/compile/DUMPTY sparc
>Description:
netstat -ai gives output like:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
le0 1500 <Link>8.0.20.11.2b.ea 12620 0 13998 0 0
...
and I think it should read like:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
le0 1500 <Link> 8.0.20.11.2b.ea 12620 0 13998 0 0
...
>How-To-Repeat:
try netstat -ai on a system with an ethernet
>Fix:
Change line 183 of usr.bin/netstat/if.c from:
m = printf("<Link>");
to:
m = printf("<Link> ");
and it's OK. There is probably a more elegant fix.
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------