Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2016 11:42:08 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r304522 - releng/11.0/usr.bin/netstat
Message-ID:  <201608201142.u7KBg8Q0027463@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sat Aug 20 11:42:08 2016
New Revision: 304522
URL: https://svnweb.freebsd.org/changeset/base/304522

Log:
  MFC r304519:
  * Use names for SCTP and UDPLite when reporting the input histogram.
  * Fix the output for scope statistics.
  
  Approved by: re (kib)

Modified:
  releng/11.0/usr.bin/netstat/inet6.c
Directory Properties:
  releng/11.0/   (props changed)

Modified: releng/11.0/usr.bin/netstat/inet6.c
==============================================================================
--- releng/11.0/usr.bin/netstat/inet6.c	Sat Aug 20 09:13:14 2016	(r304521)
+++ releng/11.0/usr.bin/netstat/inet6.c	Sat Aug 20 11:42:08 2016	(r304522)
@@ -207,11 +207,11 @@ static	const char *ip6nh[] = {
 	"#129",
 	"#130",
 	"#131",
-	"#132",
+	"SCTP",
 	"#133",
 	"#134",
 	"#135",
-	"#136",
+	"UDPLite",
 	"#137",
 	"#138",
 	"#139",
@@ -488,8 +488,8 @@ ip6_stats(u_long off, const char *name, 
 			  "{N:/global%s}\n");\
 			break;\
 		default:\
-			xo_emit("\t\t{qke:name/%x}{:count/%ju} " \
-				"addresses scope=%x\n",\
+			xo_emit("\t\t{qke:name/%#x}{:count/%ju} " \
+				"{N:/addresses scope=%#x}\n",\
 				i, (uintmax_t)ip6stat.s, i);	   \
 		}\
 	} while (0);



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