diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2006-09-15 20:17:45 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2006-09-15 20:17:45 +0000 |
| commit | 85fcf1ba0778a2605d851ece34906b5fbb1a2741 (patch) | |
| tree | fff8e4e78345b5aafed26fee6aa4dd51c029c24e /sys/netgraph | |
| parent | d3e7e72eaf7cd2c5bbec575abfdb4f41ac17ed79 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph')
| -rw-r--r-- | sys/netgraph/ng_fec.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/netgraph/ng_fec.c b/sys/netgraph/ng_fec.c index e47abab898e9..ccd3c848f119 100644 --- a/sys/netgraph/ng_fec.c +++ b/sys/netgraph/ng_fec.c @@ -826,9 +826,15 @@ ng_fec_input(struct ifnet *ifp, struct mbuf *m0) /* Convince the system that this is our frame. */ m0->m_pkthdr.rcvif = bifp; - bifp->if_ipackets++; - bifp->if_ibytes += m0->m_pkthdr.len + sizeof(struct ether_header); + /* + * Count bytes on an individual interface in a bundle. + * The bytes will also be added to the aggregate interface + * once we call ether_input(). + */ + ifp->if_ibytes += m0->m_pkthdr.len; + + bifp->if_ipackets++; (*bifp->if_input)(bifp, m0); return; |
