diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-12-05 00:42:28 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-12-05 00:42:28 +0000 |
commit | a3cd956d3555d2d317400423daffecd9ec2d2753 (patch) | |
tree | 0bfe92f67dabcef7b6b0168e0f9f03ad408e0fd3 | |
parent | bc73f218414375abff35dd8fcfc6c98bdf54c9e2 (diff) | |
download | FreeBSD-src-a3cd956d3555d2d317400423daffecd9ec2d2753.zip FreeBSD-src-a3cd956d3555d2d317400423daffecd9ec2d2753.tar.gz |
Support monitor mode where the frame is discarded after bpf and stats processing.
-rw-r--r-- | sys/net/if_lagg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index c9c7ee6..6d90594 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -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); |