summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2024-03-19 03:49:12 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2024-03-19 03:49:12 +0000
commit267f7a597f56dc3cb61344c7c46bb2318ea099a4 (patch)
tree74e26d27a3a3c5c2f541774f3916e9d9b5cc8abc
parent269669b39ce9df9ed595281bb40451848de8aaaf (diff)
count if_enqueue/ifq_enqueue errors as oqdrops.
this helps narrow down where some "output failures" on sec interfaces occur. based on discussion with jason tubnor
-rw-r--r--sys/net/if_sec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_sec.c b/sys/net/if_sec.c
index 7e4e5f57f38..a5a38a06f0d 100644
--- a/sys/net/if_sec.c
+++ b/sys/net/if_sec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sec.c,v 1.10 2024/01/24 00:17:01 dlg Exp $ */
+/* $OpenBSD: if_sec.c,v 1.11 2024/03/19 03:49:11 dlg Exp $ */
/*
* Copyright (c) 2022 The University of Queensland
@@ -327,7 +327,7 @@ sec_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
error = if_enqueue(ifp, m);
if (error != 0)
- counters_inc(ifp->if_counters, ifc_oerrors);
+ counters_inc(ifp->if_counters, ifc_oqdrops);
return (error);