Home
last modified time | relevance | path

Searched refs:req_exp (Results 1 – 1 of 1) sorted by relevance

/external/toybox/toys/pending/
Ddhcpd.c912 static uint32_t get_lease(uint32_t req_exp) in get_lease() argument
915 req_exp = req_exp - now; in get_lease()
916 if ((req_exp <= 0) || (req_exp > gconfig.max_lease_sec)) in get_lease()
919 if (req_exp < gconfig.min_lease_sec) in get_lease()
922 return req_exp; in get_lease()
949 static int addip_to_lease(uint32_t assigned_nip, uint8_t mac[6], uint32_t *req_exp, char *hostname,… in addip_to_lease() argument
957 if (update) *req_exp = get_lease(*req_exp + ((dyn_lease*) listdls->arg)->expires); in addip_to_lease()
958 ((dyn_lease*) listdls->arg)->expires = *req_exp + now; in addip_to_lease()
969 if (update) *req_exp = get_lease(*req_exp + now); in addip_to_lease()
970 dls->expires = *req_exp + now; in addip_to_lease()
[all …]