summaryrefslogtreecommitdiffhomepage
path: root/netboot
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2019-01-28 00:53:04 +0000
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-28 11:21:18 +0000
commit51ac989e85d13beda9cb304fb85e0aff18e9cd98 (patch)
tree335f5968c0d0c55a5c8e1a65e997a0d331c2210a /netboot
parent82434691f0602844a2156a4d2037d43c51900b73 (diff)
dhcpv4: moved client into dhcpv4/client4
Diffstat (limited to 'netboot')
-rw-r--r--netboot/netboot.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/netboot/netboot.go b/netboot/netboot.go
index b340046..15990b1 100644
--- a/netboot/netboot.go
+++ b/netboot/netboot.go
@@ -7,6 +7,7 @@ import (
"time"
"github.com/insomniacslk/dhcp/dhcpv4"
+ "github.com/insomniacslk/dhcp/dhcpv4/client4"
"github.com/insomniacslk/dhcp/dhcpv6"
"github.com/insomniacslk/dhcp/dhcpv6/client6"
)
@@ -58,7 +59,7 @@ func RequestNetbootv4(ifname string, timeout time.Duration, retries int, modifie
modifiers = append(modifiers, dhcpv4.WithNetboot)
for i := 0; i <= retries; i++ {
log.Printf("sending request, attempt #%d", i+1)
- client := dhcpv4.NewClient()
+ client := client4.NewClient()
client.ReadTimeout = timeout
conversation, err = client.Exchange(ifname, modifiers...)
if err != nil {