diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-25 12:06:01 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-25 12:06:01 +0000 |
commit | 46783fb897761a099b5d9629afd30bb97cdeed5e (patch) | |
tree | efd419464a05c5c9549c3ea5cc49e8d61c143e27 /sys/net/if_disc.c | |
parent | 40bc58df9a215b74d944ee58d146f6b2f3107568 (diff) | |
download | src-46783fb897761a099b5d9629afd30bb97cdeed5e.tar.gz src-46783fb897761a099b5d9629afd30bb97cdeed5e.zip |
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.
Notes
Notes:
svn path=/head/; revision=51646
Diffstat (limited to 'sys/net/if_disc.c')
-rw-r--r-- | sys/net/if_disc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/net/if_disc.c b/sys/net/if_disc.c index a1981f74ace8..97e23b1b3431 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++; |