summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorpb <pb@FreeBSD.org>1998-05-19 16:00:55 +0000
committerpb <pb@FreeBSD.org>1998-05-19 16:00:55 +0000
commit03f5c9148465bdafdf9987a02bd1303a47b83ee7 (patch)
tree7802902ad59ba400dbbc7e6baec16003158ebb47 /usr.bin/netstat
parentd5dbf35cd880f2ae731d06a1357d578af5c8be5e (diff)
downloadFreeBSD-src-03f5c9148465bdafdf9987a02bd1303a47b83ee7.zip
FreeBSD-src-03f5c9148465bdafdf9987a02bd1303a47b83ee7.tar.gz
Make "netstat -s" display stats on fast-forwarded packets.
Obtained from: NetBSD code
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index f6ff5e5..0a8eff6 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)inet.c 8.5 (Berkeley) 5/24/95";
*/
static const char rcsid[] =
- "$Id: inet.c,v 1.26 1997/08/25 16:57:05 wollman Exp $";
+ "$Id: inet.c,v 1.27 1998/05/15 20:19:15 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -382,7 +382,10 @@ ip_stats(off, name)
p(ips_reassembled, "\t%lu packet%s reassembled ok\n");
p(ips_delivered, "\t%lu packet%s for this host\n");
p(ips_noproto, "\t%lu packet%s for unknown/unsupported protocol\n");
- p(ips_forward, "\t%lu packet%s forwarded\n");
+ p(ips_forward, "\t%lu packet%s forwarded");
+ p(ips_fastforward, " (%lu packet%s fast forwarded)");
+ if (ipstat.ips_forward || sflag <= 1)
+ putchar('\n');
p(ips_cantforward, "\t%lu packet%s not forwardable\n");
p(ips_notmember,
"\t%lu packet%s received for unknown multicast group\n");
OpenPOWER on IntegriCloud