transcoding

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DHCPBaseClassID                 = "PXEClient"
	DHCPEFIArch                     = 7  // X86-64_EFI
	DHCPOptUUIDGUIDClientIdentifier = 97 // Option: (97) UUID/GUID-based Client Identifier
	DHCPRootPath                    = 17 // Option: (17) Root Path
)

Variables

This section is empty.

Functions

func EncodeDHCPPacket

func EncodeDHCPPacket(
	clientHWAddr net.HardwareAddr,
	xid uint32,
	advertisedIP net.IP,
	clientIdentifierOpt layers.DHCPOption,
	arch int,
	bootMenuPromptBIOS string,
	bootMenuDescriptionBIOS string,
) []byte

func EncodeProxyDHCPPacket

func EncodeProxyDHCPPacket(
	clientHWAddr net.HardwareAddr,
	xid uint32,
	advertisedIP net.IP,
	clientIdentifierOpt layers.DHCPOption,
	yourClientIP net.IP,
	bootFileName string,
) []byte

func ParsePXEClassIdentifier

func ParsePXEClassIdentifier(classID string) (isPXE bool, arch int, err error)

Types

type DecodedDHCPPacket

type DecodedDHCPPacket struct {
	IsPXE               bool
	ClientHWAddr        net.HardwareAddr
	Xid                 uint32
	ClientIdentifierOpt layers.DHCPOption
	Arch                int
}

func DecodeDHCPPacket

func DecodeDHCPPacket(rawIncomingUDPPacket []byte) (DecodedDHCPPacket, error)

Jump to

Keyboard shortcuts

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