summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/nclient4/client.go
diff options
context:
space:
mode:
authorDennis Marttinen <twelho@welho.tech>2022-07-15 12:56:31 +0300
committerDennis Marttinen <twelho@welho.tech>2022-07-27 15:54:45 +0300
commitaeb78d02bd032611653400cd55e3331a1f839aa9 (patch)
treefb858be02bbd66b75273d4380bbcc4ec63e661aa /dhcpv4/nclient4/client.go
parent0405526172c87e4fc75325c9a195834a8fb4ba94 (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.go1
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,