opnsense-src/contrib/wireguard-tools
Kyle Evans 963dda014e wg: ipc: add allowed-ip flags support for FreeBSD
For $reasons, we can't rely on flags in wireguard-tools for the kernel
side of WireGuard.  Provide a mapping function that uses flags from the
kernel that we're building against and fail the operation if we made it
to the end without turning some wg(8) flag off.

Signed-off-by: Kyle Evans <kevans@FreeBSD.org>

Reviewed by:	ivy (previous version), Jason A. Donenfeld, jhb

(cherry picked from commit f6d9e22982)
2025-07-28 10:14:11 +02:00
..
man Merge commit '2a7e45eef31292cf9dd82caf3346eb2acb5b6225' 2025-07-28 10:13:57 +02:00
.gitignore Merge commit '93bf91b4012a28610672d2266366dfa0a663b70f' into HEAD 2022-11-04 22:46:21 -05:00
config.c Merge commit '2a7e45eef31292cf9dd82caf3346eb2acb5b6225' 2025-07-28 10:13:57 +02:00
config.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
containers.h Merge commit '2a7e45eef31292cf9dd82caf3346eb2acb5b6225' 2025-07-28 10:13:57 +02:00
ctype.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
curve25519-fiat32.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
curve25519-hacl64.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
curve25519.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
curve25519.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
encoding.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
encoding.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
genkey.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
ipc-freebsd.h wg: ipc: add allowed-ip flags support for FreeBSD 2025-07-28 10:14:11 +02:00
ipc-uapi-unix.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
ipc-uapi.h Merge commit '2a7e45eef31292cf9dd82caf3346eb2acb5b6225' 2025-07-28 10:13:57 +02:00
ipc.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
ipc.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
pubkey.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
set.c Merge commit '2a7e45eef31292cf9dd82caf3346eb2acb5b6225' 2025-07-28 10:13:57 +02:00
setconf.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
show.c Merge commit '2a7e45eef31292cf9dd82caf3346eb2acb5b6225' 2025-07-28 10:13:57 +02:00
showconf.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
subcommands.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
terminal.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
terminal.h Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00
version.h Merge commit '2a7e45eef31292cf9dd82caf3346eb2acb5b6225' 2025-07-28 10:13:57 +02:00
wg.c Add 'contrib/wireguard-tools/' from commit '7e00bf8773b93a2a3ee28dba2710d2ae443989f1' 2022-10-28 22:05:14 -05:00