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/net/if_ppp.c | |
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/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index f781204..edcc575a 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -113,9 +113,7 @@ #endif #include "bpf.h" -#if NBPF > 0 #include <net/bpf.h> -#endif #if defined(PPP_FILTER) && NBPF == 0 #error "PPP_FILTER requires bpf" @@ -221,9 +219,7 @@ pppattach(dummy) sc->sc_fastq.ifq_maxlen = IFQ_MAXLEN; sc->sc_rawq.ifq_maxlen = IFQ_MAXLEN; if_attach(&sc->sc_if); -#if NBPF > 0 bpfattach(&sc->sc_if, DLT_PPP, PPP_HDRLEN); -#endif } register_netisr(NETISR_PPP, pppintr); /* @@ -828,13 +824,11 @@ pppoutput(ifp, m0, dst, rtp) #endif /* PPP_FILTER */ } -#if NBPF > 0 /* * See if bpf wants to look at the packet. */ if (ifp->if_bpf) bpf_mtap(ifp, m0); -#endif /* * Put the packet on the appropriate queue. @@ -1463,11 +1457,9 @@ ppp_inproc(sc, m) #endif /* PPP_FILTER */ } -#if NBPF > 0 /* See if bpf wants to look at the packet. */ if (sc->sc_if.if_bpf) bpf_mtap(&sc->sc_if, m); -#endif rv = 0; switch (proto) { |