From: angelos Date: Mon, 20 Mar 2000 02:38:35 +0000 (+0000) Subject: Print statistics about crypto failures in IPsec processing. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=66c2a4d6a8a7d58386dc183c839ef7207a373223;p=openbsd Print statistics about crypto failures in IPsec processing. --- diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 811af6612a4..2df0d9c1963 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet.c,v 1.45 2000/01/21 03:24:06 angelos Exp $ */ +/* $OpenBSD: inet.c,v 1.46 2000/03/20 02:38:35 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.45 2000/01/21 03:24:06 angelos Exp $"; +static char *rcsid = "$OpenBSD: inet.c,v 1.46 2000/03/20 02:38:35 angelos Exp $"; #endif #endif /* not lint */ @@ -680,6 +680,7 @@ ah_stats(off, name) p(ahs_badauthl, "\t%u packet%s with bad authenticator length received\n"); p(ahs_invalid, "\t%u packet%s attempted to use an invalid tdb\n"); p(ahs_toobig, "\t%u packet%s got larger than max IP packet size\n"); + p(ahs_crypto, "\t%u packet%s that failed crypto processing\n"); p(ahs_ibytes, "\t%qu input byte%s\n"); p(ahs_obytes, "\t%qu output byte%s\n"); @@ -754,6 +755,7 @@ esp_stats(off, name) p(esps_badilen, "\t%u packet%s with payload not a multiple of 8 received\n"); p(esps_invalid, "\t%u packet%s attempted to use an invalid tdb\n"); p(esps_toobig, "\t%u packet%s got larger than max IP packet size\n"); + p(esps_crypto, "\t%u packet%s that failed crypto processing\n"); p(esps_ibytes, "\t%qu input byte%s\n"); p(esps_obytes, "\t%qu output byte%s\n");