Lines Matching full:now
24 void lease_init(time_t now)
96 lease->expires = (time_t)ei + now;
141 lease_prune(NULL, now);
173 void lease_update_file(time_t now)
231 if (next_event == 0 || difftime(next_event, LEASE_RETRY + now) > 0.0)
232 next_event = LEASE_RETRY + now;
236 (unsigned int)difftime(next_event, now));
240 alarm((unsigned)difftime(next_event, now));
264 void lease_prune(struct dhcp_lease *target, time_t now)
271 if ((lease->expires != 0 && difftime(now, lease->expires) > 0) || lease == target)
349 void lease_set_expires(struct dhcp_lease *lease, unsigned int len, time_t now)
351 time_t exp = now + (time_t)len;
529 int do_script_run(time_t now)
548 queue_script(ACTION_OLD_HOSTNAME, lease, lease->old_hostname, now);
558 queue_script(ACTION_DEL, lease, lease->old_hostname, now);
581 queue_script(ACTION_OLD_HOSTNAME, lease, lease->old_hostname, now);
594 lease->fqdn ? lease->fqdn : lease->hostname, now);