netlib

package
v0.0.0-...-030bf4b Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkAdapterInfo

type NetworkAdapterInfo struct {
	*net.Interface

	AdapterIndex  int
	AdapterHandle A.Handle
	AdapterMedium uint32
}

func GetBestInterface

func GetBestInterface(adapters []*NetworkAdapterInfo, ipStr string) (*NetworkAdapterInfo, error)

GetBestInterface determines the best network interface for a given IP address. It uses a list of network adapter information to find the matching adapter.

func GetNetworkAdapterInfo

func GetNetworkAdapterInfo(api *A.NdisApi) ([]*NetworkAdapterInfo, *A.TcpAdapterList, error)

GetNetworkAdapterInfo retrieves the combined network adapter information.

Jump to

Keyboard shortcuts

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