This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix ether_ntoa() output format
- From: mokhtar <mbmessaoud at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Sat, 12 Oct 2013 14:34:51 -0700 (PDT)
- Subject: Re: [PATCH] Fix ether_ntoa() output format
- Authentication-results: sourceware.org; auth=none
- References: <op dot vggmcoovgweiyn at localhost dot localdomain> <4C5190C2 dot 7020801 at redhat dot com>
Hi everybody
I checked in about mac address format and I found these articles
MAC address <http://en.wikipedia.org/wiki/MAC_address>
/
The standard (IEEE 802) format for printing MAC-48 addresses in
human-friendly form is six groups of two hexadecimal digits, separated by
hyphens (-) or colons (:), in transmission order (e.g. 01-23-45-67-89-ab
or 01:23:45:67:89:ab ). This form is also commonly used for EUI-64/.
Use of the IEEE assigned Organizationally Unique Identifier with ANSI/IEEE
Std 802-2001 Local and Metropolitan Area Networks
<http://standards.ieee.org/develop/regauth/tut/lanman.pdf>
so the format provided by ether_ntoa is not conform with the standard and
the patch correct this problem.
Ulrich Drepper wrote
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/26/2010 09:49 AM, Nikita Izyumtsev wrote:
>> I have bumped into issue in ether_ntoa() implementation.
>> All leading zeros were suppressed.
>> e.g instead of 00:01:13:25:18:fa
>> 0:1:13:25:18:fa is printed.
>
> And the problem is? This is perfectly valid for all I know. You cannot
> just claim there is a problem without backing this up.
>
> - --
> â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
>
> iEYEARECAAYFAkxRkMIACgkQ2ijCOnn/RHTuWgCeLnqHZBzSf5Wq7Zs/jsMq80we
> xZ4An23c6CBsnEtvmG2LAE20RydyVNYT
> =IlM3
> -----END PGP SIGNATURE-----
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/PATCH-Fix-ether-ntoa-output-format-tp10196p247250.html
Sent from the Sourceware - libc-alpha mailing list archive at Nabble.com.