Re: renewal for DHCPv6-PD multiple prefixes with different lifetimes
Roy Marples
Sun Oct 02 15:08:58 2016
Hi Guy
On Saturday 01 October 2016 15:35:44 Guy Yur wrote:
> dhcpcd renews the DHCPv6-PD prefixes only once when more than one
> prefix is configured in dhcp6s and one of them has infinity lifetime
> and the other has lifetime in seconds.
>
> dhcp6s sends a reply to a "dhcp6 request" with T1 and T2 set to
> pltime * .5 and pltime * .8.
> state->renew and state->rebind will be set to them and a renew
> request will be sent when the time comes.
>
> dhcp6s sends a reply to a "dhcp6 renew" with T1 and T2 set to 0.
> In such a case and when vltime of one of the prefixes is infinity,
> dhcpcd will set renew and rebind to infinity and the renew request
> will not be sent.
> Losing the prefix with non-infinity lifetime when it expires.
>
> Should state->renew and state->rebind be set to infinity based
> on lowpl instead of expire? (attached patch to trunk 89496bbb79)
Yes they should
Thanks for the analysis and patch.
Fixed here:
http://roy.marples.name/projects/dhcpcd/ci/dc9f4b7e1b1319be?sbs=0
Roy
Archive administrator: postmaster@marples.name