From: Steven Barth Date: Thu, 29 Nov 2012 19:01:56 +0000 (+0100) Subject: Always report update when IA_PDs are assigned X-Git-Tag: debian/1.1+git20160131-1~212 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=53e6041e90e9d69576240ff5e403f8fa35cc6a93;p=odhcp6c.git Always report update when IA_PDs are assigned --- 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);