3e83ac6653
It is built in the same module as IPv4 multicast forwarding, i.e. ip_mroute.ko, if and only if IPv6 support is enabled for loadable modules. Export IPv6 forwarding structs to userland netstat(1) via sysctl(9).
27 lines
541 B
Makefile
27 lines
541 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
|
|
|
|
KMOD= ip_mroute
|
|
|
|
SRCS= ip_mroute.c
|
|
SRCS+= opt_inet.h opt_mac.h opt_mrouting.h
|
|
SRCS+= opt_inet6.h
|
|
|
|
.if !defined(MK_INET6_SUPPORT) || ${MK_INET6_SUPPORT} != "no"
|
|
SRCS+= ip6_mroute.c
|
|
.endif
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_inet.h:
|
|
echo "#define INET 1" > ${.TARGET}
|
|
opt_mrouting.h:
|
|
echo "#define MROUTING 1" > ${.TARGET}
|
|
.if !defined(MK_INET6_SUPPORT) || ${MK_INET6_SUPPORT} != "no"
|
|
opt_inet6.h:
|
|
echo "#define INET6 1" > ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|