From bdab433cffd6c638f97c258edb4abdc0f2dc6c15 Mon Sep 17 00:00:00 2001 From: angelos Date: Tue, 18 Apr 2000 06:41:23 +0000 Subject: [PATCH] Stats for bridge output too. --- sys/net/if_enc.c | 8 ++++---- 1 file 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); -- 2.20.1