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/lemac.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/lemac.c')
-rw-r--r-- | sys/dev/ic/lemac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/lemac.c b/sys/dev/ic/lemac.c index 23c4d18d8d1..38acec88274 100644 --- a/sys/dev/ic/lemac.c +++ b/sys/dev/ic/lemac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lemac.c,v 1.8 2005/11/14 14:46:41 mickey Exp $ */ +/* $OpenBSD: lemac.c,v 1.9 2006/03/25 22:41:43 djm Exp $ */ /* $NetBSD: lemac.c,v 1.20 2001/06/13 10:46:02 wiz Exp $ */ /*- @@ -310,7 +310,7 @@ lemac_input(struct lemac_softc *sc, bus_size_t offset, size_t length) #if NBPFILTER > 0 if (sc->sc_if.if_bpf != NULL) { m->m_pkthdr.len = m->m_len = length; - bpf_mtap(sc->sc_if.if_bpf, m); + bpf_mtap(sc->sc_if.if_bpf, m, BPF_DIRECTION_IN); } /* @@ -769,7 +769,7 @@ lemac_ifstart(struct ifnet *ifp) LEMAC_OUTB(sc, LEMAC_REG_TQ, tx_pg); #if NBPFILTER > 0 if (sc->sc_if.if_bpf != NULL) - bpf_mtap(sc->sc_if.if_bpf, m); + bpf_mtap(sc->sc_if.if_bpf, m, BPF_DIRECTION_OUT); #endif m_freem(m); /* free the mbuf */ } |