diff options
author | Ronan Pigott <ronan@rjp.ie> | 2024-08-21 18:36:13 +0200 |
---|---|---|
committer | Ronan Pigott <ronan@rjp.ie> | 2024-08-21 18:51:42 +0200 |
commit | c00157ddc2a72e23d60b61c39961fe4fbfd40ad0 (patch) | |
tree | 7c8b99137025385b9d5b93e0893fb6ceee93d215 /src/resolve/resolved-dns-server.h | |
parent | Revert "resolved: demote the global unicast scope" (diff) | |
download | systemd-c00157ddc2a72e23d60b61c39961fe4fbfd40ad0.tar.xz systemd-c00157ddc2a72e23d60b61c39961fe4fbfd40ad0.zip |
resolved: introduce dns_server_is_fallback
Diffstat (limited to '')
-rw-r--r-- | src/resolve/resolved-dns-server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-server.h b/src/resolve/resolved-dns-server.h index 5e1d5698f6..7d7d294c82 100644 --- a/src/resolve/resolved-dns-server.h +++ b/src/resolve/resolved-dns-server.h @@ -182,4 +182,8 @@ void dns_server_unref_stream(DnsServer *s); DnsScope *dns_server_scope(DnsServer *s); +static inline bool dns_server_is_fallback(DnsServer *s) { + return s && s->type == DNS_SERVER_FALLBACK; +} + int dns_server_dump_state_to_json(DnsServer *server, sd_json_variant **ret); |