Lines Matching refs:hw_len
29 int clid_len, hw_len, hw_type; in lease_init() local
79 …hw_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()
382 (hw_len != 0 && memcmp(lease->hwaddr, hwaddr, hw_len) != 0)) in lease_set_hwaddr()
384 memcpy(lease->hwaddr, hwaddr, hw_len); in lease_set_hwaddr()
385 lease->hwaddr_len = hw_len; in lease_set_hwaddr()