summaryrefslogtreecommitdiffstats
path: root/sys/modules/ipdivert
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2011-06-27 12:21:11 +0000
committerglebius <glebius@FreeBSD.org>2011-06-27 12:21:11 +0000
commitb39e872c065c9d08545e06a5cde1909aaac01db6 (patch)
tree8db84ebf441129e913ff461117ed13a4f3fc54f1 /sys/modules/ipdivert
parentc7b111bbcf014d13ab4bcabf0d7e68e5f9a5e5b7 (diff)
downloadFreeBSD-src-b39e872c065c9d08545e06a5cde1909aaac01db6.zip
FreeBSD-src-b39e872c065c9d08545e06a5cde1909aaac01db6.tar.gz
Add possibility to pass IPv6 packets to a divert(4) socket.
Submitted by: sem
Diffstat (limited to 'sys/modules/ipdivert')
-rw-r--r--sys/modules/ipdivert/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/modules/ipdivert/Makefile b/sys/modules/ipdivert/Makefile
index 203b4bf..886802a 100644
--- a/sys/modules/ipdivert/Makefile
+++ b/sys/modules/ipdivert/Makefile
@@ -3,6 +3,11 @@
.PATH: ${.CURDIR}/../../netinet
KMOD= ipdivert
-SRCS= ip_divert.c
+SRCS= ip_divert.c opt_inet6.h
+
+.if !defined(KERNBUILDDIR)
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud