dhcpd

package
v0.0.0-...-1a29ab9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHCPd

type DHCPd interface {
	Serve(ctx context.Context, addr net.IP, iface string) error
}

DHCPd is the interface for usra to provide the DHCP daemon.

type Lease

type Lease struct {
	ID         int                `db:"id"`
	MACAddress types.HardwareAddr `db:"mac_address"`
	IPAddress  types.IP           `db:"ip_address"`
	SubnetID   int                `db:"subnet_id"`
}

Lease is

type Subnet

type Subnet struct {
	ID        int         `db:"id"`
	Network   types.IPNet `db:"network"`
	Start     types.IP    `db:"start"`
	End       types.IP    `db:"end"`
	Gateway   *types.IP   `db:"gateway"`
	DNSServer *types.IP   `db:"dns_server"`
}

Subnet is subnet configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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