aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>2001-12-14 04:41:07 +0000
committerDavid Greenman <dg@FreeBSD.org>2001-12-14 04:41:07 +0000
commit05463bb58d35a7331577f6e1d1262c0242e2c63c (patch)
tree60aabd779f9252fa127aaac013ed58c9f97790c3 /sys
parent0c9755a23bd8c05a9452eeb21f07f60df0513c68 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_ethersubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 7b2b3653db3e7..ceac9c1f2c6ac 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -421,6 +421,8 @@ ether_input(ifp, eh, m)
bpf_mtap(ifp, (struct mbuf *)&mh);
}
+ ifp->if_ibytes += m->m_pkthdr.len + sizeof (*eh);
+
/* Handle ng_ether(4) processing, if any */
if (ng_ether_input_p != NULL) {
(*ng_ether_input_p)(ifp, &m, eh);
@@ -506,7 +508,6 @@ ether_demux(ifp, eh, m)
m_freem(m);
return;
}
- ifp->if_ibytes += m->m_pkthdr.len + sizeof (*eh);
if (eh->ether_dhost[0] & 1) {
if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
sizeof(etherbroadcastaddr)) == 0)