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/ic/smc91cxx.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/ic/smc91cxx.c')
-rw-r--r-- | sys/dev/ic/smc91cxx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/smc91cxx.c b/sys/dev/ic/smc91cxx.c index 0e050823229..75a428bae0e 100644 --- a/sys/dev/ic/smc91cxx.c +++ b/sys/dev/ic/smc91cxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc91cxx.c,v 1.23 2006/02/24 01:48:27 brad Exp $ */ +/* $OpenBSD: smc91cxx.c,v 1.24 2006/03/25 22:41:43 djm Exp $ */ /* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */ /*- @@ -707,7 +707,7 @@ smc91cxx_start(ifp) #if NBPFILTER > 0 /* Hand off a copy to the bpf. */ if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, top); + bpf_mtap(ifp->if_bpf, top, BPF_DIRECTION_OUT); #endif ifp->if_opackets++; @@ -1010,7 +1010,7 @@ smc91cxx_read(sc) * we need to check if the packet is ours. */ if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m); + bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN); #endif m->m_pkthdr.len = m->m_len = packetlen; |