NetBSD Problem Report #344

From gnats  Mon Jul 18 08:26:49 1994
Received: from alice.wonderland.org (alice.wonderland.org [193.195.141.1]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id IAA03524 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 18 Jul 1994 08:26:45 -0700
Message-Id: <199407181515.QAA01397@alice.wonderland.org>
Date: Mon, 18 Jul 1994 16:15:36 +0100
From: Peter Galbavy <peter@alice.wonderland.org>
Reply-To: peter@alice.wonderland.org
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: netstat mis-formats mac addresses with -i option
X-Send-Pr-Version: 3.2

>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
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 18 08:35:03 +0000 1994
>Closed-Date:    Sat Sep 17 00:14:28 +0000 1994
>Last-Modified:  
>Originator:     Peter Galbavy
>Release:        1.0-ALPHA
>Organization:
Wonderland
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Fri Sep 16 17:14:28 PDT 1994 
State-Changed-Why:  
Fixed. 
>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.