aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/Makefile
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-10-28 20:36:12 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-10-28 20:36:12 +0000
commit744bfb213144c63cbaf38d91a1c4f7aebb9b9fbc (patch)
tree668f485d546b43d129c21513afccdfc2cc30fd3c /sys/modules/Makefile
parent9e0aaedd704ee8a040ecb1d1aadf0bd75ed4dc09 (diff)
Import the WireGuard driver from zx2c4.com.
This commit brings back the driver from FreeBSD commit f187d6dfbf633665ba6740fe22742aec60ce02a2 plus subsequent fixes from upstream. Relative to upstream this commit includes a few other small fixes such as additional INET and INET6 #ifdef's, #include cleanups, and updates for recent API changes in main. Reviewed by: pauamma, gbe, kevans, emaste Obtained from: git@git.zx2c4.com:wireguard-freebsd @ 3cc22b2 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36909
Diffstat (limited to 'sys/modules/Makefile')
-rw-r--r--sys/modules/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 6f718acab38b..00afbffb1baf 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -164,6 +164,7 @@ SUBDIR= \
if_tuntap \
if_vlan \
if_vxlan \
+ ${_if_wg} \
iflib \
${_igc} \
imgact_binmisc \
@@ -449,6 +450,9 @@ _toecore= toecore
_if_enc= if_enc
_if_gif= if_gif
_if_gre= if_gre
+.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
+_if_wg= if_wg
+.endif
_ipfw_pmod= ipfw_pmod
.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC}
_ipsec= ipsec