summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_gre.c
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-10-02 09:38:17 +0000
committersobomax <sobomax@FreeBSD.org>2002-10-02 09:38:17 +0000
commit42239faa4747820b5263ce6a3de8ff7bd2106fe9 (patch)
tree147a250b6d2a12f6aa3097040f229127f89bb6a9 /sys/netinet/ip_gre.c
parentfeb8c6a405493202efe2d6743b8bb785cf9ce590 (diff)
downloadFreeBSD-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/netinet/ip_gre.c')
-rw-r--r--sys/netinet/ip_gre.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/netinet/ip_gre.c b/sys/netinet/ip_gre.c
index 93afaa3..ac28b6e 100644
--- a/sys/netinet/ip_gre.c
+++ b/sys/netinet/ip_gre.c
@@ -46,7 +46,6 @@
#include "opt_inet.h"
#include "opt_ns.h"
#include "opt_atalk.h"
-#include "bpf.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -209,7 +208,6 @@ gre_input2(struct mbuf *m ,int hlen, u_char proto)
m->m_len -= hlen;
m->m_pkthdr.len -= hlen;
-#if NBPF > 0
if (sc->sc_if.if_bpf) {
struct mbuf m0;
u_int32_t af = AF_INET;
@@ -219,8 +217,7 @@ gre_input2(struct mbuf *m ,int hlen, u_char proto)
m0.m_data = (char *)&af;
bpf_mtap(&(sc->sc_if), &m0);
- }
-#endif /*NBPF > 0*/
+ }
m->m_pkthdr.rcvif = &sc->sc_if;
@@ -306,7 +303,6 @@ gre_mobile_input(m, va_alist)
ip->ip_sum = 0;
ip->ip_sum = in_cksum(m, (ip->ip_hl << 2));
-#if NBPF > 0
if (sc->sc_if.if_bpf) {
struct mbuf m0;
u_int af = AF_INET;
@@ -316,8 +312,7 @@ gre_mobile_input(m, va_alist)
m0.m_data = (char *)&af;
bpf_mtap(&(sc->sc_if), &m0);
- }
-#endif /*NBPFILTER > 0*/
+ }
m->m_pkthdr.rcvif = &sc->sc_if;
OpenPOWER on IntegriCloud