Lines Matching refs:dyn_lease
195 } dyn_lease; typedef
1200 dyn_lease *dls; in write_leasefile()
1210 dls = (dyn_lease*)listdls->arg; in write_leasefile()
1215 writeall(fd, dls, sizeof(dyn_lease)); in write_leasefile()
1336 if (((dyn_lease*) listdls->arg)->lease_nip == nip) { in verifyip_in_lease()
1337 if (((int32_t)(((dyn_lease*) listdls->arg)->expires) - time(NULL)) < 0) in verifyip_in_lease()
1341 if (!memcmp(((dyn_lease*) listdls->arg)->lease_mac, mac, 6)) return -1; in verifyip_in_lease()
1355 dyn_lease *dls; in addip_to_lease()
1360 if (!memcmp(((dyn_lease*) listdls->arg)->lease_mac, mac, 6)) { in addip_to_lease()
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()
1368 dls = xzalloc(sizeof(dyn_lease)); in addip_to_lease()
1423 if (!memcmp(((dyn_lease*) listdls->arg)->lease_mac, mac, 6)) { in delip_from_lease()
1424 ((dyn_lease*) listdls->arg)->expires = del_time + time(NULL); in delip_from_lease()
1443 if (!memcmp(((dyn_lease*)listdls->arg)->lease_mac, mac, 6)) { in getip_from_pool()
1444 nip = ((dyn_lease*)listdls->arg)->lease_nip; in getip_from_pool()
1547 dyn_lease *dls; in read_leasefile()
1550 dls = xzalloc(sizeof(dyn_lease)); in read_leasefile()
1559 while (read(fd, dls, sizeof(dyn_lease)) == sizeof(dyn_lease)) { in read_leasefile()