Documentation
¶
Overview ¶
Package netdevs maps hardware and IP addresses to local network interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MinScanInterval is the minimum time between ifmap updates. MinScanInterval = 100 * time.Millisecond )
Functions ¶
func InterfaceWithIP ¶
func InterfaceWithIP(ip IP) (*Interface, error)
InterfaceWithIP returns the local network interface configured with the specified IP address, or nil, nil if no interface is configured with the specified address.
func InterfaceWithMAC ¶
func InterfaceWithMAC(hw HardwareAddr) (*Interface, error)
InterfaceWithMAC returns the local network interface with the specified hardware address, or nil, nil if no interface has the specified address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.