summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.h
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-11-28 18:48:59 +0000
committersilby <silby@FreeBSD.org>2003-11-28 18:48:59 +0000
commit73c251c926015bb7a04ec55aacdabd690f0873b6 (patch)
tree57dcd61c61eda986ca9f6012a46923df7250b055 /sys/net/bpf.h
parente983c8d12df02353a044c03cba700a236381ae1f (diff)
downloadFreeBSD-src-73c251c926015bb7a04ec55aacdabd690f0873b6.zip
FreeBSD-src-73c251c926015bb7a04ec55aacdabd690f0873b6.tar.gz
Remove the call to M_ASSERTVALID from BPF_MTAP; some mbufs passed to
mpf are allocated on the stack, which causes this check to falsely trigger. A new check which takes on-stack mbufs into account will be reintroduced after 5.2 is out the door. Approved by: re (watson) Requested by: many
Diffstat (limited to 'sys/net/bpf.h')
-rw-r--r--sys/net/bpf.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index a5942ae..6d3e800 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -366,7 +366,6 @@ u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
bpf_tap((_ifp)->if_bpf, (_pkt), (_pktlen)); \
} while (0)
#define BPF_MTAP(_ifp,_m) do { \
- M_ASSERTVALID(_m); \
if ((_ifp)->if_bpf) \
bpf_mtap((_ifp)->if_bpf, (_m)); \
} while (0)
OpenPOWER on IntegriCloud