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

George V. Neville-Neil gnn at FreeBSD.org
Mon Nov 22 22:55:43 UTC 2010


Author: gnn
Date: Mon Nov 22 22:55:43 2010
New Revision: 215724
URL: http://svn.freebsd.org/changeset/base/215724

Log:
  Restore the (state) and \n printout when not using -T.
  
  Pointed out by:	brucec@
  MFC after:	3 weeks

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

Modified: head/usr.bin/netstat/inet.c
==============================================================================
--- head/usr.bin/netstat/inet.c	Mon Nov 22 22:41:43 2010	(r215723)
+++ head/usr.bin/netstat/inet.c	Mon Nov 22 22:55:43 2010	(r215724)
@@ -428,13 +428,14 @@ protopr(u_long off, const char *name, in
 				       "2msl", "delack", "rcvtime",
 				       "(state)");
 			}
-			if (!xflag && !Tflag) 
+			if (!xflag && !Tflag) {
 				printf((Aflag && !Wflag) ? 
 				       "%-5.5s %-6.6s %-6.6s  %-18.18s %-18.18s" :
 				       "%-5.5s %-6.6s %-6.6s  %-22.22s %-22.22s",
 				       "Proto", "Recv-Q", "Send-Q",
 				       "Local Address", "Foreign Address");
-
+				printf("(state)\n");
+			}
 			first = 0;
 		}
 		if (Lflag && so->so_qlimit == 0)


More information about the svn-src-head mailing list