projects
/
oweals
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2694232
)
Always report update when IA_PDs are assigned
author
Steven Barth
<steven@midlink.org>
Thu, 29 Nov 2012 19:01:56 +0000
(20:01 +0100)
committer
Steven Barth
<steven@midlink.org>
Thu, 29 Nov 2012 19:01:56 +0000
(20:01 +0100)
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index 21f0b22256702243ed223b30fa098799fab65fc7..3132e6c6d7839bfa45151fdd15af57a9567e7477 100644
(file)
--- 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);