dhcp

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lease

type Lease struct {
	LeasedIP   net.IP
	SubnetMask int
	GatewayIP  net.IP
	ServerIP   net.IP

	StartTime   time.Time
	Duration    time.Duration
	RenewAfter  time.Duration
	RebindAfter time.Duration
}

type LeaseStore

type LeaseStore interface {
	Get(ctx context.Context) (Lease, error)
	Put(ctx context.Context, l Lease) error
}

type VAddr

type VAddr struct {
	HWAddr     net.HardwareAddr
	Link       fw.Link
	LeaseStore LeaseStore
}

func (VAddr) Run

func (a VAddr) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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