summaryrefslogtreecommitdiffstats
path: root/sys/dev/vr
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-09-23 03:32:57 +0000
committerwpaul <wpaul@FreeBSD.org>1999-09-23 03:32:57 +0000
commit165d81879ead70b028b140d76d9143aefee5ce16 (patch)
tree6bbbef5ef1ef94b97c53f10e98f93f50d12e1be5 /sys/dev/vr
parent9e89242d36c564123e515222eb0c9174c38c469c (diff)
downloadFreeBSD-src-165d81879ead70b028b140d76d9143aefee5ce16.zip
FreeBSD-src-165d81879ead70b028b140d76d9143aefee5ce16.tar.gz
As suggested by phk, unconditionalize BPF support in these drivers. Since
there are stubs compiled into the kernel if BPF support is not enabled, there aren't any problems with unresolved symbols. The modules in /modules are compiled with BPF support enabled anyway, so the most this will do is bloat GENERIC a little.
Diffstat (limited to 'sys/dev/vr')
-rw-r--r--sys/dev/vr/if_vr.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index af3ae7e..18e7bdf 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.c
@@ -59,8 +59,6 @@
* transmission.
*/
-#include "bpf.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>
@@ -75,9 +73,7 @@
#include <net/if_dl.h>
#include <net/if_media.h>
-#if NBPF > 0
#include <net/bpf.h>
-#endif
#include "opt_bdg.h"
#ifdef BRIDGE
@@ -810,9 +806,7 @@ static int vr_attach(dev)
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPF > 0
bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
fail:
splx(s);
@@ -1049,7 +1043,6 @@ static void vr_rxeof(sc)
ifp->if_ipackets++;
eh = mtod(m, struct ether_header *);
-#if NBPF > 0
/*
* Handle BPF listeners. Let the BPF user see the packet, but
* don't pass it up to the ether_input() layer unless it's
@@ -1066,7 +1059,7 @@ static void vr_rxeof(sc)
continue;
}
}
-#endif /* NBPF>0 */
+
#ifdef BRIDGE
if (do_bridge) {
struct ifnet *bdg_ifp;
@@ -1385,14 +1378,13 @@ static void vr_start(ifp)
if (cur_tx != start_tx)
VR_TXOWN(cur_tx) = VR_TXSTAT_OWN;
-#if NBPF > 0
/*
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
if (ifp->if_bpf)
bpf_mtap(ifp, cur_tx->vr_mbuf);
-#endif
+
VR_TXOWN(cur_tx) = VR_TXSTAT_OWN;
VR_SETBIT16(sc, VR_COMMAND, /*VR_CMD_TX_ON|*/VR_CMD_TX_GO);
}
OpenPOWER on IntegriCloud