Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic count input and output packets.
details: https://anonhg.NetBSD.org/src/rev/db0f94a45458
branches: trunk
changeset: 486383:db0f94a45458
user: matt <matt%NetBSD.org@localhost>
date: Sat May 20 18:33:18 2000 +0000
description:
count input and output packets.
diffstat:
sys/dev/ic/sgec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r d954d05fe506 -r db0f94a45458 sys/dev/ic/sgec.c
--- a/sys/dev/ic/sgec.c Sat May 20 18:25:41 2000 +0000
+++ b/sys/dev/ic/sgec.c Sat May 20 18:33:18 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sgec.c,v 1.2 2000/03/30 12:45:32 augustss Exp $ */
+/* $NetBSD: sgec.c,v 1.3 2000/05/20 18:33:18 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
*
@@ -416,6 +416,7 @@
while ((zc->zc_recv[sc->sc_nextrx].ze_framelen &
ZE_FRAMELEN_OW) == 0) {
+ ifp->if_ipackets++;
m = sc->sc_rxmbuf[sc->sc_nextrx];
len = zc->zc_recv[sc->sc_nextrx].ze_framelen;
ze_add_rxbuf(sc, sc->sc_nextrx);
@@ -460,6 +461,7 @@
sc->sc_lastack = 0;
/* XXX collect statistics */
+ ifp->if_opackets++;
if ((zc->zc_xmit[idx].ze_tdes1 & ZE_TDES1_DT) ==
ZE_TDES1_DT_SETUP)
continue;
Home |
Main Index |
Thread Index |
Old Index