chiark / gitweb /
man: add systemd-verify(1)
[elogind.git] / src / resolve / resolved-dns-scope.h
index b5fae2d7a1ff949414f98a9b33a7230697568ab8..6c93fa80be3a1c4ec3399a6f0ecc263c8f877e07 100644 (file)
@@ -32,11 +32,6 @@ typedef struct DnsScope DnsScope;
 #include "resolved-dns-query.h"
 #include "resolved-dns-cache.h"
 
-typedef enum DnsScopeType {
-        DNS_SCOPE_DNS,
-        DNS_SCOPE_MDNS,
-} DnsScopeType;
-
 typedef enum DnsScopeMatch {
         DNS_SCOPE_NO,
         DNS_SCOPE_MAYBE,
@@ -48,8 +43,8 @@ typedef enum DnsScopeMatch {
 struct DnsScope {
         Manager *manager;
 
-        DnsScopeType type;
-        unsigned char family;
+        DnsProtocol protocol;
+        int family;
 
         Link *link;
 
@@ -62,13 +57,16 @@ struct DnsScope {
         LIST_FIELDS(DnsScope, scopes);
 };
 
-int dns_scope_new(Manager *m, DnsScope **ret, DnsScopeType t);
+int dns_scope_new(Manager *m, DnsScope **ret, Link *l, DnsProtocol p, int family);
 DnsScope* dns_scope_free(DnsScope *s);
 
 int dns_scope_send(DnsScope *s, DnsPacket *p);
 int dns_scope_tcp_socket(DnsScope *s);
 
-DnsScopeMatch dns_scope_test(DnsScope *s, const char *domain);
+DnsScopeMatch dns_scope_good_domain(DnsScope *s, const char *domain);
+int dns_scope_good_key(DnsScope *s, DnsResourceKey *key);
 
 DnsServer *dns_scope_get_server(DnsScope *s);
 void dns_scope_next_dns_server(DnsScope *s);
+
+int dns_scope_llmnr_membership(DnsScope *s, bool b);