diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2015-04-10 15:59:00 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2015-08-21 11:23:22 +0300 |
commit | 6599680e2d33597f0f11a99e1c3c957b42418568 (patch) | |
tree | 8ef4124e7079777abbc9b976499a3d8a8da9becf /src/libsystemd-network/dhcp6-lease-internal.h | |
parent | 5da1b97f3c3d15521f2dcfbc18eccd6580122ebc (diff) |
sd-dhcp6: Add support for DHCPv6 NTP Server Option
Support NTP server and multicast addresses and NTP server domain names
as specified in RFC 5908.
Diffstat (limited to 'src/libsystemd-network/dhcp6-lease-internal.h')
-rw-r--r-- | src/libsystemd-network/dhcp6-lease-internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp6-lease-internal.h b/src/libsystemd-network/dhcp6-lease-internal.h index 37e7001320..ac7f84366d 100644 --- a/src/libsystemd-network/dhcp6-lease-internal.h +++ b/src/libsystemd-network/dhcp6-lease-internal.h @@ -46,6 +46,11 @@ struct sd_dhcp6_lease { size_t dns_allocated; char **domains; size_t domains_count; + struct in6_addr *ntp; + size_t ntp_count; + size_t ntp_allocated; + char **ntp_fqdn; + size_t ntp_fqdn_count; }; int dhcp6_lease_clear_timers(DHCP6IA *ia); @@ -65,6 +70,8 @@ int dhcp6_lease_get_iaid(sd_dhcp6_lease *lease, be32_t *iaid); int dhcp6_lease_set_dns(sd_dhcp6_lease *lease, uint8_t *optval, size_t optlen); int dhcp6_lease_set_domains(sd_dhcp6_lease *lease, uint8_t *optval, size_t optlen); +int dhcp6_lease_set_ntp(sd_dhcp6_lease *lease, uint8_t *optval, size_t optlen); + int dhcp6_lease_new(sd_dhcp6_lease **ret); DEFINE_TRIVIAL_CLEANUP_FUNC(sd_dhcp6_lease*, sd_dhcp6_lease_unref); |