summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-conf.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-10-07 23:38:03 +0200
committerGitHub <noreply@github.com>2016-10-07 23:38:03 +0200
commit3157b2d9d25e359b0771ecbe1a6c866de141a800 (patch)
treef64f524b36d4796ca3ed55f2f50bc87e4d651db1 /src/resolve/resolved-conf.h
parentf767d3de652ec18c84ff0b99b1c4430269501e51 (diff)
parent1ae43295751fc235e7f93719a635a5b06f3ac09b (diff)
Merge pull request #4061 from dm0-/coreos-1545
resolved: add an option to disable the stub resolver
Diffstat (limited to 'src/resolve/resolved-conf.h')
-rw-r--r--src/resolve/resolved-conf.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/resolve/resolved-conf.h b/src/resolve/resolved-conf.h
index e1fd2cceec..fc425a36b2 100644
--- a/src/resolve/resolved-conf.h
+++ b/src/resolve/resolved-conf.h
@@ -19,7 +19,19 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+typedef enum DnsStubListenerMode DnsStubListenerMode;
+
+enum DnsStubListenerMode {
+ DNS_STUB_LISTENER_NO,
+ DNS_STUB_LISTENER_UDP,
+ DNS_STUB_LISTENER_TCP,
+ DNS_STUB_LISTENER_YES,
+ _DNS_STUB_LISTENER_MODE_MAX,
+ _DNS_STUB_LISTENER_MODE_INVALID = -1
+};
+
#include "resolved-manager.h"
+#include "resolved-dns-server.h"
int manager_parse_config_file(Manager *m);
@@ -33,4 +45,7 @@ const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, unsigned len
int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
-int config_parse_dnssec(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
+int config_parse_dns_stub_listener_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
+
+const char* dns_stub_listener_mode_to_string(DnsStubListenerMode p) _const_;
+DnsStubListenerMode dns_stub_listener_mode_from_string(const char *s) _pure_;