summaryrefslogtreecommitdiffstats
path: root/sys/contrib
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/contrib
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/contrib')
-rw-r--r--sys/contrib/dev/oltr/if_oltr.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/contrib/dev/oltr/if_oltr.c b/sys/contrib/dev/oltr/if_oltr.c
index 72d3cae..aabc645 100644
--- a/sys/contrib/dev/oltr/if_oltr.c
+++ b/sys/contrib/dev/oltr/if_oltr.c
@@ -37,7 +37,6 @@
#include "pci.h"
#include "oltr.h"
#include "opt_inet.h"
-#include "bpf.h"
#if (NOLTR + NPCI) > 0
@@ -90,9 +89,7 @@ char *AdapterName[] = {
#include <net/iso88025.h>
#include <net/if_media.h>
-#if NBPF > 0
#include <net/bpf.h>
-#endif
#if NPNP > 0
#include <i386/isa/pnp.h>
@@ -632,9 +629,7 @@ oltr_attach_common(sc)
if_attach(ifp);
iso88025_ifattach(ifp);
-#if NBPF > 0
bpfattach(ifp, DLT_IEEE802, sizeof(struct iso88025_header));
-#endif
printf("oltr%d: Adapter modes - ", sc->unit);
if (sc->config->mode & TRLLD_MODE_16M) printf("TRLLD_MODE_16M ");
@@ -949,10 +944,8 @@ restart:
goto bad;
}
-#if NBPF > 0
if (ifp->if_bpf)
bpf_mtap(ifp, m0);
-#endif
bad:
@@ -1351,10 +1344,8 @@ DriverReceiveFrameCompleted(DriverHandle, ByteCount, FragmentCount, FragmentHand
}
ifp->if_ipackets++;
-#if NBPF > 0
if (ifp->if_bpf)
bpf_mtap(ifp, m0);
-#endif
if (ifp->if_flags & IFF_PROMISC)
if (bcmp(th->iso88025_dhost, etherbroadcastaddr, sizeof(th->iso88025_dhost)) != 0) {
OpenPOWER on IntegriCloud