svn commit: r205874 - head/usr.bin/sockstat
Maxim Konovalov
maxim at FreeBSD.org
Tue Mar 30 09:58:22 UTC 2010
Author: maxim
Date: Tue Mar 30 09:58:21 2010
New Revision: 205874
URL: http://svn.freebsd.org/changeset/base/205874
Log:
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
Modified:
head/usr.bin/sockstat/sockstat.c
Modified: head/usr.bin/sockstat/sockstat.c
==============================================================================
--- head/usr.bin/sockstat/sockstat.c Tue Mar 30 09:22:33 2010 (r205873)
+++ head/usr.bin/sockstat/sockstat.c Tue Mar 30 09:58:21 2010 (r205874)
@@ -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);
More information about the svn-src-all
mailing list