Unbreak ip_mroute_mod
This commit is contained in:
parent
1a8b27c035
commit
fffcbbcd94
@ -1,7 +1,5 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
# XXX present but broken: ip_mroute_mod
|
|
||||||
|
|
||||||
.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT)
|
.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT)
|
||||||
_random= random
|
_random= random
|
||||||
.endif
|
.endif
|
||||||
@ -36,6 +34,7 @@ SUBDIR= 3dfx \
|
|||||||
if_tap \
|
if_tap \
|
||||||
if_tun \
|
if_tun \
|
||||||
ip6fw \
|
ip6fw \
|
||||||
|
ip_mroute_mod \
|
||||||
ipfilter \
|
ipfilter \
|
||||||
ipfw \
|
ipfw \
|
||||||
ispfw \
|
ispfw \
|
||||||
|
@ -3,9 +3,20 @@
|
|||||||
.PATH: ${.CURDIR}/../../netinet
|
.PATH: ${.CURDIR}/../../netinet
|
||||||
|
|
||||||
KMOD= ip_mroute
|
KMOD= ip_mroute
|
||||||
SRCS= ip_mroute.c
|
SRCS= ip_mroute.c opt_mrouting.h opt_random_ip_id.h
|
||||||
NOMAN=
|
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>
|
.include <bsd.kmod.mk>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user