package
0.0.0-20241104101831-1454e04fdb07
Repository: https://github.com/kairos-io/netboot.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
InterfaceByAddress finds the interface bound to an ip address, or returns an error if none were found.
MakeAPIBootConfiguration creates a new APIBootConfiguration initialized with provided values.
MakeDNSServersOption creates a Recursive DNS servers Option with the specified list of IP addresses.
MakeIaAddrOption creates an IA Address Option using IP address, preferred and valid lifetimes.
MakeIaNaOption creates a Identity Association for Non-temporary Addresses Option with specified interface ID, t1 and t2 times, and an interface-specific option (an IA Address Option or a Status Option).
MakeOption creates an Option with given ID and value.
MakePacketBuilder creates a new PacketBuilder and initializes it with preferred and valid lifetimes.
MakeStaticBootConfiguration creates a new StaticBootConfiguration with provided values.
MakeStatusOption creates a Status Option with given status code and message.
NewConn creates a new Conn bound to specified address and port.
Unmarshal creates a Packet out of its serialized representation.
UnmarshalOption de-serializes an Option.
UnmarshalOptions unmarshals individual Options and returns them in a new Options data structure.
# Constants
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Constants for each of the dhcp message types defined in RFC 3315.
Authentication Option.
Boot File Parameters Option.
Boot File URL Option.
Client Architecture Type Option.
Client ID Option.
Elapsed Time Option.
IA Address Option.
Identity Association for Non-temporary Addresses Option.
Identity Association for Temporary Addresses Option.
Interface-Id Option.
Option Request Option.
Preference Option.
Rapid Commit Option.
Reconfigure Accept Option.
Reconfigure Message Option.
Recursive DNS name servers Option.
Relay Message Option.
Server ID Option.
Status Code Option.
Server Unicast Option.
User Class Option.
Vendor Class Option.
Vendor-specific Information Option.
# Structs
APIBootConfiguration provides an interface to retrieve Boot File URL from an external server based on client ID and architecture type.
Conn is dhcpv6-specific socket.
Option represents a DHCPv6 Option.
Packet represents a DHCPv6 packet.
PacketBuilder is used for generating responses to requests received from dhcp clients.
StaticBootConfiguration provides values for dhcp options that remain unchanged until restart.
# Interfaces
BootConfiguration implementation provides values for dhcp options served to dhcp clients.
# Type aliases
MessageType contains ID identifying DHCP message type.
Options contains all options of a DHCPv6 packet.