summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2016-08-20 11:42:08 +0000
committertuexen <tuexen@FreeBSD.org>2016-08-20 11:42:08 +0000
commit75163a1738e395bc0e5cd2015a6ca62f5e5e3b0f (patch)
treecce77319446081bec3218fc309dcd4263bc387e7 /usr.bin
parentcac38bedeb8be609cd66693966b1c083411c6c66 (diff)
downloadFreeBSD-src-75163a1738e395bc0e5cd2015a6ca62f5e5e3b0f.zip
FreeBSD-src-75163a1738e395bc0e5cd2015a6ca62f5e5e3b0f.tar.gz
MFC r304519:
* Use names for SCTP and UDPLite when reporting the input histogram. * Fix the output for scope statistics. Approved by: re (kib)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/inet6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c
index 094d25b..d01f690 100644
--- a/usr.bin/netstat/inet6.c
+++ b/usr.bin/netstat/inet6.c
@@ -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, int af1 __unused, int proto __unused)
"{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);
OpenPOWER on IntegriCloud