Skip to content

Commit 215fa6b

Browse files
committed
driver: add new allowedip flag
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent cda1735 commit 215fa6b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

driver/configuration_windows.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ const (
2020
AdapterStateUp AdapterState = 1
2121
)
2222

23+
type AllowedIpFlag uint32
24+
25+
const (
26+
AllowedIpRemove AllowedIpFlag = 1 << 0
27+
)
28+
2329
type AllowedIP struct {
2430
Address [16]byte
2531
AddressFamily winipcfg.AddressFamily
2632
Cidr uint8
27-
_ [4]byte
33+
Flags AllowedIpFlag
2834
}
2935

3036
type PeerFlag uint32

0 commit comments

Comments
 (0)