From: angelos Date: Tue, 18 Apr 2000 06:41:23 +0000 (+0000) Subject: Stats for bridge output too. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bdab433cffd6c638f97c258edb4abdc0f2dc6c15;p=openbsd Stats for bridge output too. --- 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);