Support monitor mode where the frame is discarded after bpf and stats processing.

This commit is contained in:
Andrew Thompson 2007-12-05 00:42:28 +00:00
parent 272afb6534
commit d3b28963dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174278

View File

@ -1155,6 +1155,11 @@ lagg_input(struct ifnet *ifp, struct mbuf *m)
if (m != NULL) {
scifp->if_ipackets++;
scifp->if_ibytes += m->m_pkthdr.len;
if (scifp->if_flags & IFF_MONITOR) {
m_freem(m);
m = NULL;
}
}
LAGG_RUNLOCK(sc);