Home
last modified time | relevance | path

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

/external/dnsmasq/src/
Dlease.c28 int clid_len, hw_len, hw_type; in lease_init() local
79 clid_len = 0; in lease_init()
81 clid_len = in lease_init()
99 (unsigned char*) daemon->packet, hw_len, hw_type, clid_len); in lease_init()
145 if ((config = find_config(daemon->dhcp_conf, NULL, lease->clid, lease->clid_len, in lease_update_from_configs()
188 if (lease->clid && lease->clid_len != 0) { in lease_update_file()
189 for (i = 0; i < lease->clid_len - 1; i++) ourprintf(&err, "%.2x:", lease->clid[i]); in lease_update_file()
258 unsigned char* clid, int clid_len) { in lease_find_by_client() argument
263 if (lease->clid && clid_len == lease->clid_len && in lease_find_by_client()
264 memcmp(clid, lease->clid, clid_len) == 0) in lease_find_by_client()
[all …]
Dhelper.c37 unsigned char clid_len, hostname_len, uclass_len, vclass_len, shost_len; member
128 if (!read_write(pipefd[0], buf, data.clid_len, 1)) continue; in create_helper()
129 for (p = daemon->packet, i = 0; i < data.clid_len; i++) { in create_helper()
131 if (i != data.clid_len - 1) p += sprintf(p, ":"); in create_helper()
172 if (data.clid_len != 0) my_setenv("DNSMASQ_CLIENT_ID", daemon->packet, &err); in create_helper()
260 unsigned int hostname_len = 0, clid_len = 0, vclass_len = 0; in queue_script() local
269 if (lease->clid) clid_len = lease->clid_len; in queue_script()
273 sizeof(struct script_data) + clid_len + vclass_len + uclass_len + shost_len + hostname_len; in queue_script()
290 buf->clid_len = clid_len; in queue_script()
318 if (clid_len != 0) { in queue_script()
[all …]
Ddnsmasq.h402 int clid_len; /* length of client identifier */ member
442 int clid_len; /* length of client identifier */ member
759 unsigned char* clid, int clid_len, unsigned char* hwaddr,
776 int hw_len, int hw_type, int clid_len);
781 unsigned char* clid, int clid_len);
793 unsigned char* extended_hwaddr(int hwtype, int hwlen, unsigned char* hwaddr, int clid_len,
Ddhcp.c520 unsigned char* clid, int clid_len, unsigned char* hwaddr, in find_config() argument
529 if (config->clid_len == clid_len && memcmp(config->clid, clid, clid_len) == 0 && in find_config()
535 if (*clid == 0 && config->clid_len == clid_len - 1 && in find_config()
536 memcmp(config->clid, clid + 1, clid_len - 1) == 0 && in find_config()
Drfc2131.c124 int clid_len = 0, ignore = 0, do_classes = 0, selecting = 0, pxearch = -1; in dhcp_reply() local
241 clid_len = option_len(opt); in dhcp_reply()
246 lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, clid, clid_len); in dhcp_reply()
251 clid_len = lease->clid_len; in dhcp_reply()
256 emac = extended_hwaddr(mess->htype, mess->hlen, mess->chaddr, clid_len, clid, &emac_len); in dhcp_reply()
336 config = find_config(daemon->dhcp_conf, context, clid, clid_len, mess->chaddr, mess->hlen, in dhcp_reply()
803 ltmp->clid_len, ltmp->clid, &len); in dhcp_reply()
1063 lease_set_hwaddr(lease, mess->chaddr, clid, mess->hlen, mess->htype, clid_len); in dhcp_reply()
1163 unsigned char* extended_hwaddr(int hwtype, int hwlen, unsigned char* hwaddr, int clid_len, in extended_hwaddr() argument
1165 if (hwlen == 0 && clid && clid_len > 3) { in extended_hwaddr()
[all …]
Doption.c1609 new->clid_len = len; in one_opt()