Skip to content

Commit 3b358c7

Browse files
committed
Add missing IpAdapterAddresses fields
1 parent 6de0c4b commit 3b358c7

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

src/internal/syscall/windows/syscall_windows.go

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -116,26 +116,30 @@ type IpAdapterGatewayAddress struct {
116116
}
117117

118118
type IpAdapterAddresses struct {
119-
Length uint32
120-
IfIndex uint32
121-
Next *IpAdapterAddresses
122-
AdapterName *byte
123-
FirstUnicastAddress *IpAdapterUnicastAddress
124-
FirstAnycastAddress *IpAdapterAnycastAddress
125-
FirstMulticastAddress *IpAdapterMulticastAddress
126-
FirstDnsServerAddress *IpAdapterDnsServerAdapter
127-
DnsSuffix *uint16
128-
Description *uint16
129-
FriendlyName *uint16
130-
PhysicalAddress [syscall.MAX_ADAPTER_ADDRESS_LENGTH]byte
131-
PhysicalAddressLength uint32
132-
Flags uint32
133-
Mtu uint32
134-
IfType uint32
135-
OperStatus uint32
136-
Ipv6IfIndex uint32
137-
ZoneIndices [16]uint32
138-
FirstPrefix *IpAdapterPrefix
119+
Length uint32
120+
IfIndex uint32
121+
Next *IpAdapterAddresses
122+
AdapterName *byte
123+
FirstUnicastAddress *IpAdapterUnicastAddress
124+
FirstAnycastAddress *IpAdapterAnycastAddress
125+
FirstMulticastAddress *IpAdapterMulticastAddress
126+
FirstDnsServerAddress *IpAdapterDnsServerAdapter
127+
DnsSuffix *uint16
128+
Description *uint16
129+
FriendlyName *uint16
130+
PhysicalAddress [syscall.MAX_ADAPTER_ADDRESS_LENGTH]byte
131+
PhysicalAddressLength uint32
132+
Flags uint32
133+
Mtu uint32
134+
IfType uint32
135+
OperStatus uint32
136+
Ipv6IfIndex uint32
137+
ZoneIndices [16]uint32
138+
FirstPrefix *IpAdapterPrefix
139+
TransmitLinkSpeed uint64
140+
ReceiveLinkSpeed uint64
141+
FirstWinsServerAddress *IpAdapterWinsServerAddress
142+
FirstGatewayAddress *IpAdapterGatewayAddress
139143
/* more fields might be present here. */
140144
}
141145

0 commit comments

Comments
 (0)