summaryrefslogtreecommitdiffstats
path: root/sys/alpha/tc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-25 12:06:01 +0000
committerphk <phk@FreeBSD.org>1999-09-25 12:06:01 +0000
commitd612df1de637eabac588385f0ef90f8d91a297de (patch)
tree98ecfb3ce51180cb27c6f26afbbda3e06f598865 /sys/alpha/tc
parent5f4944fbfdbe191d7f3f19a522957a406819ad3b (diff)
downloadFreeBSD-src-d612df1de637eabac588385f0ef90f8d91a297de.zip
FreeBSD-src-d612df1de637eabac588385f0ef90f8d91a297de.tar.gz
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.
Diffstat (limited to 'sys/alpha/tc')
-rw-r--r--sys/alpha/tc/am7990.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/alpha/tc/am7990.c b/sys/alpha/tc/am7990.c
index a27d712..a6f8373 100644
--- a/sys/alpha/tc/am7990.c
+++ b/sys/alpha/tc/am7990.c
@@ -78,10 +78,7 @@
*/
#include "opt_inet.h"
-#if NBPF > 0
#include <net/bpf.h>
-#include <net/bpfdesc.h>
-#endif
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -229,9 +226,7 @@ am7990_config(sc)
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPF > 0
bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
switch (sc->sc_memsize) {
case 8192:
@@ -318,11 +313,9 @@ am7990_meminit(sc)
struct letmd tmd;
u_int8_t *myaddr;
-#if NBPF > 0
if (ifp->if_flags & IFF_PROMISC)
init.init_mode = LE_MODE_NORMAL | LE_MODE_PROM;
else
-#endif
init.init_mode = LE_MODE_NORMAL;
if (sc->sc_initmodemedia == 1)
init.init_mode |= LE_MODE_PSEL0;
@@ -565,7 +558,6 @@ am7990_read(sc, boff, len)
/* We assume that 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.
@@ -587,7 +579,6 @@ am7990_read(sc, boff, len)
}
#endif
}
-#endif
#ifdef LANCE_REVC_BUG
/*
@@ -923,14 +914,12 @@ am7990_start(ifp)
if (m == 0)
break;
-#if NBPF > 0
/*
* If BPF is listening on this interface, let it see the packet
* before we commit it to the wire.
*/
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
-#endif
/*
* Copy the mbuf chain into the transmit buffer.
OpenPOWER on IntegriCloud