summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/dhcpv4.go
diff options
context:
space:
mode:
authorHu Jun <hujun.work@gmail.com>2020-07-17 12:15:44 -0700
committerHu Jun <hujun.work@gmail.com>2020-07-17 12:15:44 -0700
commit72bd5d4387dff6845f6182af2e797cdd557d8e2f (patch)
tree112431b6b41e40849b05832772d6e5b5e03ee59a /dhcpv4/dhcpv4.go
parenteb6e4e06c3a0f44b2a19a94a41e42b8cd6a786b9 (diff)
fix doc of NewReleaseFromACK
Signed-off-by: Hu Jun <hujun.work@gmail.com>
Diffstat (limited to 'dhcpv4/dhcpv4.go')
-rw-r--r--dhcpv4/dhcpv4.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go
index b34f211..14b0d9f 100644
--- a/dhcpv4/dhcpv4.go
+++ b/dhcpv4/dhcpv4.go
@@ -794,10 +794,10 @@ func (d *DHCPv4) VIVC() VIVCIdentifiers {
// NewReleaseFromACK creates a DHCPv4 Release message from ACK.
// default Release message without any Modifer is created as following:
// - option Message Type is Release
-// - ClientIP is set to lease.ACK.YourIPAddr
-// - ClientHWAddr is set to lease.ACK.ClientHWAddr
+// - ClientIP is set to ack.YourIPAddr
+// - ClientHWAddr is set to ack.ClientHWAddr
// - Unicast
-// - option Server Identifier is set to ServerIdentifier of lease.ACK
+// - option Server Identifier is set to ack's ServerIdentifier
func NewReleaseFromACK(ack *DHCPv4, modifiers ...Modifier) (*DHCPv4, error) {
return New(PrependModifiers(modifiers,
WithMessageType(MessageTypeRelease),