Lines Matching refs:hw_len
29 int clid_len, hw_len, hw_type;
79 hw_len = parse_hex(daemon->dhcp_buff2, (unsigned char *)daemon->dhcp_buff2, DHCP_CHADDR_MAX, NULL, &hw_type);
81 if (hw_type == 0 && hw_len != 0)
106 lease_set_hwaddr(lease, (unsigned char *)daemon->dhcp_buff2, (unsigned char *)daemon->packet, hw_len, hw_type, clid_len);
292 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type,
305 hw_len != 0 &&
306 lease->hwaddr_len == hw_len &&
308 memcmp(hwaddr, lease->hwaddr, hw_len) == 0)
378 unsigned char *clid, int hw_len, int hw_type, int clid_len)
380 if (hw_len != lease->hwaddr_len ||
382 (hw_len != 0 && memcmp(lease->hwaddr, hwaddr, hw_len) != 0))
384 memcpy(lease->hwaddr, hwaddr, hw_len);
385 lease->hwaddr_len = hw_len;