Lines Matching refs:req_exp
1281 static uint32_t get_lease(uint32_t req_exp) in get_lease() argument
1284 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() argument
1361 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()
1373 if (update) *req_exp = get_lease(*req_exp + now); in addip_to_lease()
1374 dls->expires = *req_exp + now; in addip_to_lease()
1433 static uint32_t getip_from_pool(uint32_t req_nip, uint8_t mac[6], uint32_t *req_exp, char *hostname) in getip_from_pool() argument
1476 if (nip) addip_to_lease(nip, mac, req_exp, hostname, 1); in getip_from_pool()