mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-03-11 06:40:52 +00:00

This cleans up the mess to configure an IP address on a tun(4) device. Handrolling a hardcoded ioctl(2) request is far from perfect, but Go (golang.org/sys/unix) is to blame here. Tested on OpenBSD 7.6 -current where yggdrasil now drives the interface would use of ifconfig or other helpers.