Update interface statistics after MAC and IFF_UP|IFF_RUNNING checks.
This commit is contained in:
parent
b4d176598f
commit
d16675cd85
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user