diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-03-16 11:59:10 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-03-16 11:59:10 +0000 |
commit | 02fba3d027f4efd08514fa37cf17cfe89865f07c (patch) | |
tree | 5c1a2a66ae2ee6fcef042343210cdfee7f721b04 | |
parent | f51b82c0b4035ca479b4ce8eb610d1642da13a2a (diff) |
don't account packet's twice; from joel@; ok deraadt@, henning@
-rw-r--r-- | sys/dev/pci/if_em.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 1e7816a06b5..086684f6d0f 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ -/* $OpenBSD: if_em.c,v 1.38 2005/02/07 15:03:50 mcbride Exp $ */ +/* $OpenBSD: if_em.c,v 1.39 2005/03/16 11:59:09 markus Exp $ */ #include "bpfilter.h" #include "vlan.h" @@ -3689,9 +3689,11 @@ em_update_stats_counters(struct em_softc *sc) ifp = &sc->interface_data.ac_if; /* Fill out the OS statistics structure */ +#ifndef __OpenBSD__ ifp->if_ibytes = sc->stats.gorcl; ifp->if_obytes = sc->stats.gotcl; ifp->if_imcasts = sc->stats.mprc; +#endif ifp->if_collisions = sc->stats.colc; /* Rx Errors */ |