Versions in this module Expand all Collapse all v1 v1.18.12 Jul 2, 2024 v1.18.11 Jul 2, 2024 v1.18.10 Jul 2, 2024 v1.18.9 Jul 2, 2024 v1.18.8 Jul 2, 2024 Changes in this version + var ErrAddrNotFound = errors.New("addr not found") + var ErrIfaceNotFound = errors.New("interface not found") + func FlushCache() + func Interfaces() (map[string]*Interface, error) + func IsLocalIp(ip netip.Addr) (bool, error) + type Interface struct + Addresses []netip.Prefix + HardwareAddr net.HardwareAddr + Index int + MTU int + Name string + func ResolveInterface(name string) (*Interface, error) + func (iface *Interface) PickIPv4Addr(destination netip.Addr) (netip.Prefix, error) + func (iface *Interface) PickIPv6Addr(destination netip.Addr) (netip.Prefix, error)