Truncate link addresses like it is done for any

other address type.

MFC after: 4 weeks
This commit is contained in:
Michael Tuexen 2011-07-12 11:47:08 +00:00
parent 20ddb07906
commit 62372898d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223947

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;