summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_hp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2006-03-25 22:41:49 +0000
committerDamien Miller <djm@cvs.openbsd.org>2006-03-25 22:41:49 +0000
commit24436414aab60dc84348ec54f23b324b4ae862a3 (patch)
treeee35283622a78eeac5656cb5661954771faf6520 /sys/dev/isa/if_hp.c
parentd1265a1a72755bd0209950654a6df47287781241 (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/isa/if_hp.c')
-rw-r--r--sys/dev/isa/if_hp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isa/if_hp.c b/sys/dev/isa/if_hp.c
index e1cbd70790d..30487d2e7d6 100644
--- a/sys/dev/isa/if_hp.c
+++ b/sys/dev/isa/if_hp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_hp.c,v 1.15 2005/11/21 18:16:40 millert Exp $ */
+/* $OpenBSD: if_hp.c,v 1.16 2006/03/25 22:41:44 djm Exp $ */
/* $NetBSD: if_hp.c,v 1.21 1995/12/24 02:31:31 mycroft Exp $ */
/* XXX THIS DRIVER IS BROKEN. IT WILL NOT EVEN COMPILE. */
@@ -531,7 +531,7 @@ hpstart(ifp)
#if NBPFILTER > 0
if (ns->ns_bpf)
- bpf_mtap(ns->ns_bpf, m);
+ bpf_mtap(ns->ns_bpf, m, BPF_DIRECTION_OUT);
#endif
for (m0 = m; m != 0;) {
@@ -796,7 +796,8 @@ hpread(ns, buf, len)
#if NBPFILTER > 0
if (ns->ns_bpf)
- bpf_tap(ns->ns_bpf, buf, len + sizeof(struct ether_header));
+ bpf_tap(ns->ns_bpf, buf, len + sizeof(struct ether_header),
+ BPF_DIRECTION_IN);
#endif
/*
* Pull packet off interface. Off is nonzero if packet