diff options
author | phk <phk@FreeBSD.org> | 1999-09-25 12:06:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-25 12:06:01 +0000 |
commit | d612df1de637eabac588385f0ef90f8d91a297de (patch) | |
tree | 98ecfb3ce51180cb27c6f26afbbda3e06f598865 /sys/dev/cs | |
parent | 5f4944fbfdbe191d7f3f19a522957a406819ad3b (diff) | |
download | FreeBSD-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/dev/cs')
-rw-r--r-- | sys/dev/cs/if_cs.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index 0f11d14..29f91b9 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -35,7 +35,6 @@ /* #define CS_DEBUG */ #include "cs.h" -#include "bpf.h" #include <sys/param.h> #include <sys/systm.h> @@ -52,9 +51,7 @@ #include <net/if_media.h> #include <net/ethernet.h> -#if NBPF > 0 #include <net/bpf.h> -#endif #include <machine/clock.h> @@ -621,9 +618,7 @@ cs_attach(struct cs_softc *sc, int unit, int flags) printf(CS_NAME"%d: ethernet address %6D\n", ifp->if_unit, sc->arpcom.ac_enaddr, ":"); -#if NBPF > 0 bpfattach(ifp, DLT_EN10MB, sizeof (struct ether_header)); -#endif return 1; } @@ -778,10 +773,8 @@ cs_get_packet(struct cs_softc *sc) eh = mtod(m, struct ether_header *); -#if NBPF > 0 if (ifp->if_bpf) bpf_mtap(ifp, m); -#endif #ifdef CS_DEBUG for (i=0;i<length;i++) @@ -951,11 +944,9 @@ cs_start(struct ifnet *ifp) cs_write_mbufs(sc, m); -#if NBPF > 0 if (ifp->if_bpf) { bpf_mtap(ifp, m); } -#endif m_freem(m); } |