summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormjacob <mjacob@cvs.openbsd.org>2000-12-07 02:35:56 +0000
committermjacob <mjacob@cvs.openbsd.org>2000-12-07 02:35:56 +0000
commite30089fb5d13b72c93e2c5a18636687deeb3ba30 (patch)
treeb9c2a19f479f27cae6f027c35d2d42d23c30f455 /sys/dev
parentd268d2de98ec5d330ef19c84410c24eee2e9d13f (diff)
Thanks to Peter Galbavy <peter.galbavy@knowledge.com> for noticing-
need #if NBPFILTER > 0 around a couple of spots.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_wx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_wx.c b/sys/dev/pci/if_wx.c
index cb7338ec132..d02a6b47503 100644
--- a/sys/dev/pci/if_wx.c
+++ b/sys/dev/pci/if_wx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wx.c,v 1.7 2000/12/06 01:02:14 mjacob Exp $ */
+/* $OpenBSD: if_wx.c,v 1.8 2000/12/07 02:35:55 mjacob Exp $ */
/*
* Copyright (c) 1999, Traakan Software
* All rights reserved.
@@ -1154,8 +1154,10 @@ again:
sc->tactive = nactv;
ifp->if_timer = 10;
WRITE_CSR(sc, WXREG_TDT, cidx);
+#if NBPFILTER > 0
if (ifp->if_bpf)
bpf_mtap(WX_BPFTAP_ARG(ifp), mb_head);
+#endif
continue;
}
@@ -1492,9 +1494,11 @@ wx_handle_rxint(sc)
for (idx = 0; idx < npkts; idx++) {
mb = pending[idx];
+#if NBPFILTER > 0
if (ifp->if_bpf) {
bpf_mtap(WX_BPFTAP_ARG(ifp), mb);
}
+#endif
ifp->if_ipackets++;
if (sc->wx_debug) {
printf("%s: RECV packet length %d\n",