Documentation
¶
Index ¶
- func FindFirstPhysicalAdapterWithDefaultRoute(whost *host.WmiHost) (adapter *netadapter.NetworkAdapter, err error)
- func GetNetworkAdapterByInterfaceIndex(whost *host.WmiHost, ifindex int32) (adapter *netadapter.NetworkAdapter, err error)
- func GetNetworkAdapterByName(whost *host.WmiHost, name string) (adapter *netadapter.NetworkAdapter, err error)
- func GetNetworkRouteByDestinationAddress(whost *host.WmiHost, destinationPrefix string) (netroutes netroute.NetworkRouteCollection, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindFirstPhysicalAdapterWithDefaultRoute ¶
func FindFirstPhysicalAdapterWithDefaultRoute(whost *host.WmiHost) (adapter *netadapter.NetworkAdapter, err error)
FindDefaultExternalAdapter - finds the first physical adapter which has a default gateway
func GetNetworkAdapterByInterfaceIndex ¶
func GetNetworkAdapterByInterfaceIndex(whost *host.WmiHost, ifindex int32) (adapter *netadapter.NetworkAdapter, err error)
GetNetworkAdapterByName
func GetNetworkAdapterByName ¶
func GetNetworkAdapterByName(whost *host.WmiHost, name string) (adapter *netadapter.NetworkAdapter, err error)
GetNetworkAdapterByName
func GetNetworkRouteByDestinationAddress ¶
func GetNetworkRouteByDestinationAddress(whost *host.WmiHost, destinationPrefix string) (netroutes netroute.NetworkRouteCollection, err error)
GetNetworkRouteByDestinationAddress
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.