bootloop

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = plugins.Plugin{
	Name:   "bootloop",
	Setup6: setup6,
	Setup4: setup4,
}

Functions

This section is empty.

Types

type PluginState

type PluginState struct {
	// Rough lock for the whole plugin
	sync.Mutex
	// Recordsv4 holds a MAC -> IP address and lease time mapping
	Recordsv4 map[string]*Record
	LeaseTime time.Duration
	// contains filtered or unexported fields
}

PluginState is the data held by an instance of the bootloop plugin

func (*PluginState) Handler4

func (p *PluginState) Handler4(req, resp *dhcpv4.DHCPv4) (*dhcpv4.DHCPv4, bool)

type Record

type Record struct {
	IP net.IP
	// contains filtered or unexported fields
}

Record holds an IP lease record

Jump to

Keyboard shortcuts

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