69 lines
2.0 KiB
Makefile
69 lines
2.0 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2023/06/03 08:52:58 lukem Exp $
|
|
#
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
.PATH: ${S}/external/bsd/ipf/netinet
|
|
|
|
KMOD= ipl # Use "formal" name of ipfilter device to enable autoload
|
|
|
|
# Options for opt_ipfilter.h
|
|
|
|
CPPFLAGS+= -DIPFILTER_LOG # logging of ip packets
|
|
#CPPFLAGS+= -DIPFILTER_DEFAULT_BLOCK
|
|
#CPPFLAGS+= -DIPFILTER_BPF # BPF opcodes in rules
|
|
#CPPFLAGS+= -DIPFILTER_CKSUM # check layer 4 checksums
|
|
#CPPFLAGS+= -DIPFILTER_COMPILED # support for compiled IPF rules
|
|
CPPFLAGS+= -DIPFILTER_LOOKUP # support for ippool(8)
|
|
#CPPFLAGS+= -DIPFILTER_SCAN # scanning of packet contents
|
|
#CPPFLAGS+= -DIPFILTER_SYNC # synchronisation of state
|
|
CPPFLAGS+= -DIPFILTER_COMPAT # IPFilter version compat.
|
|
|
|
# IPFILTER_LOGSIZE # size of logging buffer
|
|
# IPSTATE_MAX # maximum number of references to state table entry
|
|
# IPSTATE_SIZE # size of state hash table
|
|
# NAT_TABLE_MAX # maximum number of NAT state entries
|
|
# NAT_TABLE_SZ # size of NAT state hash table
|
|
# NAT_SIZE # size of nat rules hash table
|
|
# RDR_SIZE # size of rdr rules hash table
|
|
# HOSTMAP_SIZE # size of hostmap hash table
|
|
|
|
CPPFLAGS+= -I$S/external/bsd/ipf
|
|
|
|
# Other options:
|
|
|
|
CPPFLAGS+= -DINET # opt_inet.h
|
|
CPPFLAGS+= -DINET6 # opt_inet.h
|
|
CPPFLAGS+= -DIPSEC # opt_ipsec.h
|
|
|
|
SRCS+= fil.c
|
|
SRCS+= ip_auth.c
|
|
SRCS+= ip_dstlist.c
|
|
SRCS+= ip_fil_netbsd.c
|
|
SRCS+= ip_frag.c
|
|
SRCS+= ip_htable.c
|
|
SRCS+= ip_log.c
|
|
SRCS+= ip_lookup.c
|
|
SRCS+= ip_nat.c
|
|
SRCS+= ip_nat6.c
|
|
SRCS+= ip_pool.c
|
|
SRCS+= ip_proxy.c
|
|
SRCS+= ip_scan.c
|
|
SRCS+= ip_state.c
|
|
SRCS+= ip_sync.c
|
|
SRCS+= ip_fil_compat.c
|
|
SRCS+= radix_ipf.c
|
|
|
|
WARNS= 3
|
|
|
|
CWARNFLAGS.clang+= -Wno-self-assign
|
|
COPTS.fil.c+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
|
|
COPTS.ip_fil_netbsd.c+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
|
|
COPTS.ip_htable.c+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
|
|
COPTS.ip_nat.c+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
|
|
COPTS.ip_nat6.c+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
|
|
COPTS.ip_proxy.c+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
|
|
COPTS.ip_state.c+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
|
|
|
|
.include <bsd.kmodule.mk>
|