From: Pasi Sjöholm <[email protected]>

Force minimum T1 and T2 to prevent renew and rebind go grazy if
the lease is not getting renew or rebound.
---
 src/dhcpv6.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index a1a6e92..00dba3a 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -1428,6 +1428,11 @@ int __connman_dhcpv6_start_renew(struct connman_network 
*network,
                 */
                T1 = (expired - started) / 2;
                T2 = (expired - started) / 10 * 8;
+
+               if (T1 < 10) {
+                       T1 = 10;
+                       T2 = 16;
+               }
        }
 
        dhcp->callback = callback;
-- 
1.9.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to