This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix ether_ntoa() output format

Hi everybody

I checked in  about mac address format  and I found these articles

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

so the format provided by ether_ntoa is not conform with the standard and
the patch correct this problem.

Ulrich Drepper wrote
> 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 â
> Version: GnuPG v2.0.14 (GNU/Linux)
> iEYEARECAAYFAkxRkMIACgkQ2ijCOnn/RHTuWgCeLnqHZBzSf5Wq7Zs/jsMq80we
> xZ4An23c6CBsnEtvmG2LAE20RydyVNYT
> =IlM3

View this message in context:
Sent from the Sourceware - libc-alpha mailing list archive at

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]