Lines Matching refs:max_timeout
315 usec_t min_timeout, max_timeout, time_now, timeout; in radv_timeout() local
334 max_timeout = RADV_MAX_INITIAL_RTR_ADVERT_INTERVAL_USEC; in radv_timeout()
336 max_timeout = RADV_DEFAULT_MAX_TIMEOUT_USEC; in radv_timeout()
341 max_timeout = MIN(max_timeout, ra->lifetime_usec); in radv_timeout()
343 if (max_timeout >= 9 * USEC_PER_SEC) in radv_timeout()
344 min_timeout = max_timeout / 3; in radv_timeout()
346 min_timeout = max_timeout * 3 / 4; in radv_timeout()
351 assert(max_timeout >= RADV_MIN_MAX_TIMEOUT_USEC); in radv_timeout()
352 assert(max_timeout <= RADV_MAX_MAX_TIMEOUT_USEC); in radv_timeout()
354 assert(min_timeout <= max_timeout * 3 / 4); in radv_timeout()
356 timeout = min_timeout + random_u64_range(max_timeout - min_timeout); in radv_timeout()