summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-08-03 11:30:07 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-08-10 14:43:25 +0200
commitba823f457ef09139f01168013de529ede7caf76b (patch)
treef0f38477eae53eaa60208babf3e3e6bd70cc98d5 /dhcpv4
parent782ff7524ce2fce9b098ad72c020a489735557a1 (diff)
NewRequestFromOffer: update client
Diffstat (limited to 'dhcpv4')
-rw-r--r--dhcpv4/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/client.go b/dhcpv4/client.go
index 36ff60b..9fd8501 100644
--- a/dhcpv4/client.go
+++ b/dhcpv4/client.go
@@ -148,7 +148,7 @@ func (c *Client) Exchange(ifname string, discover *DHCPv4, modifiers ...Modifier
for _, mod := range modifiers {
discover = mod(discover)
}
- conversation[0] = *discover
+ conversation[0] = discover
// Offer
offer, err := BroadcastSendReceive(sfd, rfd, discover, c.ReadTimeout, c.WriteTimeout, MessageTypeOffer)