dhcp: fix dhcpv6 client and dhcpv6 prefix delegation 96/28196/1
authorDave Barach <[email protected]>
Sat, 9 Nov 2019 01:20:17 +0000 (20:20 -0500)
committerAndrew Yourtchenko <[email protected]>
Fri, 7 Aug 2020 21:45:43 +0000 (21:45 +0000)
commit47214ee1e0a6043d9b2a0fa2b7a204787218b906
treeedbacac26114794b40f3f5c0bef07c25259df4dc
parent201fa41eb568d677d3f57401356fbeaba30ca0b5
dhcp: fix dhcpv6 client and dhcpv6 prefix delegation

Keep trying even if the interface in question is not "admin-up,
link-up." In real life, it's normal for link autonegotiation to take a
good fraction of a second. The driver layer takes care of packets sent
to an interface which can't transmit at the moment.

Renew address leases at the preferred renewal time, not at the
expiration time.

Type: fix

Signed-off-by: Dave Barach <[email protected]>
Change-Id: I68ec1c52cc1f4a8aa256185820748b845e92f7c1
(cherry picked from commit 20b962d3e494513ab28854936cc8bbc32891686b)
src/vnet/dhcp/dhcp6_ia_na_client_cp.c
src/vnet/dhcp/dhcp6_ia_na_client_dp.c
src/vnet/dhcp/dhcp6_pd_client_dp.c