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:
Jordan K. Hubbard 2000-01-03 17:48:36 +00:00
parent 243821529c
commit e54ca68cb8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55346

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