summaryrefslogtreecommitdiffstats
path: root/sbin/ipf
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2005-05-16 16:22:55 +0000
committerdarrenr <darrenr@FreeBSD.org>2005-05-16 16:22:55 +0000
commit7b001e5d5edaab2abb29840bc32847edd30b01b5 (patch)
tree9486604858b98a614982d5b3639d0ef5f669473f /sbin/ipf
parent3e9d45596ef928b4037661aa184bb4aaeca6b572 (diff)
downloadFreeBSD-src-7b001e5d5edaab2abb29840bc32847edd30b01b5.zip
FreeBSD-src-7b001e5d5edaab2abb29840bc32847edd30b01b5.tar.gz
Enable building /sbin/ipf (but not the rescue version) with the ability to
parse bpf strings for filter rules in ipf.conf
Diffstat (limited to 'sbin/ipf')
-rw-r--r--sbin/ipf/ipf/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/ipf/ipf/Makefile b/sbin/ipf/ipf/Makefile
index 820de39..e0b887f 100644
--- a/sbin/ipf/ipf/Makefile
+++ b/sbin/ipf/ipf/Makefile
@@ -1,10 +1,10 @@
# $FreeBSD$
PROG= ipf
-SRCS= ipf.c ipfcomp.c ipf_y.c ipf_l.c
+SRCS= ipf.c ipfcomp.c ipf_y.c ipf_l.c bpf_filter.c
MAN= ipf.8 ipf.4 ipf.5 ipl.4
MLINKS= ipl.4 ipfilter.4 ipf.5 ipf.conf.5 ipf.5 ipf6.conf.5
-CFLAGS+= -I.
+CFLAGS+= -I. -DIPFILTER_BPF
DPSRCS+= ipf_l.h ipf_y.h
@@ -34,6 +34,8 @@ ipf_l.h: lexer.h
.if defined(RESCUE)
LIBIPF_SRCS!= cd ${.CURDIR}/../libipf && ${MAKE} -V SRCS
SRCS+= ${LIBIPF_SRCS}
+.else
+LDADD+= -lpcap
.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud