MFC r205874: make sockstat -6 output more readable for long ipv6
addresses.
This commit is contained in:
parent
9e0142f045
commit
6cf6ace6cd
@ -621,6 +621,8 @@ display(void)
|
||||
case AF_INET:
|
||||
case AF_INET6:
|
||||
pos += printaddr(s->family, &s->laddr);
|
||||
if (s->family == AF_INET6 && pos >= 58)
|
||||
pos += xprintf(" ");
|
||||
while (pos < 58)
|
||||
pos += xprintf(" ");
|
||||
pos += printaddr(s->family, &s->faddr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user