summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-02-07 18:18:17 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-02-07 18:18:17 +0000
commit05f3dca89fa5efb05cb505f36f6fd86d294bf974 (patch)
tree1f0d8d688ea325857b21abc08e3850feb0ea3526 /usr.bin/netstat
parent7db541e2bea9889d4866f7688c0b8ac8b7f114b0 (diff)
IPsec packets could be dropped unaccounted if output after crypto
failed. Add a counter for that case. OK dhill@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index ceae24934d1..71fcbf196b4 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.153 2016/12/22 11:04:44 rzalamena Exp $ */
+/* $OpenBSD: inet.c,v 1.154 2017/02/07 18:18:16 bluhm Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -954,6 +954,7 @@ ah_stats(char *name)
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_outfail, "\t%u output packet%s could not be sent\n");
p(ahs_ibytes, "\t%llu input byte%s\n");
p(ahs_obytes, "\t%llu output byte%s\n");
@@ -1032,6 +1033,7 @@ esp_stats(char *name)
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_outfail, "\t%u output packet%s could not be sent\n");
p(esps_udpencin, "\t%u input UDP encapsulated ESP packet%s\n");
p(esps_udpencout, "\t%u output UDP encapsulated ESP packet%s\n");
p(esps_udpinval, "\t%u UDP packet%s for non-encapsulating TDB received\n");
@@ -1226,6 +1228,7 @@ ipcomp_stats(char *name)
p(ipcomps_invalid, "\t%u packet%s attempted to use an invalid TDB\n");
p(ipcomps_toobig, "\t%u packet%s got larger than max IP packet size\n");
p(ipcomps_crypto, "\t%u packet%s that failed (de)compression processing\n");
+ p(ipcomps_outfail, "\t%u output packet%s could not be sent\n");
p(ipcomps_minlen, "\t%u packet%s less than minimum compression length\n");
p(ipcomps_ibytes, "\t%llu input byte%s\n");
p(ipcomps_obytes, "\t%llu output byte%s\n");