summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2014-03-03 14:01:30 +0000
committerpooka <pooka@NetBSD.org>2014-03-03 14:01:30 +0000
commit2f90bd9c772467d7db2289c18745fc0b7935214c (patch)
treef1850d81f9c1ee374a50a6f76eaf0b61b4a1c6f5 /sys
parent061c9eec0cbc54aa9d0dffb9969341b46ec08352 (diff)
For now, make it possible to not specify -D_NPF_TESTING by compiling
with RUMP_NPF_TESTING_=no. This in turn makes it possible to use npf in a rump kernel for real packet filtering instead of just testing. no change to default
Diffstat (limited to 'sys')
-rw-r--r--sys/rump/net/lib/libnpf/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/rump/net/lib/libnpf/Makefile b/sys/rump/net/lib/libnpf/Makefile
index 5176983d241..65859a826be 100644
--- a/sys/rump/net/lib/libnpf/Makefile
+++ b/sys/rump/net/lib/libnpf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2013/11/08 00:38:27 rmind Exp $
+# $NetBSD: Makefile,v 1.10 2014/03/03 14:01:30 pooka Exp $
#
# Public Domain.
#
@@ -19,7 +19,9 @@ SRCS+= npf_ext_log.c npf_ext_normalize.c npf_ext_rndblock.c
SRCS+= component.c
+.if ${RUMP_NPF_TESTING:Uyes} == "yes"
CPPFLAGS+= -D_NPF_TESTING
+.endif
CPPFLAGS+= -I${.CURDIR}/../../../librump/rumpvfs
.include <bsd.lib.mk>