From 11ba58c6636f95c5ca35fd2d1ebcbefa696cf8dd Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 12 Sep 2013 14:48:57 +0200 Subject: [PATCH] Add default T1, T2, T3 for buggy servers --- src/dhcpv6.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 785b57b..50bbb02 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -821,6 +821,15 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, } } + if (t1 == UINT32_MAX) + t1 = 300; + + if (t2 == UINT32_MAX) + t2 = 600; + + if (t3 == UINT32_MAX) + t3 = 3600; + return true; } -- 2.30.2