iphlpapi

package
v0.0.0-...-846a3b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIGetBestRoute

func APIGetBestRoute(dwDestAddr net.IP, dwSourceAddr net.IP, bestRoute *APIMibIPForwardRow) (err error)

APIGetBestRoute - The NotifyRouteChange function causes a notification to be sent to the caller whenever a change occurs in the IPv4 routing table. https://docs.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getbestroute

func APINotifyRouteChange

func APINotifyRouteChange(handle *syscall.Handle, overlapped *syscall.Overlapped) (err error)

APINotifyRouteChange - The GetBestRoute function retrieves the best route to the specified destination IP address. https://docs.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-notifyroutechange

func CancelIPChangeNotify

func CancelIPChangeNotify(overlapped *syscall.Overlapped) (err error)

CancelIPChangeNotify - The CancelIPChangeNotify function cancels notification of IPv4 address and route changes previously requested with successful calls to the NotifyAddrChange or NotifyRouteChange functions. https://docs.microsoft.com/ru-ru/windows/win32/api/iphlpapi/nf-iphlpapi-cancelipchangenotify

func GetExtendedTCPTable

func GetExtendedTCPTable(tcpTable []byte, pdwSize *uint32, order bool, afType int, tableClass TCPTableClass) (r syscall.Errno, err error)

GetExtendedTCPTable - function retrieves a table that contains a list of TCP endpoints available to the application. https://docs.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getextendedtcptable

func GetIPForwardTable

func GetIPForwardTable(pIPForwardTable []byte, pdwSize *uint32, bOrder bool) (r syscall.Errno, err error)

GetIPForwardTable - The GetIpForwardTable function retrieves the IPv4 routing table. https://docs.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getipforwardtable

Types

type APIMibIPForwardRow

type APIMibIPForwardRow struct {
	DwForwardDest      [4]byte
	DwForwardMask      [4]byte
	DwForwardPolicy    uint32
	DwForwardNextHop   [4]byte
	DwForwardIfIndex   uint32
	ForwardType        uint32
	ForwardProto       uint32
	DwForwardAge       uint32
	DwForwardNextHopAS uint32
	DwForwardMetric1   uint32
	DwForwardMetric2   uint32
	DwForwardMetric3   uint32
	DwForwardMetric4   uint32
	DwForwardMetric5   uint32
}

APIMibIPForwardRow - MIB_IPFORWARDROW structure. https://docs.microsoft.com/ru-ru/windows/win32/api/ipmib/ns-ipmib-mib_ipforwardrow

type MibTCPRowOwnerPid

type MibTCPRowOwnerPid struct {
	DwState      uint32
	DwLocalAddr  [4]byte //uint32
	DwLocalPort  [4]byte //uint32
	DwRemoteAddr [4]byte //uint32
	DwRemotePort [4]byte //uint32
	DwOwningPid  uint32
}

MibTCPRowOwnerPid - The MIB_TCPROW_OWNER_PID structure contains information that describes an IPv4 TCP connection with IPv4 addresses, ports used by the TCP connection, and the specific process ID (PID) associated with connection. https://docs.microsoft.com/en-us/windows/win32/api/tcpmib/ns-tcpmib-mib_tcprow_owner_pid

type TCPTableClass

type TCPTableClass int

TCPTableClass - The TCP_TABLE_CLASS enumeration defines the set of values used to indicate the type of table returned by calls to GetExtendedTcpTable. https://docs.microsoft.com/en-us/windows/win32/api/iprtrmib/ne-iprtrmib-tcp_table_class

const (
	TCPTableBasicListener          TCPTableClass = iota
	TCPTableBasicConnections       TCPTableClass = iota
	TCPTableBasicAll               TCPTableClass = iota
	TCPTableOwnerPidListener       TCPTableClass = iota
	TCPTableOwnerPidConnections    TCPTableClass = iota
	TCPTableOwnerPidAll            TCPTableClass = iota
	TCPTableOwnerModuleListener    TCPTableClass = iota
	TCPTableOwnerModuleConnections TCPTableClass = iota
	TCPTableOwnerMuduleAll         TCPTableClass = iota
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL