Print mac addresses in standard byte:byte format rather than
byte.byte. This makes it consistent with our other utilities like arp(8) and ifconfig(8). Submitted by: Paul Vixie <paul@vix.com>
This commit is contained in:
parent
f08b0b7a0b
commit
dcce198764
@ -321,7 +321,7 @@ intpr(interval, ifnetaddr, pfunc)
|
||||
hexprint:
|
||||
while (--n >= 0)
|
||||
m += printf("%02x%c", *cp++ & 0xff,
|
||||
n > 0 ? '.' : ' ');
|
||||
n > 0 ? ':' : ' ');
|
||||
m = 30 - m;
|
||||
while (m-- > 0)
|
||||
putchar(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user