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/net/if_disc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sys/net/if_disc.c') diff --git a/sys/net/if_disc.c b/sys/net/if_disc.c index a1981f7..97e23b1 100644 --- a/sys/net/if_disc.c +++ b/sys/net/if_disc.c @@ -51,7 +51,6 @@ #include #include -#include "bpf.h" #include "opt_inet.h" #ifdef TINY_DSMTU @@ -85,9 +84,7 @@ discattach(dummy) ifp->if_hdrlen = 0; ifp->if_addrlen = 0; if_attach(ifp); -#if NBPF > 0 bpfattach(ifp, DLT_NULL, sizeof(u_int)); -#endif } static int @@ -99,7 +96,6 @@ discoutput(ifp, m, dst, rt) { if ((m->m_flags & M_PKTHDR) == 0) panic("discoutput no HDR"); -#if NBPF > 0 /* BPF write needs to be handled specially */ if (dst->sa_family == AF_UNSPEC) { dst->sa_family = *(mtod(m, int *)); @@ -125,7 +121,6 @@ discoutput(ifp, m, dst, rt) bpf_mtap(&discif, &m0); } -#endif m->m_pkthdr.rcvif = ifp; ifp->if_opackets++; -- cgit v1.1