diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2006-03-25 22:41:49 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2006-03-25 22:41:49 +0000 |
commit | 24436414aab60dc84348ec54f23b324b4ae862a3 (patch) | |
tree | ee35283622a78eeac5656cb5661954771faf6520 /sys/dev/sbus/be.c | |
parent | d1265a1a72755bd0209950654a6df47287781241 (diff) |
allow bpf(4) to ignore packets based on their direction (inbound or
outbound), using a new BIOCSDIRFILT ioctl;
guidance, feedback and ok canacar@
Diffstat (limited to 'sys/dev/sbus/be.c')
-rw-r--r-- | sys/dev/sbus/be.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sbus/be.c b/sys/dev/sbus/be.c index 09b700c5e92..3a2f7114daf 100644 --- a/sys/dev/sbus/be.c +++ b/sys/dev/sbus/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.17 2005/06/08 17:03:01 henning Exp $ */ +/* $OpenBSD: be.c,v 1.18 2006/03/25 22:41:46 djm Exp $ */ /* $NetBSD: be.c,v 1.26 2001/03/20 15:39:20 pk Exp $ */ /*- @@ -571,7 +571,7 @@ be_read(struct be_softc *sc, int idx, int len) * If so, hand off the raw packet to BPF. */ if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m); + bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN); #endif /* Pass the packet up. */ ether_input_mbuf(ifp, m); @@ -611,7 +611,7 @@ bestart(struct ifnet *ifp) * packet before we commit it to the wire. */ if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m); + bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); #endif /* |