summaryrefslogtreecommitdiff
path: root/src/systemd/sd-network.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-04 13:47:53 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-21 12:10:07 +0100
commitc629354e84cd154ac30ec0a70ff7d937f02dff0b (patch)
treef314f72fa2e08ee411440788abcbf051745d8d2c /src/systemd/sd-network.h
parent7ece6f58970710207ee29dabc7fc2920dca4b335 (diff)
downloadsystemd-c629354e84cd154ac30ec0a70ff7d937f02dff0b.tar.gz
sd-network: add new API sd_network_link_get_dns_default_route()
This simply reads from networkd's state files whether a link shall be used as DNS default route.
Diffstat (limited to 'src/systemd/sd-network.h')
-rw-r--r--src/systemd/sd-network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index c8b7226bca..cc6bca9f5e 100644
--- a/src/systemd/sd-network.h
+++ b/src/systemd/sd-network.h
@@ -151,6 +151,9 @@ int sd_network_link_get_search_domains(int ifindex, char ***domains);
/* Get the route DNS domain names for a given link. */
int sd_network_link_get_route_domains(int ifindex, char ***domains);
+/* Get whether this link shall be used as 'default route' for DNS queries */
+int sd_network_link_get_dns_default_route(int ifindex);
+
/* Get the carrier interface indexes to which current link is bound to. */
int sd_network_link_get_carrier_bound_to(int ifindex, int **ifindexes);