aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/ip_mroute_mod
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>2001-07-25 20:15:17 +0000
committerBill Fenner <fenner@FreeBSD.org>2001-07-25 20:15:17 +0000
commitfffcbbcd946a672d54ebc1ae4a565be3506d37c9 (patch)
tree033d2bfab7200ef244f372e8c6b31433dac88eb3 /sys/modules/ip_mroute_mod
parent1a8b27c03505599546732c7ce13ff9472ae5e4e9 (diff)
Notes
Diffstat (limited to 'sys/modules/ip_mroute_mod')
-rw-r--r--sys/modules/ip_mroute_mod/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/modules/ip_mroute_mod/Makefile b/sys/modules/ip_mroute_mod/Makefile
index cbe04ab4520ac..d1e2d16dc339b 100644
--- a/sys/modules/ip_mroute_mod/Makefile
+++ b/sys/modules/ip_mroute_mod/Makefile
@@ -3,9 +3,20 @@
.PATH: ${.CURDIR}/../../netinet
KMOD= ip_mroute
-SRCS= ip_mroute.c
+SRCS= ip_mroute.c opt_mrouting.h opt_random_ip_id.h
NOMAN=
-CFLAGS+= -DMROUTE_LKM -DMROUTING
+CFLAGS+= -DMROUTE_KLD
+
+RANDOM_IP_ID?= 0 # 0/1 - should jibe with kernel configuration
+
+opt_mrouting.h:
+ echo "#define MROUTING 1" > ${.TARGET}
+
+opt_random_ip_id.h:
+ touch ${.TARGET}
+.if ${RANDOM_IP_ID} > 0
+ echo "#define RANDOM_IP_ID 1" > ${.TARGET}
+.endif
.include <bsd.kmod.mk>