dhcpv6-ia: rework reconfigure accept logic
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 10 Aug 2017 13:44:09 +0000 (15:44 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 10 Aug 2017 16:46:57 +0000 (18:46 +0200)
commitff5020d9c0474c6a76ee30e499983a4d3a9f27b7
treeb880b55d0be62a50722aa004578a47a456ef3b3c
parent95d0fb6c25944985b9717a51cebaa7ea8dc7222d
dhcpv6-ia: rework reconfigure accept logic

Rework reconfigure accept retransmission logic; every DHCPv6 assignment
has its own reconfigure accept timer now making sure the timeout and
retransmission behavior is in line with RFC3315 paragraph 19.1.2.

While at it rename the original reconf_timer into valid_until_timeout as
it will only check now the lifetime of the assignments.

Set reconf_cnt to INT_MAX for every assignment which belongs to the same
client identifier; before the reconf_cnt of the first handled assignment
was set by mistake breaking the retransmission logic.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6-ia.c
src/dhcpv6.h