diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-04 12:08:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-21 12:09:00 +0100 |
commit | f76fa088994a74be5aae636e4695bc27a50f0cc2 (patch) | |
tree | 4cce383617878ebd64870e61e88df37490ecd0ba /src/resolve/resolved-dns-scope.h | |
parent | resolved: bind .local domains to mDNS with DNS_SCOPE_YES, similar LLMNR (diff) | |
download | systemd-f76fa088994a74be5aae636e4695bc27a50f0cc2.tar.xz systemd-f76fa088994a74be5aae636e4695bc27a50f0cc2.zip |
resolved: rework dns_server_limited_domains(), replace by dns_scope_has_route_only_domains()
The function dns_server_limited_domains() was very strange as it
enumerate the domains associated with a DnsScope object to determine
whether any "route-only" domains, but did so as a function associated
with a DnsServer object.
Let's clear this up, and replace it by a function associated with a
DnsScope instead. This makes more sense philosphically and allows us to
reduce the loops through which we need to jump to determine whether a
scope is suitable for default routing a bit.
Diffstat (limited to 'src/resolve/resolved-dns-scope.h')
-rw-r--r-- | src/resolve/resolved-dns-scope.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.h b/src/resolve/resolved-dns-scope.h index 546d01c656..6f47a5593f 100644 --- a/src/resolve/resolved-dns-scope.h +++ b/src/resolve/resolved-dns-scope.h @@ -107,5 +107,6 @@ int dns_scope_ifindex(DnsScope *s); int dns_scope_announce(DnsScope *scope, bool goodbye); int dns_scope_add_dnssd_services(DnsScope *scope); - int dns_scope_remove_dnssd_services(DnsScope *scope); + +bool dns_scope_has_route_only_domains(DnsScope *scope); |