summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_fe.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_fe.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_fe.c')
-rw-r--r--sys/dev/isa/if_fe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/if_fe.c b/sys/dev/isa/if_fe.c
index 8a0ed81a147..826f413ce87 100644
--- a/sys/dev/isa/if_fe.c
+++ b/sys/dev/isa/if_fe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fe.c,v 1.24 2005/05/23 23:26:56 tedu Exp $ */
+/* $OpenBSD: if_fe.c,v 1.25 2006/03/25 22:41:44 djm Exp $ */
/*
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@@ -1502,7 +1502,7 @@ fe_start(ifp)
#if NBPFILTER > 0
/* Tap off here if there is a BPF listener. */
if (ifp->if_bpf)
- bpf_mtap(ifp->if_bpf, m);
+ bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
#endif
/*
@@ -2055,7 +2055,7 @@ fe_get_packet(sc, len)
* the raw packet to bpf.
*/
if (ifp->if_bpf)
- bpf_mtap(ifp->if_bpf, m);
+ bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
#endif
ether_input_mbuf(ifp, m);