draft DHCP allocator abstraction

This commit is contained in:
Patricio Whittingslow
2026-06-20 18:20:18 -03:00
parent 8f9d765cb0
commit b46b4c7bc5
10 changed files with 770 additions and 177 deletions
+2 -2
View File
@@ -265,11 +265,11 @@ func (c *Client) getMessageType(frm Frame) MessageType {
func (c *Client) setOptions(frm Frame) error {
err := frm.ForEachOption(func(_ int, opt OptNum, data []byte) error {
switch opt {
case OptRenewTimeValue:
case OptT1Renewal:
c.tRenew = maybeU32(data)
case OptIPAddressLeaseTime:
c.tIPLease = maybeU32(data)
case OptRebindingTimeValue:
case OptT2Rebinding:
c.tRebind = maybeU32(data)
case OptServerIdentification:
c.svip.setmaybe(data)