Lines Matching refs:lease
22 DHCPLease *lease; in add_lease() local
26 assert_se(lease = new0(DHCPLease, 1)); in add_lease()
27 lease->client_id.length = 2; in add_lease()
28 assert_se(lease->client_id.data = malloc(2)); in add_lease()
29 lease->client_id.data[0] = 2; in add_lease()
30 lease->client_id.data[1] = i; in add_lease()
31 lease->address = htobe32(UINT32_C(10) << 24 | i); in add_lease()
32 lease->gateway = server_address->s_addr; in add_lease()
33 lease->expiration = UINT64_MAX; in add_lease()
34 lease->htype = ARPHRD_ETHER; in add_lease()
35 lease->hlen = ETH_ALEN; in add_lease()
36 memcpy(lease->chaddr, chaddr, ETH_ALEN); in add_lease()
37 …sure_put(&server->bound_leases_by_client_id, &dhcp_lease_hash_ops, &lease->client_id, lease) >= 0); in add_lease()
38 …map_ensure_put(&server->bound_leases_by_address, NULL, UINT32_TO_PTR(lease->address), lease) >= 0); in add_lease()
39 lease->server = server; in add_lease()