summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/dhcp-lease-internal.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2014-11-19 00:13:12 +0100
committerTom Gundersen <teg@jklm.no>2014-11-19 00:58:51 +0100
commite37f74a6d5cc3c0a3d214c3a7f5de234b0696b4c (patch)
tree1ab3077929b5ec5bbe654a26ac36ad2a86ba73c9 /src/libsystemd-network/dhcp-lease-internal.h
parentsd-dhcp-client: allow getting/setting the client ID (diff)
downloadsystemd-e37f74a6d5cc3c0a3d214c3a7f5de234b0696b4c.tar.xz
systemd-e37f74a6d5cc3c0a3d214c3a7f5de234b0696b4c.zip
sd-dhcp-lease: load/save client ID
The lease is usually tied to the client ID, so users of the lease may want to know what client ID it was acquired with.
Diffstat (limited to 'src/libsystemd-network/dhcp-lease-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-lease-internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp-lease-internal.h b/src/libsystemd-network/dhcp-lease-internal.h
index 8806351eb2..9e184ac4b5 100644
--- a/src/libsystemd-network/dhcp-lease-internal.h
+++ b/src/libsystemd-network/dhcp-lease-internal.h
@@ -70,6 +70,8 @@ struct sd_dhcp_lease {
char *domainname;
char *hostname;
char *root_path;
+ uint8_t *client_id;
+ size_t client_id_len;
};
int dhcp_lease_new(sd_dhcp_lease **ret);
@@ -78,5 +80,8 @@ int dhcp_lease_parse_options(uint8_t code, uint8_t len, const uint8_t *option,
int dhcp_lease_set_default_subnet_mask(sd_dhcp_lease *lease);
+int dhcp_lease_set_client_id(sd_dhcp_lease *lease, const uint8_t *client_id,
+ size_t client_id_len);
+
DEFINE_TRIVIAL_CLEANUP_FUNC(sd_dhcp_lease*, sd_dhcp_lease_unref);
#define _cleanup_dhcp_lease_unref_ _cleanup_(sd_dhcp_lease_unrefp)