dhcp

package
v1.18.9 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotResponding = errors.New("DHCP not responding")
	ErrNotFound      = errors.New("DNS option not found")
)

Functions

func ListenDHCPClient

func ListenDHCPClient(ctx context.Context, ifaceName string) (net.PacketConn, error)

func ResolveDNSFromDHCP

func ResolveDNSFromDHCP(context context.Context, ifaceName string) ([]netip.Addr, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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