dhcpv6: avoid sending continuous renew/rebind messages
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 30 Nov 2020 21:10:09 +0000 (22:10 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 1 Dec 2020 19:41:08 +0000 (20:41 +0100)
commita7b2221f687264c020b7a18a4e690d79f312a667
treeb082a948a4a82f370b50dbda725a5c32eb62617b
parentd7afa2b6d31a837f374d8e06b2fabc26ea010939
dhcpv6: avoid sending continuous renew/rebind messages

If any of the IAs is not present in the Reply message in response
to a Renew/Rebind message don't set t1 to one second.
This will cause a continuous sending of Renew messages every second
if the DHCP server does not include all IAs in the Reply message.
Instead continue the normal retransmission time as if the Reply
message is not received as specified in RFC8415 ยง18.2.10.1

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