Home
last modified time | relevance | path

Searched refs:hw_len (Results 1 – 3 of 3) sorted by relevance

/external/dnsmasq/src/
Dlease.c29 int clid_len, hw_len, hw_type; in lease_init() local
79hw_len = parse_hex(daemon->dhcp_buff2, (unsigned char *)daemon->dhcp_buff2, DHCP_CHADDR_MAX, NULL,… in lease_init()
81 if (hw_type == 0 && hw_len != 0) in lease_init()
106 …e, (unsigned char *)daemon->dhcp_buff2, (unsigned char *)daemon->packet, hw_len, hw_type, clid_len… in lease_init()
292 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, in lease_find_by_client() argument
305 hw_len != 0 && in lease_find_by_client()
306 lease->hwaddr_len == hw_len && in lease_find_by_client()
308 memcmp(hwaddr, lease->hwaddr, hw_len) == 0) in lease_find_by_client()
378 unsigned char *clid, int hw_len, int hw_type, int clid_len) in lease_set_hwaddr() argument
380 if (hw_len != lease->hwaddr_len || in lease_set_hwaddr()
[all …]
Ddhcp.c469 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, in address_allocate() argument
482 for (j = 0, i = 0; i < hw_len; i++) in address_allocate()
603 unsigned char *hwaddr, int hw_len, in find_config() argument
629 if (config_has_mac(config, hwaddr, hw_len, hw_type) && in find_config()
645 conf_addr->hwaddr_len == hw_len && in find_config()
647 (new = memcmp_masked(conf_addr->hwaddr, hwaddr, hw_len, conf_addr->wildcard_mask)) > count) in find_config()
Ddnsmasq.h766 struct in_addr *addrp, unsigned char *hwaddr, int hw_len,
772 unsigned char *hwaddr, int hw_len,
789 unsigned char *clid, int hw_len, int hw_type, int clid_len);
793 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type,