summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/dhcp-lease-internal.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-01-02 22:06:38 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-01-02 22:06:39 +0100
commitd59a2b3bf58ede996b1f80324385bd3443e8c874 (patch)
treeb6e3ae59d434991590a42ba7e11e084bfd1cc14e /src/libsystemd-network/dhcp-lease-internal.h
parentdhcp: move sd_dhcp_client_id_to_string() to sd-dhcp-client-id.[ch] (diff)
downloadsystemd-d59a2b3bf58ede996b1f80324385bd3443e8c874.tar.xz
systemd-d59a2b3bf58ede996b1f80324385bd3443e8c874.zip
sd-dhcp-lease: use sd_dhcp_client_id
Diffstat (limited to 'src/libsystemd-network/dhcp-lease-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-lease-internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-network/dhcp-lease-internal.h b/src/libsystemd-network/dhcp-lease-internal.h
index a3d8bb45b3..b7bc142ef7 100644
--- a/src/libsystemd-network/dhcp-lease-internal.h
+++ b/src/libsystemd-network/dhcp-lease-internal.h
@@ -8,6 +8,7 @@
#include "sd-dhcp-client.h"
#include "alloc-util.h"
+#include "dhcp-client-id-internal.h"
#include "dhcp-option.h"
#include "list.h"
#include "time-util.h"
@@ -67,8 +68,7 @@ struct sd_dhcp_lease {
char *root_path;
char *captive_portal;
- void *client_id;
- size_t client_id_len;
+ sd_dhcp_client_id client_id;
void *vendor_specific;
size_t vendor_specific_len;
@@ -92,7 +92,7 @@ int dhcp_lease_insert_private_option(sd_dhcp_lease *lease, uint8_t tag, const vo
void dhcp_lease_set_timestamp(sd_dhcp_lease *lease, const triple_timestamp *timestamp);
int dhcp_lease_set_default_subnet_mask(sd_dhcp_lease *lease);
-int dhcp_lease_set_client_id(sd_dhcp_lease *lease, const void *client_id, size_t client_id_len);
+int dhcp_lease_set_client_id(sd_dhcp_lease *lease, const sd_dhcp_client_id *client_id);
#define dhcp_lease_unref_and_replace(a, b) \
unref_and_replace_full(a, b, sd_dhcp_lease_ref, sd_dhcp_lease_unref)