From e374e55a4a9779c13505a9841014267eaaf881ad Mon Sep 17 00:00:00 2001 From: insomniac Date: Mon, 21 May 2018 13:10:21 +0100 Subject: Tests for DUID, OptIAAddress and several fixes (#66) --- netboot/netconf.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'netboot') diff --git a/netboot/netconf.go b/netboot/netconf.go index a9751dd..f7a117c 100644 --- a/netboot/netconf.go +++ b/netboot/netconf.go @@ -47,11 +47,11 @@ func GetNetConfFromPacketv6(d *dhcpv6.DHCPv6Message) (*NetConf, error) { for _, iaaddr := range iaaddrs { netconf.Addresses = append(netconf.Addresses, AddrConf{ IPNet: net.IPNet{ - IP: iaaddr.IPv6Addr(), + IP: iaaddr.IPv6Addr, Mask: netmask, }, - PreferredLifetime: int(iaaddr.PreferredLifetime()), - ValidLifetime: int(iaaddr.ValidLifetime()), + PreferredLifetime: int(iaaddr.PreferredLifetime), + ValidLifetime: int(iaaddr.ValidLifetime), }) } // get DNS configuration -- cgit v1.2.3