• Home
  • Raw
  • Download

Lines Matching refs:dhcp_lease

21 static struct dhcp_lease *leases = NULL, *old_leases = NULL;
27 struct dhcp_lease* lease; in lease_init()
140 struct dhcp_lease* lease; in lease_update_from_configs()
163 struct dhcp_lease* lease; in lease_update_file()
219 struct dhcp_lease* lease; in lease_update_dns()
235 void lease_prune(struct dhcp_lease* target, time_t now) { in lease_prune()
236 struct dhcp_lease *lease, *tmp, **up; in lease_prune()
257 struct dhcp_lease* lease_find_by_client(unsigned char* hwaddr, int hw_len, int hw_type, in lease_find_by_client()
259 struct dhcp_lease* lease; in lease_find_by_client()
275 struct dhcp_lease* lease_find_by_addr(struct in_addr addr) { in lease_find_by_addr()
276 struct dhcp_lease* lease; in lease_find_by_addr()
284 struct dhcp_lease* lease_allocate(struct in_addr addr) { in lease_allocate()
285 struct dhcp_lease* lease; in lease_allocate()
286 if (!leases_left || !(lease = whine_malloc(sizeof(struct dhcp_lease)))) return NULL; in lease_allocate()
288 memset(lease, 0, sizeof(struct dhcp_lease)); in lease_allocate()
305 void lease_set_expires(struct dhcp_lease* lease, unsigned int len, time_t now) { in lease_set_expires()
329 void lease_set_hwaddr(struct dhcp_lease* lease, unsigned char* hwaddr, unsigned char* clid, in lease_set_hwaddr()
357 static void kill_name(struct dhcp_lease* lease) { in kill_name()
376 void lease_set_hostname(struct dhcp_lease* lease, char* name, int auth) { in lease_set_hostname()
377 struct dhcp_lease* lease_tmp; in lease_set_hostname()
436 void lease_set_interface(struct dhcp_lease* lease, int interface) { in lease_set_interface()
444 struct dhcp_lease* lease; in rerun_scripts()
455 struct dhcp_lease* lease; in do_script_run()