Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2016 17:40:34 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302907 - head/usr.bin/netstat
Message-ID:  <201607151740.u6FHeZmM047729@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Fri Jul 15 17:40:34 2016
New Revision: 302907
URL: https://svnweb.freebsd.org/changeset/base/302907

Log:
  When calling netstat -Laptcp the local address values are not aligned
  with the corresponding entry in the table header.
  r295136 increased the value width from 14 to 32 without the corresponding
  change to the table header. This commit adds the change to the table
  header width.
  
  MFC after:	3 days

Modified:
  head/usr.bin/netstat/inet.c

Modified: head/usr.bin/netstat/inet.c
==============================================================================
--- head/usr.bin/netstat/inet.c	Fri Jul 15 17:09:30 2016	(r302906)
+++ head/usr.bin/netstat/inet.c	Fri Jul 15 17:40:34 2016	(r302907)
@@ -418,10 +418,10 @@ protopr(u_long off, const char *name, in
 				    "Tcpcb");
 			if (Lflag)
 				xo_emit((Aflag && !Wflag) ?
-				    "{T:/%-5.5s} {T:/%-14.14s} {T:/%-18.18s}" :
+				    "{T:/%-5.5s} {T:/%-32.32s} {T:/%-18.18s}" :
 				    ((!Wflag || af1 == AF_INET) ?
-				    "{T:/%-5.5s} {T:/%-14.14s} {T:/%-22.22s}" :
-				    "{T:/%-5.5s} {T:/%-14.14s} {T:/%-45.45s}"),
+				    "{T:/%-5.5s} {T:/%-32.32s} {T:/%-22.22s}" :
+				    "{T:/%-5.5s} {T:/%-32.32s} {T:/%-45.45s}"),
 				    "Proto", "Listen", "Local Address");
 			else if (Tflag)
 				xo_emit((Aflag && !Wflag) ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607151740.u6FHeZmM047729>