From d612df1de637eabac588385f0ef90f8d91a297de Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 25 Sep 1999 12:06:01 +0000 Subject: 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. --- sys/i386/isa/if_lnc.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sys/i386/isa/if_lnc.c') diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c index 6345dff..1c14f8e 100644 --- a/sys/i386/isa/if_lnc.c +++ b/sys/i386/isa/if_lnc.c @@ -64,7 +64,6 @@ #include "lnc.h" #if NLNC > 0 -#include "bpf.h" #include "opt_inet.h" /* Some defines that should really be in generic locations */ @@ -88,9 +87,7 @@ #include #include -#if NBPF > 0 #include -#endif #include "opt_bdg.h" #ifdef BRIDGE @@ -614,10 +611,8 @@ lnc_rint(struct lnc_softc *sc) eh = (struct ether_header *) head->m_data; -#if NBPF > 0 if (sc->arpcom.ac_if.if_bpf) bpf_mtap(&sc->arpcom.ac_if, head); -#endif #ifdef BRIDGE if (do_bridge) { struct ifnet *bdg_ifp ; @@ -1299,9 +1294,7 @@ lnc_attach_sc(struct lnc_softc *sc, int unit) printf("%s", ic_ident[sc->nic.ic]); printf(" address %6D\n", sc->arpcom.ac_enaddr, ":"); -#if NBPF > 0 bpfattach(&sc->arpcom.ac_if, DLT_EN10MB, sizeof(struct ether_header)); -#endif return (1); } @@ -1824,10 +1817,8 @@ lnc_start(struct ifnet *ifp) ifp->if_timer = 2; -#if NBPF > 0 if (sc->arpcom.ac_if.if_bpf) bpf_mtap(&sc->arpcom.ac_if, head); -#endif if (sc->nic.mem_mode != DMA_MBUF) m_freem(head); -- cgit v1.1