Lines Matching refs:clid
154 if ((config = find_config(daemon->dhcp_conf, NULL, lease->clid, lease->clid_len, in lease_update_from_configs()
205 if (lease->clid && lease->clid_len != 0) in lease_update_file()
208 ourprintf(&err, "%.2x:", lease->clid[i]); in lease_update_file()
209 ourprintf(&err, "%.2x\n", lease->clid[i]); in lease_update_file()
293 unsigned char *clid, int clid_len) in lease_find_by_client() argument
297 if (clid) in lease_find_by_client()
299 if (lease->clid && clid_len == lease->clid_len && in lease_find_by_client()
300 memcmp(clid, lease->clid, clid_len) == 0) in lease_find_by_client()
304 if ((!lease->clid || !clid) && in lease_find_by_client()
378 unsigned char *clid, int hw_len, int hw_type, int clid_len) in lease_set_hwaddr() argument
393 if (clid_len != 0 && clid) in lease_set_hwaddr()
395 if (!lease->clid) in lease_set_hwaddr()
401 free(lease->clid); in lease_set_hwaddr()
402 if (!(lease->clid = whine_malloc(clid_len))) in lease_set_hwaddr()
405 else if (memcmp(lease->clid, clid, clid_len) != 0) in lease_set_hwaddr()
409 memcpy(lease->clid, clid, clid_len); in lease_set_hwaddr()
566 free(lease->clid); in do_script_run()