summaryrefslogtreecommitdiff
path: root/sys/dev/ic/midway.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2006-03-25 22:41:49 +0000
committerDamien Miller <djm@cvs.openbsd.org>2006-03-25 22:41:49 +0000
commit24436414aab60dc84348ec54f23b324b4ae862a3 (patch)
treeee35283622a78eeac5656cb5661954771faf6520 /sys/dev/ic/midway.c
parentd1265a1a72755bd0209950654a6df47287781241 (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/ic/midway.c')
-rw-r--r--sys/dev/ic/midway.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ic/midway.c b/sys/dev/ic/midway.c
index 473b658fa48..1bcaef7a029 100644
--- a/sys/dev/ic/midway.c
+++ b/sys/dev/ic/midway.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midway.c,v 1.36 2006/03/15 20:04:37 miod Exp $ */
+/* $OpenBSD: midway.c,v 1.37 2006/03/25 22:41:43 djm Exp $ */
/* (sync'd to midway.c 1.68) */
/*
@@ -177,8 +177,6 @@
#endif /* __FreeBSD__ */
-#define BPF_MTAP(ifp, m) bpf_mtap((ifp)->if_bpf, (m))
-
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
@@ -1940,7 +1938,7 @@ again:
launch.t->m_data += size;
launch.t->m_len -= size;
- BPF_MTAP(&sc->enif, launch.t);
+ bpf_mtap(sc->enif.if_bpf, launch.t, BPF_DIRECTION_OUT);
launch.t->m_data -= size;
launch.t->m_len += size;
@@ -2513,7 +2511,7 @@ void *arg;
#if NBPFILTER > 0
if (sc->enif.if_bpf)
- BPF_MTAP(&sc->enif, m);
+ bpf_mtap(sc->enif.if_bpf, m, BPF_DIRECTION_IN);
#endif
atm_input(&sc->enif, &ah, m, sc->rxslot[slot].rxhand);