diff options
author | maxim <maxim@FreeBSD.org> | 2010-04-21 05:39:51 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2010-04-21 05:39:51 +0000 |
commit | c8fd907eca78c94995b989849b131d8627cb8401 (patch) | |
tree | 426ca8e4dfa85c664b77e4656aa951eee139dd47 /usr.bin | |
parent | 8c76fc5afe55b8f9d7e494362d08b3e45f669f1f (diff) | |
download | FreeBSD-src-c8fd907eca78c94995b989849b131d8627cb8401.zip FreeBSD-src-c8fd907eca78c94995b989849b131d8627cb8401.tar.gz |
MFC r205874: make sockstat -6 output more readable for long ipv6
addresses.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sockstat/sockstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index 1b2f141..e66dc41 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -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); |