From 53e6041e90e9d69576240ff5e403f8fa35cc6a93 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 29 Nov 2012 20:01:56 +0100 Subject: [PATCH] Always report update when IA_PDs are assigned --- src/dhcpv6.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.2