From nobody@FreeBSD.org  Fri Jun  2 22:03:47 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E7F5B16A425
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Jun 2006 22:03:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9DCEA43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Jun 2006 22:03:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k52M3l6U065194
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 2 Jun 2006 22:03:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k52M3lOj065193;
	Fri, 2 Jun 2006 22:03:47 GMT
	(envelope-from nobody)
Message-Id: <200606022203.k52M3lOj065193@www.freebsd.org>
Date: Fri, 2 Jun 2006 22:03:47 GMT
From: Patrick Hess <patrickhess@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ethers(5): "ethernet-adress" and "fully-qualified-host-name" in wrong order
X-Send-Pr-Version: www-2.3

>Number:         98406
>Category:       docs
>Synopsis:       ethers(5): "ethernet-adress" and "fully-qualified-host-name" in wrong order
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 02 22:10:19 GMT 2006
>Closed-Date:    Thu Jun 15 10:48:54 GMT 2006
>Last-Modified:  Thu Jun 15 10:48:54 GMT 2006
>Originator:     Patrick Hess
>Release:        
>Organization:
>Environment:
>Description:
ethers(5) states:

    The ethers database contains information regarding known 48-bit ethernet
    addresses of hosts on an Internetwork.  The data is stored in a file
    called /etc/ethers in the following format:

           ethernet-address fully-qualified-host-name

Should be:

           fully-qualified-host-name ethernet-address
>How-To-Repeat:
# man 5 ethers
>Fix:
See above.
>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: Patrick Hess <patrickhess@gmx.net>
Cc: bug-follwoup@freebsd.org
Subject: Re: docs/98406: ethers(5): "ethernet-adress" and "fully-qualified-host-name"
 in wrong order
Date: Mon, 12 Jun 2006 00:56:55 +0400 (MSD)

 Hi Patrick,
 
 [...]
 > >Description:
 > ethers(5) states:
 >
 >     The ethers database contains information regarding known 48-bit
 >     ethernet addresses of hosts on an Internetwork.  The data is
 >     stored in a file called /etc/ethers in the following format:
 >
 >            ethernet-address fully-qualified-host-name
 >
 > Should be:
 >
 >            fully-qualified-host-name ethernet-address
 
 What makes you think so?
 
 src/lib/libc/net/ether_addr.c::ether_line():
 
 %        i = sscanf(l, "%x:%x:%x:%x:%x:%x %s", &o[0], &o[1], &o[2],
 %                                              &o[3], &o[4], &o[5],
 %                                              hostname);
 
 ether_line(3) expects the fields in order described in the man page.
 
 I won't be surprised if there is a program outside the base system
 which reads /etc/ethers in opposite order but that won't be FreeBSD
 problem.
 
 -- 
 Maxim Konovalov
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Thu Jun 15 10:47:58 UTC 2006 
State-Changed-Why:  
The PR is incorrect. 
Thanks to the submitter for taking the time to submit the report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98406 
>Unformatted:
