summaryrefslogtreecommitdiffstats
path: root/sys/net/if_disc.c
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/net/if_disc.c
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/net/if_disc.c')
-rw-r--r--sys/net/if_disc.c5
1 files changed, 0 insertions, 5 deletions
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 <net/route.h>
#include <net/bpf.h>
-#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++;
OpenPOWER on IntegriCloud