From: Steven Barth Date: Thu, 12 Sep 2013 12:48:57 +0000 (+0200) Subject: Add default T1, T2, T3 for buggy servers X-Git-Tag: debian/1.1+git20160131-1~131 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=11ba58c6636f95c5ca35fd2d1ebcbefa696cf8dd;p=odhcp6c.git Add default T1, T2, T3 for buggy servers --- 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; }