summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2005-09-14 16:37:05 +0000
committerandre <andre@FreeBSD.org>2005-09-14 16:37:05 +0000
commit83de50745608b94185c0b4fe8557a7d5c27aaf66 (patch)
tree176fca0422b11d147fdde7e249c066972b5df054 /sys/net/bpf.c
parent46e61fb58630a657121bacda0b55320cf0be38bd (diff)
downloadFreeBSD-src-83de50745608b94185c0b4fe8557a7d5c27aaf66.zip
FreeBSD-src-83de50745608b94185c0b4fe8557a7d5c27aaf66.tar.gz
Undo a tad little optimization to bpf_mtap() introduced in rev. 1.95
which broke the correct handling of the BIOCGSEESENT flag in the bpf listener. PR: kern/56441 Submitted by: <vys at renet.ru> MFC after: 3 days
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 1ed528b..659410d 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1310,10 +1310,6 @@ bpf_mtap(bp, m)
return;
pktlen = m_length(m, NULL);
- if (pktlen == m->m_len) {
- bpf_tap(bp, mtod(m, u_char *), pktlen);
- return;
- }
BPFIF_LOCK(bp);
LIST_FOREACH(d, &bp->bif_dlist, bd_next) {
OpenPOWER on IntegriCloud