mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
o Make sockstat -6 output more readable for long ipv6
addresses (most of them apart from ::1): put a whitespace between local and remote address:port pairs. PR: bin/145194 Submitted by: Fedor Dikarev MFC after: 2 weeks
This commit is contained in:
parent
3e6b66eecc
commit
09bbda2122
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205874
@ -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…
Reference in New Issue
Block a user