Home
last modified time | relevance | path

Searched refs:clid (Results 1 – 9 of 9) sorted by relevance

/external/dnsmasq/src/
Dlease.c154 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 …]
Drfc2131.c124 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 …]
Ddnsmasq.h408 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);
Ddhcp.c664 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()
Dhelper.c315 if (lease->clid) in queue_script()
373 memcpy(p, lease->clid, clid_len); in queue_script()
Ddbus.c409 lease->hwaddr, lease->clid_len, lease->clid, &i); in emit_dbus_signal()
Doption.c1819 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/
Dlease.access.patch412 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/
Dif-options.c279 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()