Lines Matching refs:client_id
330 free(lease->client_id); in dhcp_lease_free()
968 const void *client_id, *data; in dhcp_lease_save() local
1086 r = sd_dhcp_lease_get_client_id(lease, &client_id, &client_id_len); in dhcp_lease_save()
1090 client_id_hex = hexmem(client_id, client_id_len); in dhcp_lease_save()
1382 r = unhexmem(client_id_hex, SIZE_MAX, &lease->client_id, &lease->client_id_len); in dhcp_lease_load()
1438 int sd_dhcp_lease_get_client_id(sd_dhcp_lease *lease, const void **client_id, size_t *client_id_len… in sd_dhcp_lease_get_client_id() argument
1440 assert_return(client_id, -EINVAL); in sd_dhcp_lease_get_client_id()
1443 if (!lease->client_id) in sd_dhcp_lease_get_client_id()
1446 *client_id = lease->client_id; in sd_dhcp_lease_get_client_id()
1452 int dhcp_lease_set_client_id(sd_dhcp_lease *lease, const void *client_id, size_t client_id_len) { in dhcp_lease_set_client_id() argument
1454 assert_return(client_id || client_id_len <= 0, -EINVAL); in dhcp_lease_set_client_id()
1457 lease->client_id = mfree(lease->client_id); in dhcp_lease_set_client_id()
1461 p = memdup(client_id, client_id_len); in dhcp_lease_set_client_id()
1465 free(lease->client_id); in dhcp_lease_set_client_id()
1466 lease->client_id = p; in dhcp_lease_set_client_id()