diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-18 06:41:24 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-18 06:41:24 +0000 |
commit | 5a8af8198f68ec13c50efea14069c383b46c09e8 (patch) | |
tree | 9a0eb51cfcb6f65bdefa57e91ab2619e9d84c584 /sys | |
parent | 5ab4e8d23b8dbdba6f56faf30e922972ca05f8ec (diff) |
Stats for bridge output too.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_enc.c | 8 |
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); |