diff options
| author | 2025-06-25 21:57:03 -0500 | |
|---|---|---|
| committer | 2026-03-24 03:27:26 +0100 | |
| commit | 025f00454fec8fd0816607a28c1ee6cd9a54b134 (patch) | |
| tree | b1946aaf367afb06f3f1e8aac8831fa5671e66c1 | |
| parent | ipc: windows: support incremental allowed ips updates (diff) | |
| download | wireguard-tools-master.tar.xz wireguard-tools-master.zip | |
The FreeBSD kernel flags will match what we define here in wg(8), just
pass them through and let the kernel sort it out.
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| -rw-r--r-- | src/ipc-freebsd.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ipc-freebsd.h b/src/ipc-freebsd.h index 0060375..e9ccd88 100644 --- a/src/ipc-freebsd.h +++ b/src/ipc-freebsd.h @@ -307,11 +307,8 @@ static int kernel_set_device(struct wgdevice *dev) nvl_aips[j] = nvlist_create(0); if (!nvl_aips[j]) goto err_peer; - if (aip->flags) { - //TODO: implement me - ret = -EOPNOTSUPP; - goto err_peer; - } + if (aip->flags) + nvlist_add_number(nvl_aips[j], "flags", aip->flags); nvlist_add_number(nvl_aips[j], "cidr", aip->cidr); if (aip->family == AF_INET) nvlist_add_binary(nvl_aips[j], "ipv4", &aip->ip4, sizeof(aip->ip4)); |
