/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 813 unsigned char *clid, int clid_len, 832 unsigned char *clid, int hw_len, int hw_type, int clid_len); 837 unsigned char *clid, int clid_len); 850 int clid_len, unsigned char *clid, int *len_out);
|
D | dhcp.c | 664 unsigned char *clid, int clid_len, in find_config() argument 672 if (clid) in find_config() 677 memcmp(config->clid, clid, clid_len) == 0 && in find_config() 683 if (*clid == 0 && config->clid_len == clid_len-1 && in find_config() 684 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 | dbus.c | 409 lease->hwaddr, lease->clid_len, lease->clid, &i); in emit_dbus_signal()
|
D | option.c | 1819 if ((new->clid = opt_malloc(len))) in one_opt() 1823 memcpy(new->clid, arg, len); in one_opt() 2712 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()
|