pxe

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2016 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPBooterMux

func HTTPBooterMux(listenAddr net.TCPAddr, ds datasource.DataSource, webPort int) (*http.ServeMux, error)

func ReplyPXE

func ReplyPXE(p *PXEPacket) []byte

func ServeHTTPBooter

func ServeHTTPBooter(listenAddr net.TCPAddr, ds datasource.DataSource, webPort int) error

func ServePXE

func ServePXE(listenAddr net.UDPAddr, serverIP net.IP, httpAddr net.TCPAddr) error

func ServeTFTP

func ServeTFTP(listenAddr net.UDPAddr) error

ServeTFTP delivers lpxelinux.0 to machines through the old tftp protocol

Types

type DHCPPacket

type DHCPPacket struct {
	TID  []byte
	MAC  net.HardwareAddr
	GUID []byte

	ServerIP net.IP
}

type HTTPBooter

type HTTPBooter struct {
	// contains filtered or unexported fields
}

func NewHTTPBooter

func NewHTTPBooter(listenAddr net.TCPAddr, ldlinux []byte,
	ds datasource.DataSource, webPort int) (*HTTPBooter, error)

func (*HTTPBooter) Mux

func (b *HTTPBooter) Mux() *http.ServeMux

type PXEPacket

type PXEPacket struct {
	DHCPPacket
	ClientIP net.IP
	// The boot type requested by the client. We need to mirror this
	// in the PXE reply.
	BootType []byte

	HTTPServer string
}

func ParsePXE

func ParsePXE(b []byte) (req *PXEPacket, err error)

Jump to

Keyboard shortcuts

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