netdevs

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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