Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, ...) (errcode error)
- func GetSystemDirectory() string
- type IpAdapterAddresses
- type IpAdapterAnycastAddress
- type IpAdapterDnsServerAdapter
- type IpAdapterGatewayAddress
- type IpAdapterMulticastAddress
- type IpAdapterPrefix
- type IpAdapterUnicastAddress
- type IpAdapterWinsServerAddress
- type SocketAddress
Constants ¶
View Source
const ( IfOperStatusUp = 1 IfOperStatusDown = 2 IfOperStatusTesting = 3 IfOperStatusUnknown = 4 IfOperStatusDormant = 5 IfOperStatusNotPresent = 6 IfOperStatusLowerLayerDown = 7 )
View Source
const ( GAA_FLAG_INCLUDE_PREFIX = 0x00000010 GAA_FLAG_INCLUDE_GATEWAYS = 0x0080 )
Variables ¶
This section is empty.
Functions ¶
func GetAdaptersAddresses ¶
func GetSystemDirectory ¶
func GetSystemDirectory() string
Types ¶
type IpAdapterAddresses ¶
type IpAdapterAddresses struct { Length uint32 IfIndex uint32 Next *IpAdapterAddresses AdapterName *byte FirstUnicastAddress *IpAdapterUnicastAddress FirstAnycastAddress *IpAdapterAnycastAddress FirstMulticastAddress *IpAdapterMulticastAddress FirstDnsServerAddress *IpAdapterDnsServerAdapter DnsSuffix *uint16 Description *uint16 FriendlyName *uint16 PhysicalAddress [syscall.MAX_ADAPTER_ADDRESS_LENGTH]byte PhysicalAddressLength uint32 Flags uint32 Mtu uint32 IfType uint32 OperStatus uint32 Ipv6IfIndex uint32 ZoneIndices [16]uint32 FirstPrefix *IpAdapterPrefix TransmitLinkSpeed uint64 ReceiveLinkSpeed uint64 FirstWinsServerAddress *IpAdapterWinsServerAddress FirstGatewayAddress *IpAdapterGatewayAddress }
type IpAdapterAnycastAddress ¶
type IpAdapterAnycastAddress struct { Length uint32 Flags uint32 Next *IpAdapterAnycastAddress Address SocketAddress }
type IpAdapterDnsServerAdapter ¶
type IpAdapterDnsServerAdapter struct { Length uint32 Reserved uint32 Next *IpAdapterDnsServerAdapter Address SocketAddress }
type IpAdapterGatewayAddress ¶
type IpAdapterGatewayAddress struct { Length uint32 Reserved uint32 Next *IpAdapterGatewayAddress Address SocketAddress }
type IpAdapterMulticastAddress ¶
type IpAdapterMulticastAddress struct { Length uint32 Flags uint32 Next *IpAdapterMulticastAddress Address SocketAddress }
type IpAdapterPrefix ¶
type IpAdapterPrefix struct { Length uint32 Flags uint32 Next *IpAdapterPrefix Address SocketAddress PrefixLength uint32 }
type IpAdapterUnicastAddress ¶
type IpAdapterWinsServerAddress ¶
type IpAdapterWinsServerAddress struct { Length uint32 Reserved uint32 Next *IpAdapterWinsServerAddress Address SocketAddress }
type SocketAddress ¶
type SocketAddress struct { Sockaddr *syscall.RawSockaddrAny SockaddrLength int32 }
Click to show internal directories.
Click to hide internal directories.