aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2017-02-06 08:49:57 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2017-02-06 08:49:57 +0000
commitfcf596178b5f2be36424ecbc1b6a3224b29c91d2 (patch)
tree1414e21902027eab50c7a3241e4b14dac39d42e9 /sys/modules
parent39f8282b4846de6cb20efe49c32b41b635fd3e68 (diff)
Notes
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile6
-rw-r--r--sys/modules/ipsec/Makefile14
-rw-r--r--sys/modules/tcp/tcpmd5/Makefile11
3 files changed, 31 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 99604d1418fba..20f23387648fc 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -177,6 +177,7 @@ SUBDIR= \
ip6_mroute_mod \
ip_mroute_mod \
${_ips} \
+ ${_ipsec} \
${_ipw} \
${_ipwfw} \
${_isci} \
@@ -357,6 +358,7 @@ SUBDIR= \
sysvipc \
${_ti} \
${_tcp_fastpath} \
+ ${_tcpmd5} \
tests/framework \
tests/callout_test \
tl \
@@ -447,6 +449,10 @@ _toecore= toecore
_if_enc= if_enc
_if_gif= if_gif
_if_gre= if_gre
+.if ${MK_IPSEC_SUPPORT} != "no"
+_ipsec= ipsec
+_tcpmd5= tcp/tcpmd5
+.endif
.endif
.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
diff --git a/sys/modules/ipsec/Makefile b/sys/modules/ipsec/Makefile
new file mode 100644
index 0000000000000..ed061f317768b
--- /dev/null
+++ b/sys/modules/ipsec/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netipsec
+
+KMOD= ipsec
+SRCS= if_ipsec.c ipsec.c ipsec_input.c ipsec_mbuf.c ipsec_mod.c \
+ ipsec_output.c xform_ah.c xform_esp.c xform_ipcomp.c \
+ opt_inet.h opt_inet6.h opt_ipsec.h opt_sctp.h
+SRCS.INET= udpencap.c
+
+opt_ipsec.h:
+ @echo "#define IPSEC_SUPPORT 1" > ${.TARGET}
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/tcp/tcpmd5/Makefile b/sys/modules/tcp/tcpmd5/Makefile
new file mode 100644
index 0000000000000..1337f1d5fd2d8
--- /dev/null
+++ b/sys/modules/tcp/tcpmd5/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../netipsec
+
+KMOD= tcpmd5
+SRCS= xform_tcp.c opt_inet.h opt_inet6.h opt_ipsec.h
+
+opt_ipsec.h:
+ @echo "#define IPSEC_SUPPORT 1" > ${.TARGET}
+
+.include <bsd.kmod.mk>