Changed output formatting to 0 pad hex bytes if necessary. This makes
the output consistent with traditional representations of ethernet addresses. I still don't like the spacing in netstat -i, however.
This commit is contained in:
parent
f25724c99e
commit
d2ff996240
@ -189,7 +189,7 @@ intpr(interval, ifnetaddr)
|
||||
cp = sa->sa_data;
|
||||
hexprint:
|
||||
while (--n >= 0)
|
||||
m += printf("%x%c", *cp++ & 0xff,
|
||||
m += printf("%02x%c", *cp++ & 0xff,
|
||||
n > 0 ? '.' : ' ');
|
||||
m = 28 - m;
|
||||
while (m-- > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user