summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorGleydson Soares <gsoares@cvs.openbsd.org>2012-11-08 18:06:50 +0000
committerGleydson Soares <gsoares@cvs.openbsd.org>2012-11-08 18:06:50 +0000
commit502a1a9fdcfd80894e8d7c3c83411d7dc005fe6f (patch)
tree874bf52770ebf5cbecb0a38a11905a83d5c74ec6 /sys/net
parentc8e2f07f1375506a21186d043d9a3d39e40bc7c9 (diff)
wrap bpfilter portion with #if NBPFILTER > 0.
fix kernel builds without bpfilter. OK sthen@ mikeb@ deraadt@ henning@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pflow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_pflow.c b/sys/net/if_pflow.c
index f20e0b274e8..89976e65647 100644
--- a/sys/net/if_pflow.c
+++ b/sys/net/if_pflow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflow.c,v 1.21 2012/10/30 12:09:05 florian Exp $ */
+/* $OpenBSD: if_pflow.c,v 1.22 2012/11/08 18:06:49 gsoares Exp $ */
/*
* Copyright (c) 2011 Florian Obser <florian@narrans.de>
@@ -1106,7 +1106,9 @@ pflow_sendout_mbuf(struct pflow_softc *sc, struct mbuf *m)
{
struct udpiphdr *ui;
u_int16_t len = m->m_pkthdr.len;
+#if NBPFILTER > 0
struct ifnet *ifp = &sc->sc_if;
+#endif
struct ip *ip;
int err;