diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-05-21 13:10:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-21 13:10:21 +0100 |
commit | e374e55a4a9779c13505a9841014267eaaf881ad (patch) | |
tree | 2cc865c07014cf20b856bee110a63bf86ee09fcc /netboot/netconf.go | |
parent | 1583a0641ef72c74238e2b21ac0ba3ca419ce079 (diff) |
Tests for DUID, OptIAAddress and several fixes (#66)
Diffstat (limited to 'netboot/netconf.go')
-rw-r--r-- | netboot/netconf.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 |