summaryrefslogtreecommitdiff
path: root/src/systemd/sd-network.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-19 18:42:14 +0200
committerTom Gundersen <teg@jklm.no>2014-05-19 18:42:14 +0200
commitbcb7a07e0a785bda1eed658e984ff6b4a11cba9a (patch)
treeca7b9498783bac32e153b2059cea24863a6642e4 /src/systemd/sd-network.h
parentd408b506814a0f99590d946b3bf99b57ba78336b (diff)
downloadsystemd-bcb7a07e0a785bda1eed658e984ff6b4a11cba9a.tar.gz
networkd/sd-network: expose statically configured NTP servers
Diffstat (limited to 'src/systemd/sd-network.h')
-rw-r--r--src/systemd/sd-network.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index 860325a6ed..e42d1060e6 100644
--- a/src/systemd/sd-network.h
+++ b/src/systemd/sd-network.h
@@ -83,12 +83,21 @@ int sd_network_get_dhcp_lease(unsigned index, sd_dhcp_lease **ret);
/* Returns true if link is configured to respect DNS entries received by DHCP */
int sd_network_dhcp_use_dns(unsigned index);
+/* Returns true if link is configured to respect NTP entries received by DHCP */
+int sd_network_dhcp_use_ntp(unsigned index);
+
/* Get IPv4 DNS entries statically configured for the link */
int sd_network_get_dns(unsigned index, struct in_addr **addr, size_t *addr_size);
+/* Get IPv4 NTP entries statically configured for the link */
+int sd_network_get_ntp(unsigned index, struct in_addr **addr, size_t *addr_size);
+
/* Get IPv6 DNS entries statically configured for the link */
int sd_network_get_dns6(unsigned index, struct in6_addr **addr, size_t *addr_size);
+/* Get IPv6 NTP entries statically configured for the link */
+int sd_network_get_ntp6(unsigned index, struct in6_addr **addr, size_t *addr_size);
+
/* Get all network interfaces' indices, and store them in *indices. Returns
* the number of indices. If indices is NULL, only returns the number of indices. */
int sd_network_get_ifindices(unsigned **indices);