package
7.0.0+incompatible
Repository: https://github.com/lindt/u-root.git
Documentation: pkg.go.dev

# Functions

Configure4 adds IP addresses, routes, and DNS servers to the system.
Configure6 adds IPv6 addresses, routes, and DNS servers to the system.
IfUp ensures the given network interface is up and returns the link object.
Interfaces takes an RE and returns a []netlink.Link that matches it, or an error.
NewPacket4 wraps a DHCPv4 packet with some convenience methods.
NewPacket6 wraps a DHCPv6 packet with some convenience methods.
Format: iscsi:@"<servername>":"<protocol>":"<port>":"<LUN>":"<targetname>" @ for now will be ignored.
SendRequests coordinates soliciting DHCP configuration on all ifs.
WriteDNSSettings writes the given nameservers, search list, and domain to resolv.conf.

# Constants

LogLevel are the levels.
LogLevel are the levels.
LogLevel are the levels.
Possible network protocols; either IPv4, IPv6, or both.
Possible network protocols; either IPv4, IPv6, or both.
Possible network protocols; either IPv4, IPv6, or both.

# Variables

ErrNoBootFile represents that no pxe boot file was found.
ErrNoRootPath means no root path option was found in DHCP message.
ErrNoServerHostName represents that no pxe boot server was found.

# Structs

Config is a DHCP client configuration.
Packet4 implements convenience functions for DHCPv4 packets.
Packet6 implements Packet for IPv6 DHCP.
Result is the result of a particular DHCP attempt.

# Interfaces

Lease is a network configuration obtained by DHCP.

# Type aliases

LogLevel is the amount of information to log.
NetworkProtocol is either IPv4 or IPv6.