Versions in this module Expand all Collapse all v0 v0.0.2 Oct 1, 2023 v0.0.1 Sep 30, 2023 Changes in this version + type Config struct + Enabled bool + ICMPTimeout time.Duration + Interfaces map[string]*InterfaceConfig + LocalDomainName string + type Empty struct + func (Empty) AddLease(_ *Lease) (err error) + func (Empty) Config() (conf *Config) + func (Empty) EditLease(_, _ *Lease) (err error) + func (Empty) Enabled() (ok bool) + func (Empty) HostByIP(_ netip.Addr) (host string) + func (Empty) IPByHost(_ string) (ip netip.Addr) + func (Empty) Leases() (leases []*Lease) + func (Empty) MACByIP(_ netip.Addr) (mac net.HardwareAddr) + func (Empty) RemoveLease(_ *Lease) (err error) + func (Empty) Reset() (err error) + func (Empty) Shutdown(_ context.Context) (err error) + func (Empty) Start() (err error) + type IPv4Config struct + Enabled bool + GatewayIP netip.Addr + LeaseDuration time.Duration + Options layers.DHCPOptions + RangeEnd netip.Addr + RangeStart netip.Addr + SubnetMask netip.Addr + type IPv6Config struct + Enabled bool + LeaseDuration time.Duration + Options layers.DHCPOptions + RAAllowSLAAC bool + RASLAACOnly bool + RangeStart netip.Addr + type Interface interface + AddLease func(l *Lease) (err error) + EditLease func(old, new *Lease) (err error) + Enabled func() (ok bool) + HostByIP func(ip netip.Addr) (host string) + IPByHost func(host string) (ip netip.Addr) + Leases func() (leases []*Lease) + MACByIP func(ip netip.Addr) (mac net.HardwareAddr) + RemoveLease func(l *Lease) (err error) + Reset func() (err error) + type InterfaceConfig struct + IPv4 *IPv4Config + IPv6 *IPv6Config + type Lease struct + Expiry time.Time + HWAddr net.HardwareAddr + Hostname string + IP netip.Addr + IsStatic bool