Lines Matching refs:clid_len
29 int clid_len, hw_len, hw_type; in lease_init() local
87 clid_len = 0; in lease_init()
89 clid_len = parse_hex(daemon->packet, (unsigned char *)daemon->packet, 255, NULL, NULL); in lease_init()
106 …, (unsigned char *)daemon->dhcp_buff2, (unsigned char *)daemon->packet, hw_len, hw_type, clid_len); in lease_init()
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()
207 for (i = 0; i < lease->clid_len - 1; i++) in lease_update_file()
293 unsigned char *clid, int clid_len) in lease_find_by_client() argument
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()
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()
396 lease->clid_len = 0; in lease_set_hwaddr()
398 if (lease->clid_len != clid_len) 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()
408 lease->clid_len = clid_len; in lease_set_hwaddr()
409 memcpy(lease->clid, clid, clid_len); in lease_set_hwaddr()