Lines Matching refs:next_timeout
122 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in dtls1_start_timer()
127 ssl_get_current_time(ssl, &ssl->d1->next_timeout); in dtls1_start_timer()
130 ssl->d1->next_timeout.tv_sec += ssl->d1->timeout_duration_ms / 1000; in dtls1_start_timer()
131 ssl->d1->next_timeout.tv_usec += (ssl->d1->timeout_duration_ms % 1000) * 1000; in dtls1_start_timer()
132 if (ssl->d1->next_timeout.tv_usec >= 1000000) { in dtls1_start_timer()
133 ssl->d1->next_timeout.tv_sec++; in dtls1_start_timer()
134 ssl->d1->next_timeout.tv_usec -= 1000000; in dtls1_start_timer()
164 OPENSSL_memset(&ssl->d1->next_timeout, 0, sizeof(ssl->d1->next_timeout)); in dtls1_stop_timer()
204 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in DTLSv1_get_timeout()
212 if (ssl->d1->next_timeout.tv_sec < timenow.tv_sec || in DTLSv1_get_timeout()
213 (ssl->d1->next_timeout.tv_sec == timenow.tv_sec && in DTLSv1_get_timeout()
214 ssl->d1->next_timeout.tv_usec <= timenow.tv_usec)) { in DTLSv1_get_timeout()
221 OPENSSL_memcpy(&ret, &ssl->d1->next_timeout, sizeof(ret)); in DTLSv1_get_timeout()