summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp6-lease-internal.h
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2020-07-28 07:48:11 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2020-08-03 09:36:18 +0200
commitc43eea9f2effbb066901a61eafef473558d37b0f (patch)
treef13e4e2b29204c97bede643b37dd6861ac815d85 /src/libsystemd-network/dhcp6-lease-internal.h
parentaf710b535b4ceacd0aecec6748a4f8ee57742e99 (diff)
downloadsystemd-c43eea9f2effbb066901a61eafef473558d37b0f.tar.gz
dhcp6: parse the FQDN option
Parse option 39 (Client Fully Qualified Domain Name, RFC 4704) from the DHCP reply, which specifies the FQDN assigned by the server to the client.
Diffstat (limited to 'src/libsystemd-network/dhcp6-lease-internal.h')
-rw-r--r--src/libsystemd-network/dhcp6-lease-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp6-lease-internal.h b/src/libsystemd-network/dhcp6-lease-internal.h
index e004f48b4e..df6c95e0b3 100644
--- a/src/libsystemd-network/dhcp6-lease-internal.h
+++ b/src/libsystemd-network/dhcp6-lease-internal.h
@@ -35,6 +35,7 @@ struct sd_dhcp6_lease {
size_t ntp_allocated;
char **ntp_fqdn;
size_t ntp_fqdn_count;
+ char *fqdn;
};
int dhcp6_lease_ia_rebind_expire(const DHCP6IA *ia, uint32_t *expire);
@@ -57,5 +58,6 @@ int dhcp6_lease_set_domains(sd_dhcp6_lease *lease, uint8_t *optval,
int dhcp6_lease_set_ntp(sd_dhcp6_lease *lease, uint8_t *optval, size_t optlen);
int dhcp6_lease_set_sntp(sd_dhcp6_lease *lease, uint8_t *optval,
size_t optlen) ;
+int dhcp6_lease_set_fqdn(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen);
int dhcp6_lease_new(sd_dhcp6_lease **ret);