]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/odhcp6c.c
Support for SOL_MAX_RT and INF_MAX_RT options (RFC7083)
[odhcp6c.git] / src / odhcp6c.c
index c8d40f63b84641d85abbb0bec40d096c68e94c0e..de452c04a7fef0de9488aef00fdafcac1119e779 100644 (file)
@@ -69,7 +69,7 @@ int main(_unused int argc, char* const argv[])
        enum odhcp6c_ia_mode ia_na_mode = IA_MODE_TRY;
        enum odhcp6c_ia_mode ia_pd_mode = IA_MODE_TRY;
        static struct in6_addr ifid = IN6ADDR_ANY_INIT;
-       int sol_timeout = 120;
+       int sol_timeout = DHCPV6_SOL_MAX_RT;
 
 #ifdef EXT_BFD_PING
        int bfd_interval = 0, bfd_loss = 3;
@@ -318,7 +318,7 @@ int main(_unused int argc, char* const argv[])
                                else if (do_signal > 0)
                                        break; // Other signal type
 
-                               // If we have any IAs, send renew, otherwise request
+                               // Send renew as T1 expired
                                res = dhcpv6_request(DHCPV6_MSG_RENEW);
                                odhcp6c_signal_process();
                                if (res > 0) { // Renew was succesfull