Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIfaceNotFound = errors.New("interface not found") ErrAddrNotFound = errors.New("addr not found") )
Functions ¶
func FlushCache ¶
func FlushCache()
func Interfaces ¶
Types ¶
type Interface ¶
type Interface struct { Index int MTU int Name string Addresses []netip.Prefix HardwareAddr net.HardwareAddr }
func ResolveInterface ¶
func (*Interface) PickIPv4Addr ¶
Click to show internal directories.
Click to hide internal directories.