“Aaron Li imported the WireGuard “WG” driver from the FreeBSD source tree. Over a few dozen commits was then adjusted to adapt better to the DragonFlyBSD kernel.”
“With all the commits today, the WireGuard driver now appears to be in a working state on DragonFlyBSD.”
This likely interfaces with the BSD network stack at a level above where device drivers do; it’s probably not easily ported, I would guess. A glance through the source code seems to confirm that assumption.
Porting a userspace Wireguard implementation using the new TUN/TAP system is probably the easiest way to start with Wireguard on Haiku.
I agree, source code has interesting things for Haiku!