bin/145194: Changed output of sockstat for AF_INET6

Maxim Konovalov maxim.konovalov at gmail.com
Tue Mar 30 09:40:10 UTC 2010


The following reply was made to PR bin/145194; it has been noted by GNATS.

From: Maxim Konovalov <maxim.konovalov at gmail.com>
To: Fedor Dikarev <fe at rambler-co.ru>
Cc: bug-followup at freebsd.org
Subject: Re: bin/145194: Changed output of sockstat for AF_INET6
Date: Tue, 30 Mar 2010 13:33:48 +0400 (MSD)

 This one looks more correct, doesn't it?
 
 Index: sockstat.c
 ===================================================================
 --- sockstat.c	(revision 205577)
 +++ sockstat.c	(working copy)
 @@ -621,6 +621,8 @@
  		case AF_INET:
  		case AF_INET6:
  			pos += printaddr(s->family, &s->laddr);
 +			if ((AF_INET6 == s->family) && (pos >= 58))
 +				pos += xprintf(" ");
  			while (pos < 58)
  				pos += xprintf(" ");
  			pos += printaddr(s->family, &s->faddr);
 
 %%%
 
 -- 
 Maxim Konovalov


More information about the freebsd-bugs mailing list