Alan Somers
eb3f9a7aec
Switch wg(4) to the new if_clone KPI
...
MFC after: 2 weeks
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D37740
2023-01-09 19:54:14 -07:00
Zhenlei Huang
f948cb717f
wg: Use NET_EPOCH_DRAIN_CALLBACKS macro
...
Reviewed by: jhb, kp
Approved by: kp (mentor)
Differential Revision: https://reviews.freebsd.org/D37734
2022-12-28 23:28:15 +08:00
John Baldwin
573bd1fcf5
wg: Drop the compat shim for sbcreatecontrol().
...
I had to make a few other changes when merging the driver to stable/13
anyway, so adjusting this as well isn't really a big deal.
MFC after: 3 days
2022-11-11 14:18:48 -08:00
John Baldwin
854d066251
wg: Trim compat shims for versions older than current stable/13.
...
Reviewed by: kevans, markj, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36913
2022-10-28 13:36:13 -07:00
John Baldwin
c640d1af2c
wg: Retire now unused support.h.
...
Reviewed by: kevans, markj, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36912
2022-10-28 13:36:13 -07:00
John Baldwin
dcf581bb49
wg: Use zfree.
...
Reviewed by: kevans, markj, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36911
2022-10-28 13:36:13 -07:00
John Baldwin
e32e1a160e
wg: Use atomic(9) instead of concurrency-kit atomics.
...
Kernel sanitizers only support atomic(9) operations.
Reviewed by: kevans, markj, emaste
Reported by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36910
2022-10-28 13:36:13 -07:00
John Baldwin
744bfb2131
Import the WireGuard driver from zx2c4.com.
...
This commit brings back the driver from FreeBSD commit
f187d6dfbf 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
2022-10-28 13:36:12 -07:00