NDP Ethernet address display

Boris Kochergin spawk at acm.poly.edu
Sat Jan 8 02:16:36 UTC 2011


On 01/07/11 21:09, Doug Barton wrote:
> On 01/07/2011 18:01, Boris Kochergin wrote:
>
>>>> - snprintf(hbuf, sizeof(hbuf), "%x:%x:%x:%x:%x:%x",
>
> There are numerous examples of this string in the tree. Some of them 
> seem like they may be correct, but many of them are obviously printing 
> out mac addresses and should be converted, one way or another:
>
> http://dougbarton.us/mac-padding.txt
>
> In any case, thanks to Xin for fixing this one so quickly. :)
>
>
> Doug
>

The sscanf() calls are definitely fine. I made sure to test that bit in 
ndp(8).

Thanks, Xin!

-Boris


More information about the freebsd-net mailing list