1 1.2.18.2 jdolecek # $NetBSD: Makefile,v 1.2.18.2 2017/12/03 11:38:56 jdolecek Exp $ 2 1.2.18.2 jdolecek # 3 1.2.18.2 jdolecek 4 1.2.18.2 jdolecek .include "../Makefile.inc" 5 1.2.18.2 jdolecek 6 1.2.18.2 jdolecek .PATH: ${S}/external/bsd/ipf/netinet 7 1.2.18.2 jdolecek 8 1.2.18.2 jdolecek KMOD= ipl # Use "formal" name of ipfilter device to enable autoload 9 1.2.18.2 jdolecek 10 1.2.18.2 jdolecek # Options for opt_ipfilter.h 11 1.2.18.2 jdolecek 12 1.2.18.2 jdolecek CPPFLAGS+= -DIPFILTER_LOG # logging of ip packets 13 1.2.18.2 jdolecek #CPPFLAGS+= -DIPFILTER_DEFAULT_BLOCK 14 1.2.18.2 jdolecek #CPPFLAGS+= -DIPFILTER_BPF # BPF opcodes in rules 15 1.2.18.2 jdolecek #CPPFLAGS+= -DIPFILTER_CKSUM # check layer 4 checksums 16 1.2.18.2 jdolecek #CPPFLAGS+= -DIPFILTER_COMPILED # support for compiled IPF rules 17 1.2.18.2 jdolecek CPPFLAGS+= -DIPFILTER_LOOKUP # support for ippool(8) 18 1.2.18.2 jdolecek #CPPFLAGS+= -DIPFILTER_SCAN # scanning of packet contents 19 1.2.18.2 jdolecek #CPPFLAGS+= -DIPFILTER_SYNC # synchronisation of state 20 1.2.18.2 jdolecek CPPFLAGS+= -DIPFILTER_COMPAT # IPFilter version compat. 21 1.2.18.2 jdolecek 22 1.2.18.2 jdolecek # IPFILTER_LOGSIZE # size of logging buffer 23 1.2.18.2 jdolecek # IPSTATE_MAX # maximum number of references to state table entry 24 1.2.18.2 jdolecek # IPSTATE_SIZE # size of state hash table 25 1.2.18.2 jdolecek # NAT_TABLE_MAX # maximum number of NAT state entries 26 1.2.18.2 jdolecek # NAT_TABLE_SZ # size of NAT state hash table 27 1.2.18.2 jdolecek # NAT_SIZE # size of nat rules hash table 28 1.2.18.2 jdolecek # RDR_SIZE # size of rdr rules hash table 29 1.2.18.2 jdolecek # HOSTMAP_SIZE # size of hostmap hash table 30 1.2.18.2 jdolecek 31 1.2.18.2 jdolecek CPPFLAGS+= -I$S/external/bsd/ipf 32 1.2.18.2 jdolecek 33 1.2.18.2 jdolecek # Other options: 34 1.2.18.2 jdolecek 35 1.2.18.2 jdolecek CPPFLAGS+= -DINET # opt_inet.h 36 1.2.18.2 jdolecek CPPFLAGS+= -DINET6 # opt_inet.h 37 1.2.18.2 jdolecek CPPFLAGS+= -DIPSEC # opt_ipsec.h 38 1.2.18.2 jdolecek 39 1.2.18.2 jdolecek SRCS+= fil.c 40 1.2.18.2 jdolecek SRCS+= ip_auth.c 41 1.2.18.2 jdolecek SRCS+= ip_dstlist.c 42 1.2.18.2 jdolecek SRCS+= ip_fil_netbsd.c 43 1.2.18.2 jdolecek SRCS+= ip_frag.c 44 1.2.18.2 jdolecek SRCS+= ip_htable.c 45 1.2.18.2 jdolecek SRCS+= ip_log.c 46 1.2.18.2 jdolecek SRCS+= ip_lookup.c 47 1.2.18.2 jdolecek SRCS+= ip_nat.c 48 1.2.18.2 jdolecek SRCS+= ip_nat6.c 49 1.2.18.2 jdolecek SRCS+= ip_pool.c 50 1.2.18.2 jdolecek SRCS+= ip_proxy.c 51 1.2.18.2 jdolecek SRCS+= ip_scan.c 52 1.2.18.2 jdolecek SRCS+= ip_state.c 53 1.2.18.2 jdolecek SRCS+= ip_sync.c 54 1.2.18.2 jdolecek SRCS+= ip_fil_compat.c 55 1.2.18.2 jdolecek SRCS+= radix_ipf.c 56 1.2.18.2 jdolecek 57 1.2.18.2 jdolecek CWARNFLAGS.clang+= -Wno-self-assign 58 1.2.18.2 jdolecek 59 1.2.18.2 jdolecek .include <bsd.kmodule.mk> 60