Home
last modified time | relevance | path

Searched refs:clid_len (Results 1 – 8 of 8) sorted by relevance

/external/dnsmasq/src/
Dlease.c29 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()
[all …]
Dhelper.c38 unsigned char clid_len, hostname_len, uclass_len, vclass_len, shost_len; member
142 if (!read_write(pipefd[0], buf, data.clid_len, 1)) in create_helper()
144 for (p = daemon->packet, i = 0; i < data.clid_len; i++) in create_helper()
147 if (i != data.clid_len - 1) in create_helper()
195 if (data.clid_len != 0) in create_helper()
302 unsigned int hostname_len = 0, clid_len = 0, vclass_len = 0; in queue_script() local
316 clid_len = lease->clid_len; in queue_script()
320 …size = sizeof(struct script_data) + clid_len + vclass_len + uclass_len + shost_len + hostname_len; in queue_script()
341 buf->clid_len = clid_len; in queue_script()
371 if (clid_len != 0) in queue_script()
[all …]
Ddnsmasq.h407 int clid_len; /* length of client identifier */ member
447 int clid_len; /* length of client identifier */ member
782 unsigned char *clid, int clid_len,
801 unsigned char *clid, int hw_len, int hw_type, int clid_len);
806 unsigned char *clid, int clid_len);
819 int clid_len, unsigned char *clid, int *len_out);
Ddhcp.c669 unsigned char *clid, int clid_len, in find_config() argument
681 if (config->clid_len == clid_len && in find_config()
682 memcmp(config->clid, clid, clid_len) == 0 && in find_config()
688 if (*clid == 0 && config->clid_len == clid_len-1 && in find_config()
689 memcmp(config->clid, clid+1, clid_len-1) == 0 && in find_config()
Drfc2131.c129 int clid_len = 0, ignore = 0, do_classes = 0, selecting = 0, pxearch = -1; in dhcp_reply() local
254 clid_len = option_len(opt); in dhcp_reply()
259 lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, clid, clid_len); in dhcp_reply()
265 clid_len = lease->clid_len; in dhcp_reply()
270 emac = extended_hwaddr(mess->htype, mess->hlen, mess->chaddr, clid_len, clid, &emac_len); in dhcp_reply()
362 config = find_config(daemon->dhcp_conf, context, clid, clid_len, in dhcp_reply()
905 ltmp->hwaddr, ltmp->clid_len, ltmp->clid, &len); in dhcp_reply()
1199 lease_set_hwaddr(lease, mess->chaddr, clid, mess->hlen, mess->htype, clid_len); in dhcp_reply()
1311 int clid_len, unsigned char *clid, int *len_out) in extended_hwaddr() argument
1313 if (hwlen == 0 && clid && clid_len > 3) in extended_hwaddr()
[all …]
Doption.c1800 new->clid_len = len; in one_opt()
/external/dnsmasq/contrib/wrt/
Ddhcp_release.c311 unsigned int clid_len = parse_hex(argv[4], p+2, 255, NULL); in main() local
313 *(p++) = clid_len; in main()
314 p += clid_len; in main()
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch412 int clid_len, unsigned char *clid, int *len_out);
479 config = find_config(daemon->dhcp_conf, context, clid, clid_len,