Truncate link addresses like it is done for any
other address type. MFC after: 4 weeks
This commit is contained in:
parent
20ddb07906
commit
62372898d6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user