msggen

package
v0.0.0-...-313d9de Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func New

func New(customOpts []dhcpmsg.DHCPOpt) *Generator

func (*Generator) Discover

func (g *Generator) Discover(iface *net.Interface) (func() ([]byte, net.IP, net.IP), uint32)

Discover returns a DHCPDISCOVER message.

func (*Generator) RequestRebinding

func (g *Generator) RequestRebinding(iface *net.Interface, requestedIP net.IP) (func() ([]byte, net.IP, net.IP), uint32)

RequestRebinding returns a rebinding request.

func (*Generator) RequestRenewing

func (g *Generator) RequestRenewing(iface *net.Interface, requestedIP, serverIdentifier net.IP) (func() ([]byte, net.IP, net.IP), uint32)

RequestRenewing returns a renewing request.

func (*Generator) RequestSelecting

func (g *Generator) RequestSelecting(iface *net.Interface, requestedIP, serverIdentifier net.IP) (func() ([]byte, net.IP, net.IP), uint32)

RequestSelecting returns a new selecting request.

Jump to

Keyboard shortcuts

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