dhcpsvc: add todo

This commit is contained in:
Eugene Burkov 2024-07-02 14:59:22 +03:00
parent ae1713e5f7
commit 4779f945ba
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package dhcpsvc
import (
"context"
"fmt"
"log/slog"
"net"
"net/netip"
"slices"
@ -21,6 +22,11 @@ type DHCPServer struct {
// information about its clients.
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'
// hostnames.
localTLD string
@ -92,6 +98,7 @@ func New(ctx context.Context, conf *Config) (srv *DHCPServer, err error) {
srv = &DHCPServer{
enabled: enabled,
logger: l,
localTLD: conf.LocalDomainName,
leasesMu: &sync.RWMutex{},
leases: newLeaseIndex(),