X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fdhcpv6.c;h=3132e6c6d7839bfa45151fdd15af57a9567e7477;hb=53e6041e90e9d69576240ff5e403f8fa35cc6a93;hp=21f0b22256702243ed223b30fa098799fab65fc7;hpb=2694232fb6fd00351dcd51609aac08b66fb2b1d8;p=odhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 21f0b22..3132e6c 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -629,6 +629,10 @@ static int dhcpv6_handle_reply(_unused enum dhcpv6_msg orig, if (l_t2 > 0 && t2 > l_t2) t2 = l_t2; + // Always report update in case we have IA_PDs so that + // the state-script is called with updated times + if (otype == DHCPV6_OPT_IA_PD && request_prefix) + have_update = true; time_t n = dhcpv6_parse_ia(&ia_hdr[1], odata + olen);