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:
jkh 2000-01-03 17:48:36 +00:00
parent f08b0b7a0b
commit dcce198764

View File

@ -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(' ');