From owner-freebsd-bugs Wed Mar 7 13:50: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BF6AF37B718 for ; Wed, 7 Mar 2001 13:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f27Lo2b55623; Wed, 7 Mar 2001 13:50:02 -0800 (PST) (envelope-from gnats) Date: Wed, 7 Mar 2001 13:50:02 -0800 (PST) Message-Id: <200103072150.f27Lo2b55623@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Chris Dillon Subject: Re: bin/25584: arp.c - better printed ether address Reply-To: Chris Dillon Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/25584; it has been noted by GNATS. From: Chris Dillon To: Cc: 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