diff options
author | Dennis Marttinen <twelho@welho.tech> | 2022-07-15 12:56:31 +0300 |
---|---|---|
committer | Dennis Marttinen <twelho@welho.tech> | 2022-07-27 15:54:45 +0300 |
commit | aeb78d02bd032611653400cd55e3331a1f839aa9 (patch) | |
tree | fb858be02bbd66b75273d4380bbcc4ec63e661aa /dhcpv4/nclient4/client.go | |
parent | 0405526172c87e4fc75325c9a195834a8fb4ba94 (diff) |
dhcpv4: add a client method to facilitate lease renewals
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
Diffstat (limited to 'dhcpv4/nclient4/client.go')
-rw-r--r-- | dhcpv4/nclient4/client.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dhcpv4/nclient4/client.go b/dhcpv4/nclient4/client.go index 02bd1f6..d40e1a9 100644 --- a/dhcpv4/nclient4/client.go +++ b/dhcpv4/nclient4/client.go @@ -493,6 +493,7 @@ func (e *ErrNak) Error() string { } // RequestFromOffer sends a Request message and waits for an response. +// It assumes the SELECTING state by default, see Section 4.3.2 in RFC 2131 for more details. func (c *Client) RequestFromOffer(ctx context.Context, offer *dhcpv4.DHCPv4, modifiers ...dhcpv4.Modifier) (*Lease, error) { // TODO(chrisko): should this be unicast to the server? request, err := dhcpv4.NewRequestFromOffer(offer, dhcpv4.PrependModifiers(modifiers, |