summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-14 20:35:37 +0200
committerTom Gundersen <teg@jklm.no>2014-08-14 23:13:14 +0200
commit9b4d1882ca46d5b2ae7d028ec2b5d0d0c3a46a76 (patch)
treed2865779b227a0ca337ed7c23395c2c4cbdab2db /src/libsystemd/sd-network
parent9d685ca8193c0da3ad5746be3871f5350179a3b3 (diff)
sd-network: add sd_network_linkg_get_domains()
For now this only exposes the domain name (DHCP Option 15), and not the search string (DHCP Option 119), which will be implemented in a follow-up patch.
Diffstat (limited to 'src/libsystemd/sd-network')
-rw-r--r--src/libsystemd/sd-network/sd-network.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd/sd-network/sd-network.c b/src/libsystemd/sd-network/sd-network.c
index 97d041ae7f..4d8b7e7b2c 100644
--- a/src/libsystemd/sd-network/sd-network.c
+++ b/src/libsystemd/sd-network/sd-network.c
@@ -206,6 +206,10 @@ _public_ int sd_network_link_get_ntp(int ifindex, char ***ret) {
return network_get_link_strv("NTP", ifindex, ret);
}
+_public_ int sd_network_link_get_domains(int ifindex, char ***ret) {
+ return network_get_link_strv("DOMAINS", ifindex, ret);
+}
+
static inline int MONITOR_TO_FD(sd_network_monitor *m) {
return (int) (unsigned long) m - 1;
}