/external/dnsmasq/src/ |
D | lease.c | 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 [all …]
|
D | rfc2131.c | 124 unsigned char *opt, *clid = NULL; in dhcp_reply() local 255 clid = option_ptr(opt, 0); in dhcp_reply() 259 lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, clid, clid_len); in dhcp_reply() 263 if (lease && !clid && lease->clid) in dhcp_reply() 266 clid = lease->clid; 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() 708 clid = NULL; 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() [all …]
|
D | dnsmasq.h | 408 unsigned char *clid; /* clientid */ member 448 unsigned char *clid; /* clientid */ 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);
|
D | dhcp.c | 669 unsigned char *clid, int clid_len, in find_config() argument 677 if (clid) 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()
|
D | helper.c | 315 if (lease->clid) in queue_script() 373 memcpy(p, lease->clid, clid_len); in queue_script()
|
D | option.c | 1797 if ((new->clid = opt_malloc(len))) in one_opt() 1801 memcpy(new->clid, arg, len); in one_opt() 2703 free(configs->clid); in reread_dhcp()
|
/external/dnsmasq/contrib/lease-access/ |
D | lease.access.patch | 412 int clid_len, unsigned char *clid, int *len_out); 461 unsigned char *opt, *clid = NULL; 479 config = find_config(daemon->dhcp_conf, context, clid, clid_len,
|
/external/dhcpcd-6.8.2/ |
D | if-options.c | 279 parse_string_hwaddr(char *sbuf, size_t slen, const char *str, int clid) in parse_string_hwaddr() argument 309 if (clid && *str) { in parse_string_hwaddr()
|