]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-server.h
resolved: rework dns_server_limited_domains(), replace by dns_scope_has_route_only_do...
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Dec 2018 11:08:18 +0000 (12:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Dec 2018 11:09:00 +0000 (12:09 +0100)
commitf76fa088994a74be5aae636e4695bc27a50f0cc2
tree4cce383617878ebd64870e61e88df37490ecd0ba
parent1750854916df6a777e6c12451eb5eb2aebbc93fe
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.
src/resolve/resolved-dns-scope.c
src/resolve/resolved-dns-scope.h
src/resolve/resolved-dns-server.c
src/resolve/resolved-dns-server.h
src/resolve/resolved-resolv-conf.c