summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-link.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-07-23 23:10:00 +0200
committerTom Gundersen <teg@jklm.no>2014-07-23 23:54:52 +0200
commit6073b6f26ab9fc6bf335faa7073ec443eef093fd (patch)
treed851475cf1dc89b22f454d1577dd976196b4ef88 /src/resolve/resolved-link.h
parentb0e39c8284b5195850a58e4efcce2f059bdcc6ad (diff)
resolved: don't read DHCP leases
networkd will expose both statically configured DNS servers and servers receieved over DHCP in sd_network_get_dns(), so no need to keep the distinction in resolved.
Diffstat (limited to 'src/resolve/resolved-link.h')
-rw-r--r--src/resolve/resolved-link.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resolve/resolved-link.h b/src/resolve/resolved-link.h
index bd32a702fc..cef0400b21 100644
--- a/src/resolve/resolved-link.h
+++ b/src/resolve/resolved-link.h
@@ -52,8 +52,7 @@ struct Link {
LIST_HEAD(LinkAddress, addresses);
- LIST_HEAD(DnsServer, link_dns_servers);
- LIST_HEAD(DnsServer, dhcp_dns_servers);
+ LIST_HEAD(DnsServer, dns_servers);
DnsServer *current_dns_server;
DnsScope *unicast_scope;
@@ -74,7 +73,7 @@ int link_update_monitor(Link *l);
bool link_relevant(Link *l, int family);
LinkAddress* link_find_address(Link *l, int family, union in_addr_union *in_addr);
-DnsServer* link_find_dns_server(Link *l, DnsServerSource source, int family, union in_addr_union *in_addr);
+DnsServer* link_find_dns_server(Link *l, int family, union in_addr_union *in_addr);
DnsServer* link_get_dns_server(Link *l);
void link_next_dns_server(Link *l);