svn commit: r206983 - stable/8/usr.bin/sockstat
Maxim Konovalov
maxim at FreeBSD.org
Wed Apr 21 05:39:52 UTC 2010
Author: maxim
Date: Wed Apr 21 05:39:51 2010
New Revision: 206983
URL: http://svn.freebsd.org/changeset/base/206983
Log:
MFC r205874: make sockstat -6 output more readable for long ipv6
addresses.
Modified:
stable/8/usr.bin/sockstat/sockstat.c
Directory Properties:
stable/8/usr.bin/sockstat/ (props changed)
Modified: stable/8/usr.bin/sockstat/sockstat.c
==============================================================================
--- stable/8/usr.bin/sockstat/sockstat.c Wed Apr 21 05:38:16 2010 (r206982)
+++ stable/8/usr.bin/sockstat/sockstat.c Wed Apr 21 05:39:51 2010 (r206983)
@@ -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-stable-8
mailing list