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/net/if_ppp.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/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 3330cff27fc..87c873148a2 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ppp.c,v 1.45 2006/03/12 00:18:07 brad Exp $ */ +/* $OpenBSD: if_ppp.c,v 1.46 2006/03/25 22:41:47 djm Exp $ */ /* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */ /* @@ -841,7 +841,7 @@ pppoutput(ifp, m0, dst, rtp) * See if bpf wants to look at the packet. */ if (sc->sc_bpf) - bpf_mtap(sc->sc_bpf, m0); + bpf_mtap(sc->sc_bpf, m0, BPF_DIRECTION_OUT); #endif /* @@ -1506,7 +1506,7 @@ ppp_inproc(sc, m) #if NBPFILTER > 0 /* See if bpf wants to look at the packet. */ if (sc->sc_bpf) - bpf_mtap(sc->sc_bpf, m); + bpf_mtap(sc->sc_bpf, m, BPF_DIRECTION_IN); #endif rv = 0; |