Module Name:    src
Committed By:   pgoyette
Date:           Thu Jun  9 04:44:19 UTC 2016

Modified Files:
        src/sys/modules: Makefile
Added Files:
        src/sys/modules/ipl: Makefile

Log Message:
New module for ipl (aka ipfilter).


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/ipl/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/modules/Makefile
diff -u src/sys/modules/Makefile:1.166 src/sys/modules/Makefile:1.167
--- src/sys/modules/Makefile:1.166	Tue Jun  7 01:06:27 2016
+++ src/sys/modules/Makefile	Thu Jun  9 04:44:18 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.166 2016/06/07 01:06:27 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.167 2016/06/09 04:44:18 pgoyette Exp $
 
 .include <bsd.own.mk>
 
@@ -50,6 +50,7 @@ SUBDIR+=	if_axen
 SUBDIR+=	if_npflog
 SUBDIR+=	if_smsc
 SUBDIR+=	iic
+SUBDIR+=	ipl
 SUBDIR+=	kernfs
 SUBDIR+=	layerfs
 SUBDIR+=	lfs

Added files:

Index: src/sys/modules/ipl/Makefile
diff -u /dev/null src/sys/modules/ipl/Makefile:1.1
--- /dev/null	Thu Jun  9 04:44:19 2016
+++ src/sys/modules/ipl/Makefile	Thu Jun  9 04:44:19 2016
@@ -0,0 +1,57 @@
+#	$NetBSD: Makefile,v 1.1 2016/06/09 04:44:19 pgoyette 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
+
+.include <bsd.kmodule.mk>

Reply via email to