summaryrefslogtreecommitdiffstats
path: root/sys/net/if_lagg.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-12-05 00:42:28 +0000
committerthompsa <thompsa@FreeBSD.org>2007-12-05 00:42:28 +0000
commita3cd956d3555d2d317400423daffecd9ec2d2753 (patch)
tree0bfe92f67dabcef7b6b0168e0f9f03ad408e0fd3 /sys/net/if_lagg.c
parentbc73f218414375abff35dd8fcfc6c98bdf54c9e2 (diff)
downloadFreeBSD-src-a3cd956d3555d2d317400423daffecd9ec2d2753.zip
FreeBSD-src-a3cd956d3555d2d317400423daffecd9ec2d2753.tar.gz
Support monitor mode where the frame is discarded after bpf and stats processing.
Diffstat (limited to 'sys/net/if_lagg.c')
-rw-r--r--sys/net/if_lagg.c5
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);
OpenPOWER on IntegriCloud