Lines Matching refs:lifetime
771 #define T1_DEFAULT(lifetime) ((lifetime) / 2) argument
772 #define T2_DEFAULT(lifetime) (((lifetime) * 7) / 8) argument
1534 if (lease->lifetime == 0 && client->fallback_lease_lifetime > 0) in client_handle_offer()
1535 lease->lifetime = client->fallback_lease_lifetime; in client_handle_offer()
1539 lease->lifetime == 0) { in client_handle_offer()
1636 lease->lifetime == 0) { in client_handle_ack()
1676 assert(client->lease->lifetime); in client_set_lease_timeouts()
1679 if (client->lease->lifetime == 0xffffffff) { in client_set_lease_timeouts()
1693 if (client->lease->t2 == 0 || client->lease->t2 >= client->lease->lifetime) in client_set_lease_timeouts()
1694 client->lease->t2 = T2_DEFAULT(client->lease->lifetime); in client_set_lease_timeouts()
1697 client->lease->t1 = T1_DEFAULT(client->lease->lifetime); in client_set_lease_timeouts()
1702 client->lease->t2 = T2_DEFAULT(client->lease->lifetime); in client_set_lease_timeouts()
1704 client->expire_time = client->request_sent + client->lease->lifetime * USEC_PER_SEC; in client_set_lease_timeouts()