Add default T1, T2, T3 for buggy servers
authorSteven Barth <steven@midlink.org>
Thu, 12 Sep 2013 12:48:57 +0000 (14:48 +0200)
committerSteven Barth <steven@midlink.org>
Thu, 12 Sep 2013 12:48:57 +0000 (14:48 +0200)
src/dhcpv6.c

index 785b57b03aedf1543dea2ff08a08594599873ceb..50bbb0225cf20755f320c8906d03613de0598df2 100644 (file)
@@ -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;
 }