X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fdhcpv6.c;h=17866889e6f06f327c6c48bb81a030e7314e5106;hb=c42e34111e19bd435dc4b5bb3ba81224ea214314;hp=597d239b5daa3451d4d00b3ce57407b779a21afd;hpb=0aff911e92043891dcb5ccd83b721ee748195175;p=odhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 597d239..1786688 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -885,7 +885,7 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc, { uint8_t *odata; uint16_t otype, olen; - uint32_t refresh = UINT32_MAX; + uint32_t refresh = 86400; int ret = 1; bool handled_status_codes[_DHCPV6_Status_Max] = { false, }; @@ -1213,7 +1213,7 @@ static int dhcpv6_parse_ia(void *opt, void *end) } if (ok) { - odhcp6c_update_entry(STATE_IA_PD, &entry); + odhcp6c_update_entry(STATE_IA_PD, &entry, 0, false); parsed_ia++; } @@ -1248,7 +1248,7 @@ static int dhcpv6_parse_ia(void *opt, void *end) entry.class = sdata[0] << 8 | sdata[1]; #endif - odhcp6c_update_entry(STATE_IA_NA, &entry); + odhcp6c_update_entry(STATE_IA_NA, &entry, 0, false); parsed_ia++; } }