Skip to content

Commit

Permalink
windows: add flags for GetAdaptersAddresses
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Jul 12, 2024
1 parent ee0e627 commit 384c92a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion windows/types_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,21 @@ const (
MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20
)

const GAA_FLAG_INCLUDE_PREFIX = 0x00000010
// Flags for GetAdaptersAddresses, see
// https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersaddresses.
const (
GAA_FLAG_SKIP_UNICAST = 0x1
GAA_FLAG_SKIP_ANYCAST = 0x2
GAA_FLAG_SKIP_MULTICAST = 0x4
GAA_FLAG_SKIP_DNS_SERVER = 0x8
GAA_FLAG_INCLUDE_PREFIX = 0x10
GAA_FLAG_SKIP_FRIENDLY_NAME = 0x20
GAA_FLAG_INCLUDE_WINS_INFO = 0x40
GAA_FLAG_INCLUDE_GATEWAYS = 0x80
GAA_FLAG_INCLUDE_ALL_INTERFACES = 0x100
GAA_FLAG_INCLUDE_ALL_COMPARTMENTS = 0x200
GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER = 0x400
)

const (
IF_TYPE_OTHER = 1
Expand Down

0 comments on commit 384c92a

Please sign in to comment.