diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-10-02 09:38:17 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-10-02 09:38:17 +0000 |
commit | 42239faa4747820b5263ce6a3de8ff7bd2106fe9 (patch) | |
tree | 147a250b6d2a12f6aa3097040f229127f89bb6a9 /sys/net/if_gre.c | |
parent | feb8c6a405493202efe2d6743b8bb785cf9ce590 (diff) | |
download | FreeBSD-src-42239faa4747820b5263ce6a3de8ff7bd2106fe9.zip FreeBSD-src-42239faa4747820b5263ce6a3de8ff7bd2106fe9.tar.gz |
Since bpf is no longer an optional component, remove associated ifdef's.
Submitted by: don't quite remember - the name of the sender disappeared
with the rest of my inbox. :(
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r-- | sys/net/if_gre.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index cdce71692..dfa9ddb 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -49,7 +49,6 @@ #include "opt_atalk.h" #include "opt_inet.h" #include "opt_ns.h" -#include "bpf.h" #include <sys/param.h> #include <sys/kernel.h> @@ -78,9 +77,7 @@ #error "Huh? if_gre without inet?" #endif -#if NBPF > 0 #include <net/bpf.h> -#endif #include <net/net_osdep.h> #include <net/if_gre.h> @@ -183,9 +180,7 @@ gre_clone_create(ifc, unit) sc->encap = NULL; sc->called = 0; if_attach(&sc->sc_if); -#if NBPF bpfattach(&sc->sc_if, DLT_NULL, sizeof(u_int32_t)); -#endif LIST_INSERT_HEAD(&gre_softc_list, sc, sc_list); return (0); } @@ -201,9 +196,7 @@ gre_clone_destroy(ifp) encap_detach(sc->encap); #endif LIST_REMOVE(sc, sc_list); -#if NBPF bpfdetach(ifp); -#endif if_detach(ifp); free(sc, M_GRE); } @@ -247,7 +240,6 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, ip = NULL; osrc = 0; -#if NBPF if (ifp->if_bpf) { /* see comment of other if_foo.c files */ struct mbuf m0; @@ -259,7 +251,6 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, bpf_mtap(ifp, &m0); } -#endif m->m_flags &= ~(M_BCAST|M_MCAST); |