Lines Matching refs:dhcp_lease

21 static struct dhcp_lease *leases = NULL, *old_leases = NULL;
28 struct dhcp_lease *lease; in lease_init()
149 struct dhcp_lease *lease; in lease_update_from_configs()
175 struct dhcp_lease *lease; in lease_update_file()
245 struct dhcp_lease *lease; in lease_update_dns()
264 void lease_prune(struct dhcp_lease *target, time_t now) in lease_prune()
266 struct dhcp_lease *lease, *tmp, **up; in lease_prune()
292 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, in lease_find_by_client()
295 struct dhcp_lease *lease; in lease_find_by_client()
314 struct dhcp_lease *lease_find_by_addr(struct in_addr addr) in lease_find_by_addr()
316 struct dhcp_lease *lease; in lease_find_by_addr()
326 struct dhcp_lease *lease_allocate(struct in_addr addr) in lease_allocate()
328 struct dhcp_lease *lease; in lease_allocate()
329 if (!leases_left || !(lease = whine_malloc(sizeof(struct dhcp_lease)))) in lease_allocate()
332 memset(lease, 0, sizeof(struct dhcp_lease)); in lease_allocate()
349 void lease_set_expires(struct dhcp_lease *lease, unsigned int len, time_t now) in lease_set_expires()
377 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, in lease_set_hwaddr()
414 static void kill_name(struct dhcp_lease *lease) in kill_name()
436 void lease_set_hostname(struct dhcp_lease *lease, char *name, int auth) in lease_set_hostname()
438 struct dhcp_lease *lease_tmp; in lease_set_hostname()
507 void lease_set_interface(struct dhcp_lease *lease, int interface) in lease_set_interface()
518 struct dhcp_lease *lease; in rerun_scripts()
531 struct dhcp_lease *lease; in do_script_run()