]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
Always report update when IA_PDs are assigned
authorSteven Barth <steven@midlink.org>
Thu, 29 Nov 2012 19:01:56 +0000 (20:01 +0100)
committerSteven Barth <steven@midlink.org>
Thu, 29 Nov 2012 19:01:56 +0000 (20:01 +0100)
src/dhcpv6.c

index 21f0b22256702243ed223b30fa098799fab65fc7..3132e6c6d7839bfa45151fdd15af57a9567e7477 100644 (file)
@@ -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);