]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
ipc: freebsd: use AF_LOCAL for the control socket
authorKyle Evans <kevans@FreeBSD.org>
Sat, 12 Apr 2025 02:46:03 +0000 (21:46 -0500)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 20 May 2025 19:59:23 +0000 (21:59 +0200)
commit13d190bc72ce1753fbf0d1d6828677d1bc743807
tree7f717a77f4abe91dcfb793d6b843602c74730169
parent13f4ac4cb74b5a833fa7f825ba785b1e5774e84f
ipc: freebsd: use AF_LOCAL for the control socket

AF_INET assumes that IPv4 is built into the kernel, but it's completely
valid to build a kernel without it.  unix(4) sockets, on the other hand,
are not-optional in the kernel build.  Given that interface ioctls can
be invoked on any kind of socket, switch to the safer one to avoid
breaking on IPv6-only kernels.

Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/ipc-freebsd.h