Home
last modified time | relevance | path

Searched refs:hwaddr_len (Results 1 – 8 of 8) sorted by relevance

/external/dnsmasq/src/
Dhelper.c37 unsigned char action, hwaddr_len, hwaddr_type; member
132 if (data.hwaddr_type != ARPHRD_ETHER || data.hwaddr_len == 0) in create_helper()
134 for (i = 0; (i < data.hwaddr_len) && (i < DHCP_CHADDR_MAX); i++) in create_helper()
137 if (i != data.hwaddr_len - 1) in create_helper()
339 buf->hwaddr_len = lease->hwaddr_len; in queue_script()
348 memcpy(buf->hwaddr, lease->hwaddr, lease->hwaddr_len); in queue_script()
Dlease.c155 lease->hwaddr, lease->hwaddr_len, lease->hwaddr_type, NULL)) && in lease_update_from_configs()
193 if (lease->hwaddr_type != ARPHRD_ETHER || lease->hwaddr_len == 0) in lease_update_file()
195 for (i = 0; i < lease->hwaddr_len; i++) in lease_update_file()
198 if (i != lease->hwaddr_len - 1) in lease_update_file()
306 lease->hwaddr_len == hw_len && in lease_find_by_client()
335 lease->hwaddr_len = 256; /* illegal value */ in lease_allocate()
380 if (hw_len != lease->hwaddr_len || in lease_set_hwaddr()
385 lease->hwaddr_len = hw_len; in lease_set_hwaddr()
Ddnsmasq.h419 int hwaddr_len, hwaddr_type; member
439 int hwaddr_len, hwaddr_type; member
525 int hwaddr_len, hwaddr_type; member
Ddhcp.c654 conf_addr->hwaddr_len == len && in config_has_mac()
707 conf_addr->hwaddr_len == hw_len && in find_config()
827 conf_addr->hwaddr_len == ETHER_ADDR_LEN && in dhcp_read_ethers()
862 config->hwaddr->hwaddr_len = ETHER_ADDR_LEN; in dhcp_read_ethers()
Drfc2131.c274 if (mac->hwaddr_len == mess->hlen && in dhcp_reply()
430 (lease->hwaddr_len != mess->hlen || in dhcp_reply()
432 memcmp(lease->hwaddr, mess->chaddr, lease->hwaddr_len) != 0)) in dhcp_reply()
901 !config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) in dhcp_reply()
904 unsigned char *mac = extended_hwaddr(ltmp->hwaddr_type, ltmp->hwaddr_len, in dhcp_reply()
1092 if (config && config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) in dhcp_reply()
1095 print_mac(daemon->namebuff, ltmp->hwaddr, ltmp->hwaddr_len), in dhcp_reply()
Ddbus.c408 p = extended_hwaddr(lease->hwaddr_type, lease->hwaddr_len, in emit_dbus_signal()
Doption.c1842 newhw->hwaddr_len = parse_hex(a[j], newhw->hwaddr, DHCP_CHADDR_MAX, in one_opt()
2108 … new->hwaddr_len = parse_hex(comma, new->hwaddr, DHCP_CHADDR_MAX, &new->mask, &new->hwaddr_type); in one_opt()
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch374 buf->hwaddr_len = lease->hwaddr_len;