diff options
author | Pierre Beyssac <pb@FreeBSD.org> | 1998-05-19 16:00:55 +0000 |
---|---|---|
committer | Pierre Beyssac <pb@FreeBSD.org> | 1998-05-19 16:00:55 +0000 |
commit | 958d6f7fc378091ce7c42a7741d6cef359862cf7 (patch) | |
tree | 32711e4c45f4e71759ad79611cab0c67fdd39569 /usr.bin/netstat/inet.c | |
parent | 4c711e6d0438ab8e6bd4bc582ca8fa3c0e6fb378 (diff) | |
download | src-958d6f7fc378091ce7c42a7741d6cef359862cf7.tar.gz src-958d6f7fc378091ce7c42a7741d6cef359862cf7.zip |
Make "netstat -s" display stats on fast-forwarded packets.
Obtained from: NetBSD code
Notes
Notes:
svn path=/head/; revision=36195
Diffstat (limited to 'usr.bin/netstat/inet.c')
-rw-r--r-- | usr.bin/netstat/inet.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index f6ff5e517d0a..0a8eff68e621 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"); |