This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
wt_ip_adapter_addresses_lh_386.go
56 lines (51 loc) · 2.59 KB
/
wt_ip_adapter_addresses_lh_386.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
*/
package winipcfg
import "golang.org/x/sys/windows"
// https://docs.microsoft.com/en-us/windows/desktop/api/iptypes/ns-iptypes-_ip_adapter_addresses_lh
// IP_ADAPTER_ADDRESSES_LH defined in iptypes.h
type wtIpAdapterAddressesLh struct {
Length uint32 // Windows type: ULONG
IfIndex uint32 // Windows type: IF_INDEX
Next *wtIpAdapterAddressesLh
AdapterName *uint8 // Windows type: *CHAR
FirstUnicastAddress *wtIpAdapterUnicastAddressLh
FirstAnycastAddress *wtIpAdapterAnycastAddressXp
FirstMulticastAddress *wtIpAdapterMulticastAddressXp
FirstDnsServerAddress *wtIpAdapterDnsServerAddressXp
DnsSuffix *uint16 // Windows type: *WCHAR
Description *uint16 // Windows type: *WCHAR
FriendlyName *uint16 // Windows type: *WCHAR
PhysicalAddress [max_adapter_address_length]uint8 // Windows type: [MAX_ADAPTER_ADDRESS_LENGTH]BYTE
PhysicalAddressLength uint32 // Windows type: ULONG
Flags uint32 // Windows type: ULONG
Mtu uint32 // Windows type: ULONG
IfType IfType
OperStatus IfOperStatus
Ipv6IfIndex uint32 // Windows type: IF_INDEX
ZoneIndices [16]uint32 // Windows type: [16]ULONG
FirstPrefix *wtIpAdapterPrefixXp
TransmitLinkSpeed uint64 // Windows type: ULONG64
ReceiveLinkSpeed uint64 // Windows type: ULONG64
FirstWinsServerAddress *wtIpAdapterWinsServerAddressLh
FirstGatewayAddress *wtIpAdapterGatewayAddressLh
Ipv4Metric uint32 // Windows type: ULONG
Ipv6Metric uint32 // Windows type: ULONG
Luid uint64 // Windows type: IF_LUID
Dhcpv4Server wtSocketAddress
CompartmentId uint32 // Windows type: NET_IF_COMPARTMENT_ID
NetworkGuid windows.GUID // Windows type: NET_IF_NETWORK_GUID
ConnectionType NetIfConnectionType
TunnelType TunnelType
//
// DHCP v6 Info.
//
Dhcpv6Server wtSocketAddress
Dhcpv6ClientDuid [max_dhcpv6_duid_length]uint8 // Windows type: [MAX_DHCPV6_DUID_LENGTH]BYTE
Dhcpv6ClientDuidLength uint32 // Windows type: ULONG
Dhcpv6Iaid uint32 // Windows type: ULONG
FirstDnsSuffix *wtIpAdapterDnsSuffix
offset1 [4]uint8 // Layout correction field
}