diff options
author | andre <andre@FreeBSD.org> | 2005-09-14 16:37:05 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-09-14 16:37:05 +0000 |
commit | 83de50745608b94185c0b4fe8557a7d5c27aaf66 (patch) | |
tree | 176fca0422b11d147fdde7e249c066972b5df054 /sys | |
parent | 46e61fb58630a657121bacda0b55320cf0be38bd (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/net/bpf.c | 4 |
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) { |