diff options
| author | 2006-03-25 22:41:41 +0000 | |
|---|---|---|
| committer | 2006-03-25 22:41:41 +0000 | |
| commit | c4acdf64453f4af90bb07bf72a8beeebce2a3632 (patch) | |
| tree | 49370bcebe0760903075593a00be3ed433881b80 /sys/dev/usb/ueagle.c | |
| parent | regen (diff) | |
| download | wireguard-openbsd-c4acdf64453f4af90bb07bf72a8beeebce2a3632.tar.xz wireguard-openbsd-c4acdf64453f4af90bb07bf72a8beeebce2a3632.zip | |
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/usb/ueagle.c')
| -rw-r--r-- | sys/dev/usb/ueagle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ueagle.c b/sys/dev/usb/ueagle.c index 75d4e1fa10c..09fc623053d 100644 --- a/sys/dev/usb/ueagle.c +++ b/sys/dev/usb/ueagle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ueagle.c,v 1.9 2006/01/29 03:22:52 brad Exp $ */ +/* $OpenBSD: ueagle.c,v 1.10 2006/03/25 22:41:47 djm Exp $ */ /*- * Copyright (c) 2003-2005 @@ -875,7 +875,7 @@ ueagle_push_cell(struct ueagle_softc *sc, uint8_t *cell) #if NBPFILTER > 0 if (ifp->if_bpf != NULL) - bpf_mtap(ifp->if_bpf, m); + bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN); #endif /* send the AAL5 CPCS-PDU to the ATM layer */ @@ -1088,7 +1088,7 @@ ueagle_start(struct ifnet *ifp) #if NBPFILTER > 0 if (ifp->if_bpf != NULL) - bpf_mtap(ifp->if_bpf, m0); + bpf_mtap(ifp->if_bpf, m0, BPF_DIRECTION_OUT); #endif m_freem(m0); |
