diff options
author | ae <ae@FreeBSD.org> | 2011-09-15 12:28:17 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2011-09-15 12:28:17 +0000 |
commit | ef85f238b076f52c5f4d9c3d53a572ed14612fe6 (patch) | |
tree | ea8db0ab5404c97b7752f0849f1b9e592a441fd1 /sys/modules | |
parent | cc85bd26ed5a93ccdce6c1804dde9cc6877263e0 (diff) | |
download | FreeBSD-src-ef85f238b076f52c5f4d9c3d53a572ed14612fe6.zip FreeBSD-src-ef85f238b076f52c5f4d9c3d53a572ed14612fe6.tar.gz |
Add IPv6 support to the ng_ipfw(4) [1]. Also add ifdefs to be able
build it with and without INET/INET6 support.
Submitted by: Alexander V. Chernikov <melifaro at yandex-team.ru> [1]
Tested by: Alexander V. Chernikov <melifaro at yandex-team.ru> [1]
Approved by: re (bz)
MFC after: 2 weeks
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/netgraph/ipfw/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/modules/netgraph/ipfw/Makefile b/sys/modules/netgraph/ipfw/Makefile index b40abcf..cc3f0f2 100644 --- a/sys/modules/netgraph/ipfw/Makefile +++ b/sys/modules/netgraph/ipfw/Makefile @@ -1,6 +1,20 @@ # $FreeBSD$ +.include <bsd.own.mk> + KMOD= ng_ipfw -SRCS= ng_ipfw.c +SRCS= ng_ipfw.c opt_inet.h opt_inet6.h + +.if !defined(KERNBUILDDIR) + +.if ${MK_INET_SUPPORT} != "no" +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif +.if ${MK_INET6_SUPPORT} != "no" +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif .include <bsd.kmod.mk> |