summaryrefslogtreecommitdiffstats
path: root/sys/modules/ip_mroute_mod
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2001-07-25 20:15:17 +0000
committerfenner <fenner@FreeBSD.org>2001-07-25 20:15:17 +0000
commitdd06511b3657c49b3ee3f26cb3cda8b60c31c9fc (patch)
tree033d2bfab7200ef244f372e8c6b31433dac88eb3 /sys/modules/ip_mroute_mod
parent1520807a7b81a40d6471f6cbb4a81f84ca88da50 (diff)
downloadFreeBSD-src-dd06511b3657c49b3ee3f26cb3cda8b60c31c9fc.zip
FreeBSD-src-dd06511b3657c49b3ee3f26cb3cda8b60c31c9fc.tar.gz
Unbreak ip_mroute_mod
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 cbe04ab..d1e2d16 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>
OpenPOWER on IntegriCloud