mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 16:47:27 -04:00
windows: add remaining IpAdapterAddresses fields
Change-Id: I373baee2c82c376f4718d9296ae19ba8a28a2693 Reviewed-on: https://go-review.googlesource.com/c/sys/+/415814 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Dan Kortschak <dan@kortschak.io> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
+60
-21
@@ -160,6 +160,10 @@ const (
|
|||||||
|
|
||||||
MAX_COMPUTERNAME_LENGTH = 15
|
MAX_COMPUTERNAME_LENGTH = 15
|
||||||
|
|
||||||
|
MAX_DHCPV6_DUID_LENGTH = 130
|
||||||
|
|
||||||
|
MAX_DNS_SUFFIX_STRING_LENGTH = 256
|
||||||
|
|
||||||
TIME_ZONE_ID_UNKNOWN = 0
|
TIME_ZONE_ID_UNKNOWN = 0
|
||||||
TIME_ZONE_ID_STANDARD = 1
|
TIME_ZONE_ID_STANDARD = 1
|
||||||
|
|
||||||
@@ -2000,27 +2004,62 @@ type IpAdapterPrefix struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type IpAdapterAddresses struct {
|
type IpAdapterAddresses struct {
|
||||||
Length uint32
|
Length uint32
|
||||||
IfIndex uint32
|
IfIndex uint32
|
||||||
Next *IpAdapterAddresses
|
Next *IpAdapterAddresses
|
||||||
AdapterName *byte
|
AdapterName *byte
|
||||||
FirstUnicastAddress *IpAdapterUnicastAddress
|
FirstUnicastAddress *IpAdapterUnicastAddress
|
||||||
FirstAnycastAddress *IpAdapterAnycastAddress
|
FirstAnycastAddress *IpAdapterAnycastAddress
|
||||||
FirstMulticastAddress *IpAdapterMulticastAddress
|
FirstMulticastAddress *IpAdapterMulticastAddress
|
||||||
FirstDnsServerAddress *IpAdapterDnsServerAdapter
|
FirstDnsServerAddress *IpAdapterDnsServerAdapter
|
||||||
DnsSuffix *uint16
|
DnsSuffix *uint16
|
||||||
Description *uint16
|
Description *uint16
|
||||||
FriendlyName *uint16
|
FriendlyName *uint16
|
||||||
PhysicalAddress [syscall.MAX_ADAPTER_ADDRESS_LENGTH]byte
|
PhysicalAddress [syscall.MAX_ADAPTER_ADDRESS_LENGTH]byte
|
||||||
PhysicalAddressLength uint32
|
PhysicalAddressLength uint32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Mtu uint32
|
Mtu uint32
|
||||||
IfType uint32
|
IfType uint32
|
||||||
OperStatus uint32
|
OperStatus uint32
|
||||||
Ipv6IfIndex uint32
|
Ipv6IfIndex uint32
|
||||||
ZoneIndices [16]uint32
|
ZoneIndices [16]uint32
|
||||||
FirstPrefix *IpAdapterPrefix
|
FirstPrefix *IpAdapterPrefix
|
||||||
/* more fields might be present here. */
|
TransmitLinkSpeed uint64
|
||||||
|
ReceiveLinkSpeed uint64
|
||||||
|
FirstWinsServerAddress *IpAdapterWinsServerAddress
|
||||||
|
FirstGatewayAddress *IpAdapterGatewayAddress
|
||||||
|
Ipv4Metric uint32
|
||||||
|
Ipv6Metric uint32
|
||||||
|
Luid uint64
|
||||||
|
Dhcpv4Server SocketAddress
|
||||||
|
CompartmentId uint32
|
||||||
|
NetworkGuid GUID
|
||||||
|
ConnectionType uint32
|
||||||
|
TunnelType uint32
|
||||||
|
Dhcpv6Server SocketAddress
|
||||||
|
Dhcpv6ClientDuid [MAX_DHCPV6_DUID_LENGTH]byte
|
||||||
|
Dhcpv6ClientDuidLength uint32
|
||||||
|
Dhcpv6Iaid uint32
|
||||||
|
FirstDnsSuffix *IpAdapterDNSSuffix
|
||||||
|
}
|
||||||
|
|
||||||
|
type IpAdapterWinsServerAddress struct {
|
||||||
|
Length uint32
|
||||||
|
Reserved uint32
|
||||||
|
Next *IpAdapterWinsServerAddress
|
||||||
|
Address SocketAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
type IpAdapterGatewayAddress struct {
|
||||||
|
Length uint32
|
||||||
|
Reserved uint32
|
||||||
|
Next *IpAdapterGatewayAddress
|
||||||
|
Address SocketAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
type IpAdapterDNSSuffix struct {
|
||||||
|
Next *IpAdapterDNSSuffix
|
||||||
|
String [MAX_DNS_SUFFIX_STRING_LENGTH]uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
Reference in New Issue
Block a user