dhcp

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: GPL-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDHCP added in v0.9.2

func StartDHCP(ifName string, serverIP net.IP, datasource datasource.DataSource) error

StartDHCP ListenAndServe for dhcp on port 67, binds on interface=ifName if it's not empty

Types

type Handler added in v0.9.2

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

Handler is passed to dhcp4 package to handle DHCP packets

func (*Handler) ServeDHCP added in v0.9.2

func (h *Handler) ServeDHCP(p dhcp4.Packet, msgType dhcp4.MessageType, options dhcp4.Options) (d dhcp4.Packet)

ServeDHCP replies a dhcp request

Jump to

Keyboard shortcuts

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