Truncate link addresses like it is done for any

other address type.

MFC after: 4 weeks
This commit is contained in:
tuexen 2011-07-12 11:47:08 +00:00
parent 2131d5b8a4
commit ab8d20947c

View File

@ -394,7 +394,7 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *))
n = cp - sa->sa_data + 1;
cp = sa->sa_data;
hexprint:
while (--n >= 0)
while ((--n >= 0) && (m < 30))
m += printf("%02x%c", *cp++ & 0xff,
n > 0 ? ':' : ' ');
m = 32 - m;