summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1997-02-27 01:48:27 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1997-02-27 01:48:27 +0000
commitf8d6da9177ec88f26b60f796d8a06a18fdf721e0 (patch)
tree31b4b2d426bbc077fd332e4fe6df18a3482a23a0 /usr.bin
parent494c2d9191566c4dba4b9a98ce5cd05c07509aa4 (diff)
Now reports ESP I/O packet counters.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/inet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 9a747ff1292..f1460e01a72 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.11 1997/02/26 03:08:43 angelos Exp $ */
+/* $OpenBSD: inet.c,v 1.12 1997/02/27 01:48:26 angelos Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-static char *rcsid = "$OpenBSD: inet.c,v 1.11 1997/02/26 03:08:43 angelos Exp $";
+static char *rcsid = "$OpenBSD: inet.c,v 1.12 1997/02/27 01:48:26 angelos Exp $";
#endif
#endif /* not lint */
@@ -630,6 +630,8 @@ esp_stats(off, name)
#define p(f, m) if (espstat.f || sflag <= 1) \
printf(m, espstat.f, plural(espstat.f))
+ p(esps_input, "\t%u input ESP packets\n");
+ p(esps_output, "\t%u output ESP packets\n");
p(esps_hdrops, "\t%u packet%s shorter than header shows\n");
p(esps_notdb, "\t%u packet%s for which no TDB was found\n");
p(esps_badkcr, "\t%u input packet%s that failed to be processed\n");