aboutsummaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-10-02 09:38:17 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-10-02 09:38:17 +0000
commit748bb23dcc2f019316ca7cb6161076d2ce70d14f (patch)
tree147a250b6d2a12f6aa3097040f229127f89bb6a9 /sys/net
parentc56c20f13dcd8eff1446ae5c3d7939aa5f8b9e97 (diff)
Notes
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_gre.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index cdce71692e8d..dfa9ddbcc14f 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);