Searched refs:cname (Results 1 - 7 of 7) sorted by relevance
/systemd/src/resolve/ |
H A D | resolved-dns-question.c | 216 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret) { argument 222 assert(cname); 224 assert(IN_SET(cname->key->type, DNS_TYPE_CNAME, DNS_TYPE_DNAME)); 235 if (cname->key->type == DNS_TYPE_CNAME) 236 d = cname->cname.name; 238 r = dns_name_change_suffix(DNS_RESOURCE_KEY_NAME(key), DNS_RESOURCE_KEY_NAME(cname->key), cname->dname.name, &destination); 271 k = dns_resource_key_new_redirect(key, cname);
|
H A D | resolved-dns-question.h | 51 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret);
|
H A D | resolved-dns-rr.h | 142 } ptr, ns, cname, dname; member in union:DnsResourceRecord::__anon231 287 DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *cname); 295 int dns_resource_key_match_cname_or_dname(const DnsResourceKey *key, const DnsResourceKey *cname, const char *search_domain);
|
H A D | resolved-dns-answer.c | 823 bool dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname) { argument 827 assert(cname); 832 if (cname->key->type != DNS_TYPE_CNAME) 840 if (rr->key->class != cname->key->class) 843 r = dns_name_change_suffix(cname->cname.name, rr->dname.name, DNS_RESOURCE_KEY_NAME(rr->key), &n); 849 r = dns_name_equal(n, DNS_RESOURCE_KEY_NAME(cname->key));
|
H A D | resolved-dns-rr.c | 54 DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *cname) { argument 58 assert(cname); 60 assert(IN_SET(cname->key->type, DNS_TYPE_CNAME, DNS_TYPE_DNAME)); 62 if (cname->key->type == DNS_TYPE_CNAME) 63 return dns_resource_key_new(key->class, key->type, cname->cname.name); 68 r = dns_name_change_suffix(DNS_RESOURCE_KEY_NAME(key), DNS_RESOURCE_KEY_NAME(cname->key), cname->dname.name, &destination); 223 int dns_resource_key_match_cname_or_dname(const DnsResourceKey *key, const DnsResourceKey *cname, const char *search_domain) { argument 227 assert(cname); [all...] |
H A D | resolved-dns-query.c | 934 static int dns_query_cname_redirect(DnsQuery *q, const DnsResourceRecord *cname) { argument 944 r = dns_question_cname_redirect(q->question_idna, cname, &nq_idna); 958 k = dns_question_cname_redirect(q->question_utf8, cname, &nq_utf8); 965 if (r == 0 && k == 0) /* No actual cname happened? */ 996 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *cname = NULL; 1018 if (r > 0 && !cname) 1019 cname = dns_resource_record_ref(rr); 1022 if (!cname) 1023 return DNS_QUERY_NOMATCH; /* No match and no cname to follow */ 1029 r = dns_query_cname_redirect(q, cname); [all...] |
H A D | resolved-dns-answer.h | 84 bool dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname);
|
Completed in 1782 milliseconds