aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-09-25 12:06:01 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-09-25 12:06:01 +0000
commit46783fb897761a099b5d9629afd30bb97cdeed5e (patch)
treeefd419464a05c5c9549c3ea5cc49e8d61c143e27 /sys/dev/vx
parent40bc58df9a215b74d944ee58d146f6b2f3107568 (diff)
downloadsrc-46783fb897761a099b5d9629afd30bb97cdeed5e.tar.gz
src-46783fb897761a099b5d9629afd30bb97cdeed5e.zip
Remove NBPF conditionality of bpf calls in most of our network drivers.
This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags.
Notes
Notes: svn path=/head/; revision=51646
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index a67cff8f4e61..5e188a7f88bf 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -62,7 +62,6 @@
#define NVX 4
#endif
-#include "bpf.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -76,9 +75,7 @@
#include <net/ethernet.h>
#include <net/if_arp.h>
-#if NBPF > 0
#include <net/bpf.h>
-#endif
#include <machine/clock.h>
@@ -216,9 +213,7 @@ vxattach(sc)
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPF > 0
bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
sc->tx_start_thresh = 20; /* probably a good starting point. */
@@ -496,11 +491,9 @@ startagain:
outw(BASE + VX_COMMAND, SET_TX_START_THRESH |
((len / 4 + sc->tx_start_thresh) >> 2));
-#if NBPF > 0
if (sc->arpcom.ac_if.if_bpf) {
bpf_mtap(&sc->arpcom.ac_if, m0);
}
-#endif
/*
* Do the output at splhigh() so that an interrupt from another device
@@ -745,7 +738,6 @@ again:
/* We assume the header fit entirely in one mbuf. */
eh = mtod(m, struct ether_header *);
-#if NBPF > 0
/*
* Check if there's a BPF listener on this interface.
* If so, hand off the raw packet to BPF.
@@ -753,7 +745,6 @@ again:
if (sc->arpcom.ac_if.if_bpf) {
bpf_mtap(&sc->arpcom.ac_if, m);
}
-#endif
/*
* XXX: Some cards seem to be in promiscous mode all the time.