package
0.0.0-20200221232812-81b9770086ea
Repository: https://github.com/elastic/dhcp.git
Documentation: pkg.go.dev
# Functions
GetVendorOptions returns a new BSDP Vendor Specific Info option.
InformSelectForAck constructs an INFORM[SELECT] packet given an ACK to the previously-sent INFORM[LIST].
MakeVendorClassIdentifier returns a static vendor class identifier for BSDP use on non-darwin hosts.
MessageTypeFromPacket extracts the BSDP message type (LIST, SELECT) from the vendor-specific options and returns it.
NewClient constructs a new client with default read and write timeouts from dhcpv4.Client.
NewInformList creates a new INFORM packet for interface with hardware address `hwaddr` and IP `localIP`.
NewInformListForInterface creates a new INFORM packet for interface ifname with configuration options specified by config.
NewReplyForInformList constructs an ACK for the INFORM[LIST] packet `inform` with additional options in `config`.
NewReplyForInformSelect constructs an ACK for the INFORM[Select] packet `inform` with additional options in `config`.
OptBootImageList returns a new BSDP boot image list.
OptDefaultBootImageID returns a new default boot image ID option as per BSDP.
OptMachineName returns a BSDP Machine Name option.
OptMessageType returns a new BSDP Message Type option.
OptReplyPort returns a new BSDP reply port option.
OptSelectedBootImageID returns a new selected boot image ID option as per BSDP.
OptServerIdentifier returns a new BSDP Server Identifier option.
OptServerPriority returns a new BSDP server priority option.
OptVendorOptions returns the BSDP Vendor Specific Info in o.
OptVersion returns a new BSDP version option.
PacketFor returns a wrapped BSDP Packet given a DHCPv4 packet.
ParseBootImageListFromAck parses the list of boot images presented in the ACK[LIST] packet and returns them as a list of BootImages.
# Constants
AppleVendorID is the string constant set in the vendor class identifier (DHCP option 60) that is sent by the server.
Different types of BootImages - e.g.
Different types of BootImages - e.g.
Different types of BootImages - e.g.
Different types of BootImages - e.g.
DefaultMacOSVendorClassIdentifier is a default vendor class identifier used on non-darwin hosts where the vendor class identifier cannot be determined.
MaxDHCPMessageSize is the size set in DHCP option 57 (DHCP Maximum Message Size).
BSDP Message types - e.g.
BSDP Message types - e.g.
BSDP Message types - e.g.
BSDP Message types - e.g.
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Not used.
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
Options (occur as sub-options of DHCP option 43).
# Structs
BootImage describes a boot image - contains the boot image ID and the name.
BootImageID describes a boot image ID - whether it's an install image and what kind of boot image (e.g.
Client represents a BSDP client that can perform BSDP exchanges via the broadcast address.
Packet is a BSDP packet wrapper around a DHCPv4 packet in order to print the correct vendor-specific BSDP information in String().
ReplyConfig is a struct containing some common configuration values for a BSDP reply (ACK).
VendorOptions is like dhcpv4.Options, but stringifies using BSDP-specific option codes.
# Type aliases
BootImageList contains a list of boot images presented by a netboot server.
BootImageType represents the different BSDP boot image types.
MessageType represents the different BSDP message types.
Version is the BSDP protocol version.