Searched refs:req_exp (Results 1 – 1 of 1) sorted by relevance
1281 static uint32_t get_lease(uint32_t req_exp) in get_lease() argument1284 req_exp = req_exp - now; in get_lease()1286 if ((req_exp <= 0) || req_exp > gconfig.pref_lifetime || in get_lease()1287 req_exp > gconfig.valid_lifetime) { in get_lease()1296 if ((req_exp <= 0) || (req_exp > gconfig.max_lease_sec)) in get_lease()1299 if (req_exp < gconfig.min_lease_sec) in get_lease()1303 return req_exp; in get_lease()1353 static int addip_to_lease(uint32_t assigned_nip, uint8_t mac[6], uint32_t *req_exp, char *hostname,… in addip_to_lease() argument1361 if (update) *req_exp = get_lease(*req_exp + ((dyn_lease*) listdls->arg)->expires); in addip_to_lease()1362 ((dyn_lease*) listdls->arg)->expires = *req_exp + now; in addip_to_lease()[all …]