Searched refs:clid (Results 1 – 6 of 6) sorted by relevance
/external/dnsmasq/src/ |
D | lease.c | 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() 190 ourprintf(&err, "%.2x\n", lease->clid[i]); in lease_update_file() 258 unsigned char* clid, int clid_len) { in lease_find_by_client() argument 261 if (clid) in lease_find_by_client() 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() 268 if ((!lease->clid || !clid) && hw_len != 0 && lease->hwaddr_len == hw_len && in lease_find_by_client() 329 void lease_set_hwaddr(struct dhcp_lease* lease, unsigned char* hwaddr, unsigned char* clid, in lease_set_hwaddr() argument [all …]
|
D | dnsmasq.h | 403 unsigned char* clid; /* clientid */ member 443 unsigned char* clid; /* clientid */ member 759 unsigned char* clid, int clid_len, unsigned char* hwaddr, 775 void lease_set_hwaddr(struct dhcp_lease* lease, unsigned char* hwaddr, unsigned char* clid, 781 unsigned char* clid, int clid_len); 794 unsigned char* clid, int* len_out);
|
D | rfc2131.c | 119 unsigned char *opt, *clid = NULL; in dhcp_reply() local 242 clid = option_ptr(opt, 0); in dhcp_reply() 246 lease = lease_find_by_client(mess->chaddr, mess->hlen, mess->htype, clid, clid_len); in dhcp_reply() 250 if (lease && !clid && lease->clid) { in dhcp_reply() 252 clid = lease->clid; 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() 628 if (have_config(config, CONFIG_NOCLID)) clid = NULL; 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() [all …]
|
D | dhcp.c | 520 unsigned char* clid, int clid_len, unsigned char* hwaddr, in find_config() argument 526 if (clid) in find_config() 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()
|
D | helper.c | 269 if (lease->clid) clid_len = lease->clid_len; in queue_script() 319 memcpy(p, lease->clid, clid_len); in queue_script()
|
D | option.c | 1607 if ((new->clid = opt_malloc(len))) { in one_opt() 1610 memcpy(new->clid, arg, len); in one_opt() 2389 if (configs->flags & CONFIG_CLID) free(configs->clid); in reread_dhcp()
|