dhcpsvc: add todo
This commit is contained in:
parent
ae1713e5f7
commit
4779f945ba
|
@ -3,6 +3,7 @@ package dhcpsvc
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log/slog"
|
||||||
"net"
|
"net"
|
||||||
"net/netip"
|
"net/netip"
|
||||||
"slices"
|
"slices"
|
||||||
|
@ -21,6 +22,11 @@ type DHCPServer struct {
|
||||||
// information about its clients.
|
// information about its clients.
|
||||||
enabled *atomic.Bool
|
enabled *atomic.Bool
|
||||||
|
|
||||||
|
// logger logs common DHCP events.
|
||||||
|
//
|
||||||
|
// TODO(e.burkov): Use.
|
||||||
|
logger *slog.Logger
|
||||||
|
|
||||||
// localTLD is the top-level domain name to use for resolving DHCP clients'
|
// localTLD is the top-level domain name to use for resolving DHCP clients'
|
||||||
// hostnames.
|
// hostnames.
|
||||||
localTLD string
|
localTLD string
|
||||||
|
@ -92,6 +98,7 @@ func New(ctx context.Context, conf *Config) (srv *DHCPServer, err error) {
|
||||||
|
|
||||||
srv = &DHCPServer{
|
srv = &DHCPServer{
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
|
logger: l,
|
||||||
localTLD: conf.LocalDomainName,
|
localTLD: conf.LocalDomainName,
|
||||||
leasesMu: &sync.RWMutex{},
|
leasesMu: &sync.RWMutex{},
|
||||||
leases: newLeaseIndex(),
|
leases: newLeaseIndex(),
|
||||||
|
|
Loading…
Reference in New Issue