diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-18 12:34:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-18 12:38:32 +0200 |
commit | 1716f6dcf54d4c181c2e2558e3d5414f54c8d9ca (patch) | |
tree | 32dd8c93d766d205354d72eea44fee55a2d9a55b /src/resolve/resolved-dns-scope.h | |
parent | 9d485985338a46b8cb1acdf1af6c1eb2e88acfee (diff) |
resolved: add LLMNR support for looking up names
Diffstat (limited to 'src/resolve/resolved-dns-scope.h')
-rw-r--r-- | src/resolve/resolved-dns-scope.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/resolve/resolved-dns-scope.h b/src/resolve/resolved-dns-scope.h index b5fae2d7a1..32541f12ab 100644 --- a/src/resolve/resolved-dns-scope.h +++ b/src/resolve/resolved-dns-scope.h @@ -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,7 +43,7 @@ typedef enum DnsScopeMatch { struct DnsScope { Manager *manager; - DnsScopeType type; + DnsProtocol protocol; unsigned char 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, unsigned char 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); |