svn commit: r302907 - head/usr.bin/netstat

Michael Tuexen tuexen at FreeBSD.org
Fri Jul 15 17:40:36 UTC 2016


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) ?


More information about the svn-src-head mailing list