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.c531 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, in address_allocate() argument
544 for (j = 0, i = 0; i < hw_len; i++) in address_allocate()
665 unsigned char *hwaddr, int hw_len, in find_config() argument
691 if (config_has_mac(config, hwaddr, hw_len, hw_type) && in find_config()
707 conf_addr->hwaddr_len == hw_len && in find_config()
709 (new = memcmp_masked(conf_addr->hwaddr, hwaddr, hw_len, conf_addr->wildcard_mask)) > count) in find_config()
Ddnsmasq.h807 struct in_addr *addrp, unsigned char *hwaddr, int hw_len,
813 unsigned char *hwaddr, int hw_len,
831 unsigned char *clid, int hw_len, int hw_type, int clid_len);
835 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type,