Lines Matching refs:hw_len
28 int clid_len, hw_len, hw_type; in lease_init() local
71 hw_len = parse_hex(daemon->dhcp_buff2, (unsigned char*) daemon->dhcp_buff2, in lease_init()
74 if (hw_type == 0 && hw_len != 0) hw_type = ARPHRD_ETHER; in lease_init()
99 (unsigned char*) daemon->packet, hw_len, hw_type, clid_len); in lease_init()
257 struct dhcp_lease* lease_find_by_client(unsigned char* hwaddr, int hw_len, int hw_type, in lease_find_by_client() argument
268 if ((!lease->clid || !clid) && hw_len != 0 && lease->hwaddr_len == hw_len && in lease_find_by_client()
269 lease->hwaddr_type == hw_type && memcmp(hwaddr, lease->hwaddr, hw_len) == 0) in lease_find_by_client()
330 int hw_len, int hw_type, int clid_len) { in lease_set_hwaddr() argument
331 if (hw_len != lease->hwaddr_len || hw_type != lease->hwaddr_type || in lease_set_hwaddr()
332 (hw_len != 0 && memcmp(lease->hwaddr, hwaddr, hw_len) != 0)) { in lease_set_hwaddr()
333 memcpy(lease->hwaddr, hwaddr, hw_len); in lease_set_hwaddr()
334 lease->hwaddr_len = hw_len; in lease_set_hwaddr()