diff options
| author | 2025-06-25 21:57:03 -0500 | |
|---|---|---|
| committer | 2025-06-25 22:38:17 -0500 | |
| commit | c097a2946d9c2629891662d11c6bb3260b683b2a (patch) | |
| tree | 7250b4560b50874601e9cd5817c2d771419344f2 | |
| parent | wg-quick: use addconf instead of setconf (diff) | |
| download | wireguard-tools-ke/fbsd_aip.tar.xz wireguard-tools-ke/fbsd_aip.zip | |
wg: ipc: add allowed-ip flags support for FreeBSDke/fbsd_aip
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>
| -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 58e5e71..6907703 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)); |
