Update interface statistics after MAC and IFF_UP|IFF_RUNNING checks.

This commit is contained in:
mdodd 2003-03-15 21:51:39 +00:00
parent b4d176598f
commit d16675cd85

View File

@ -339,12 +339,6 @@ fddi_input(ifp, m)
fh = mtod(m, struct fddi_header *);
/*
* Update interface statistics.
*/
ifp->if_ibytes += m->m_pkthdr.len;
getmicrotime(&ifp->if_lastchange);
/*
* Discard packet if interface is not up.
*/
@ -355,6 +349,12 @@ fddi_input(ifp, m)
mac_create_mbuf_from_ifnet(ifp, m);
#endif
/*
* Update interface statistics.
*/
ifp->if_ibytes += m->m_pkthdr.len;
getmicrotime(&ifp->if_lastchange);
/*
* Discard non local unicast packets when interface
* is in promiscuous mode.