summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2008-02-16 22:06:44 +0000
committermglocker <mglocker@openbsd.org>2008-02-16 22:06:44 +0000
commit1e848aa8895fe2156d57e47f025f8ab12c58eb27 (patch)
tree42a52642c20069060d7aa5ca63de007a847ff0e9
parentsort flags in both synopsis and usage (diff)
downloadwireguard-openbsd-1e848aa8895fe2156d57e47f025f8ab12c58eb27.tar.xz
wireguard-openbsd-1e848aa8895fe2156d57e47f025f8ab12c58eb27.zip
Count output packets.
-rw-r--r--sys/dev/ic/bwi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index 19c380acc3a..77737311e16 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.70 2008/02/16 20:09:05 mglocker Exp $ */
+/* $OpenBSD: bwi.c,v 1.71 2008/02/16 22:06:44 mglocker Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -8980,6 +8980,8 @@ bwi_txeof(struct bwi_softc *sc)
continue;
_bwi_txeof(sc, letoh16(tx_id));
+
+ ifp->if_opackets++;
}
if ((ifp->if_flags & IFF_OACTIVE) == 0)