aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/driver
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2026-03-24 02:42:10 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2026-03-24 03:24:55 +0100
commit0f52c8d37528e2a768a2f63472656bc93bc4546f (patch)
treedfa91a24f94eebac1b0897d5e3ead167fb91bbf2 /driver
parentfetcher: account for potentially mangled title bar text (diff)
downloadwireguard-windows-master.tar.xz
wireguard-windows-master.zip
driver: add new allowedip flagHEADmaster
This also involves bumping wireguard-tools so that wg.exe is up to date. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'driver')
-rw-r--r--driver/configuration_windows.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/driver/configuration_windows.go b/driver/configuration_windows.go
index d3fa6a14..e8cf0955 100644
--- a/driver/configuration_windows.go
+++ b/driver/configuration_windows.go
@@ -20,11 +20,17 @@ const (
AdapterStateUp AdapterState = 1
)
+type AllowedIpFlag uint32
+
+const (
+ AllowedIpRemove AllowedIpFlag = 1 << 0
+)
+
type AllowedIP struct {
Address [16]byte
AddressFamily winipcfg.AddressFamily
Cidr uint8
- _ [4]byte
+ Flags AllowedIpFlag
}
type PeerFlag uint32