Date: Wed, 7 Mar 2001 13:50:02 -0800 (PST) From: Chris Dillon <cdillon@wolves.k12.mo.us> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/25584: arp.c - better printed ether address Message-ID: <200103072150.f27Lo2b55623@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/25584; it has been noted by GNATS.
From: Chris Dillon <cdillon@wolves.k12.mo.us>
To: <davidx@viasoft.com.cn>
Cc: <freebsd-gnats-submit@FreeBSD.ORG>
Subject: Re: bin/25584: arp.c - better printed ether address
Date: Wed, 7 Mar 2001 15:48:35 -0600 (CST)
On Wed, 7 Mar 2001 davidx@viasoft.com.cn wrote:
>
> >Number: 25584
> >Category: bin
> >Synopsis: arp.c - better printed ether address
> >Confidential: no
> >Severity: non-critical
> >Priority: low
> >Responsible: freebsd-bugs
> >State: open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class: sw-bug
> >Submitter-Id: current-users
> >Arrival-Date: Wed Mar 07 00:30:03 PST 2001
> >Closed-Date:
> >Last-Modified:
> >Originator: David Xu
> >Release: FreeBSD 4.3-BETA
> >Organization:
> Viasoft
> >Environment:
> FreeBSD davidbsd.viasoft.com.cn 4.3-BETA FreeBSD 4.3-BETA #0: Wed Mar 7 15:30:1
> 1 CST 2001 xyf@davidbsd.viasoft.com.cn:/usr/obj/usr/src/sys/xu i386
> >Description:
> the ether address printed by /usr/sbin/arp is not so fine,
> some bytes is printed in two bytes while others not.
>
>
> >How-To-Repeat:
> stock version prints:
> davidbsd# arp -n -a
> ? (192.168.1.98) at 0:e0:4c:6b:a6:9 [ethernet]
> ? (192.168.1.109) at 0:e0:4c:3f:49:eb [ethernet]
> ? (192.168.1.254) at 0:b0:c2:89:a4:6e [ethernet]
> ? (192.168.1.255) at ff:ff:ff:ff:ff:ff permanent [ethernet]
>
> better vesion prints
> davidbsd# arp -n -a
> ? (192.168.1.98) at 00:e0:4c:6b:a6:09 [ethernet]
> ? (192.168.1.109) at 00:e0:4c:3f:49:eb [ethernet]
> ? (192.168.1.254) at 00:b0:c2:89:a4:6e [ethernet]
> ? (192.168.1.255) at ff:ff:ff:ff:ff:ff permanent [ethernet]
This will probably turn into a bikeshed argument, but....
I would have to heartily agree with you that this is the correct way
to do things. While it _might_ break something that parses arp(8)
output, always using two digits is how I have seen it done everywhere
else. You should be able to remove all of the colons and always have
a correct MAC address (12 digits), which is not the case currently.
-- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net
FreeBSD: The fastest and most stable server OS on the planet.
For IA32 and Alpha architectures. IA64, PPC, and ARM under development.
http://www.freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103072150.f27Lo2b55623>
