summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_kue.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2006-03-25 22:41:41 +0000
committerdjm <djm@openbsd.org>2006-03-25 22:41:41 +0000
commitc4acdf64453f4af90bb07bf72a8beeebce2a3632 (patch)
tree49370bcebe0760903075593a00be3ed433881b80 /sys/dev/usb/if_kue.c
parentregen (diff)
downloadwireguard-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/if_kue.c')
-rw-r--r--sys/dev/usb/if_kue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c
index 0893de73250..2fdc2160498 100644
--- a/sys/dev/usb/if_kue.c
+++ b/sys/dev/usb/if_kue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_kue.c,v 1.40 2006/03/07 04:41:19 krw Exp $ */
+/* $OpenBSD: if_kue.c,v 1.41 2006/03/25 22:41:47 djm Exp $ */
/* $NetBSD: if_kue.c,v 1.50 2002/07/16 22:00:31 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -803,7 +803,7 @@ kue_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
* address or the interface is in promiscuous mode.
*/
if (ifp->if_bpf)
- bpf_mtap(ifp->if_bpf, m);
+ bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
#endif
DPRINTFN(10,("%s: %s: deliver %d\n", USBDEVNAME(sc->kue_dev),
@@ -948,7 +948,7 @@ kue_start(struct ifnet *ifp)
* to him.
*/
if (ifp->if_bpf)
- bpf_mtap(ifp->if_bpf, m_head);
+ bpf_mtap(ifp->if_bpf, m_head, BPF_DIRECTION_OUT);
#endif
ifp->if_flags |= IFF_OACTIVE;