summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-18 06:41:24 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-18 06:41:24 +0000
commit5a8af8198f68ec13c50efea14069c383b46c09e8 (patch)
tree9a0eb51cfcb6f65bdefa57e91ab2619e9d84c584 /sys
parent5ab4e8d23b8dbdba6f56faf30e922972ca05f8ec (diff)
Stats for bridge output too.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_enc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c
index 74cf10e5e2d..d14613a9223 100644
--- a/sys/net/if_enc.c
+++ b/sys/net/if_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_enc.c,v 1.29 2000/04/18 06:35:02 angelos Exp $ */
+/* $OpenBSD: if_enc.c,v 1.30 2000/04/18 06:41:23 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -247,6 +247,9 @@ struct ifnet *ifp;
continue;
}
+ ifp->if_opackets++;
+ ifp->if_obytes += m->m_pkthdr.len;
+
m->m_pkthdr.rcvif = ifp;
mp = NULL;
@@ -324,9 +327,6 @@ register struct rtentry *rt;
return 0;
}
- ifp->if_opackets++;
- ifp->if_obytes += m->m_pkthdr.len;
-
IF_ENQUEUE(&ifp->if_snd, m);
splx(s);