Skip to content

Commit 384c92a

Browse files
committed
windows: add flags for GetAdaptersAddresses
1 parent ee0e627 commit 384c92a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

windows/types_windows.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,21 @@ const (
20032003
MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20
20042004
)
20052005

2006-
const GAA_FLAG_INCLUDE_PREFIX = 0x00000010
2006+
// Flags for GetAdaptersAddresses, see
2007+
// https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersaddresses.
2008+
const (
2009+
GAA_FLAG_SKIP_UNICAST = 0x1
2010+
GAA_FLAG_SKIP_ANYCAST = 0x2
2011+
GAA_FLAG_SKIP_MULTICAST = 0x4
2012+
GAA_FLAG_SKIP_DNS_SERVER = 0x8
2013+
GAA_FLAG_INCLUDE_PREFIX = 0x10
2014+
GAA_FLAG_SKIP_FRIENDLY_NAME = 0x20
2015+
GAA_FLAG_INCLUDE_WINS_INFO = 0x40
2016+
GAA_FLAG_INCLUDE_GATEWAYS = 0x80
2017+
GAA_FLAG_INCLUDE_ALL_INTERFACES = 0x100
2018+
GAA_FLAG_INCLUDE_ALL_COMPARTMENTS = 0x200
2019+
GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER = 0x400
2020+
)
20072021

20082022
const (
20092023
IF_TYPE_OTHER = 1

0 commit comments

Comments
 (0)