summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-09-02 12:48:45 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-09-02 12:48:45 +0000
commit90ef47811b34d92acdd2081164c0a3717090c055 (patch)
treef2032210bcf001254146f6833b8d0e110b44ca9e /usr.bin/netstat
parent28aead8efb89b8df8aad0b28794903ee91bc180d (diff)
The output of netstat -g was mangled. Fix header line and print
format. OK mpi@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/mroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c
index b9358bea40d..89768242068 100644
--- a/usr.bin/netstat/mroute.c
+++ b/usr.bin/netstat/mroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mroute.c,v 1.25 2015/02/12 23:31:12 claudio Exp $ */
+/* $OpenBSD: mroute.c,v 1.26 2019/09/02 12:48:44 bluhm Exp $ */
/* $NetBSD: mroute.c,v 1.10 1996/05/11 13:51:27 mycroft Exp $ */
/*
@@ -102,7 +102,7 @@ mroutepr(void)
for (vifi = 0; vifi < numvifs; ++vifi, ++v) {
if (!banner_printed) {
printf("\nVirtual Interface Table\n %s%s",
- "Vif Thresh Limit Local-Address ",
+ "Vif Thresh Local-Address ",
"Remote-Address Pkt_in Pkt_out\n");
banner_printed = 1;
}
@@ -137,7 +137,7 @@ mroutepr(void)
fmt_scaled(m->mfc_pkt_cnt, fmtbuf);
printf(" %-15.15s %7s %3u ",
routename4(m->mfc_mcastgrp.s_addr),
- buf, m->mfc_parent);
+ fmtbuf, m->mfc_parent);
for (vifi = 0; vifi <= maxvif; ++vifi)
if (m->mfc_ttls[vifi])
printf(" %zu/%u", vifi, m->mfc_ttls[vifi]);