all: sync with master; upd chlog
This commit is contained in:
@@ -23,9 +23,12 @@ type ServerConfig struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
InterfaceName string `yaml:"interface_name"`
|
||||
|
||||
// LocalDomainName is the domain name used for DHCP hosts. For example,
|
||||
// a DHCP client with the hostname "myhost" can be addressed as "myhost.lan"
|
||||
// LocalDomainName is the domain name used for DHCP hosts. For example, a
|
||||
// DHCP client with the hostname "myhost" can be addressed as "myhost.lan"
|
||||
// when LocalDomainName is "lan".
|
||||
//
|
||||
// TODO(e.burkov): Probably, remove this field. See the TODO on
|
||||
// [Interface.Enabled].
|
||||
LocalDomainName string `yaml:"local_domain_name"`
|
||||
|
||||
Conf4 V4ServerConf `yaml:"dhcpv4"`
|
||||
@@ -58,6 +61,14 @@ type DHCPServer interface {
|
||||
// there is one.
|
||||
FindMACbyIP(ip netip.Addr) (mac net.HardwareAddr)
|
||||
|
||||
// HostByIP returns a hostname by the IP address of its lease, if there is
|
||||
// one.
|
||||
HostByIP(ip netip.Addr) (host string)
|
||||
|
||||
// IPByHost returns an IP address by the hostname of its lease, if there is
|
||||
// one.
|
||||
IPByHost(host string) (ip netip.Addr)
|
||||
|
||||
// WriteDiskConfig4 - copy disk configuration
|
||||
WriteDiskConfig4(c *V4ServerConf)
|
||||
// WriteDiskConfig6 - copy disk configuration
|
||||
|
||||
Reference in New Issue
Block a user