netutil

package
v0.0.0-...-ab0a638 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: EUPL-1.2 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoInterface = errors.New("no such interface")
	ErrNoNextHop   = errors.New("no next hop found")
)

Functions

func InterfaceForAddr

func InterfaceForAddr(addr net.IP) (*net.Interface, error)

InterfaceForAddr returns the interface with the given address if it exists.

func NextHopForAddr

func NextHopForAddr(addr net.IP) (net.HardwareAddr, error)

NextHopForAddr returns the next hop for the given address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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