Lines Matching refs:key
67 int dns_question_add(DnsQuestion *q, DnsResourceKey *key) {
71 assert(key);
77 r = dns_resource_key_equal(q->keys[i], key);
87 q->keys[q->n_keys++] = dns_resource_key_ref(key);
118 if (!IN_SET(rr->key->type, DNS_TYPE_CNAME, DNS_TYPE_DNAME))
126 r = dns_resource_key_match_cname_or_dname(q->keys[i], rr->key, search_domain);
218 DnsResourceKey *key;
224 assert(IN_SET(cname->key->type, DNS_TYPE_CNAME, DNS_TYPE_DNAME));
231 DNS_QUESTION_FOREACH(key, q) {
235 if (cname->key->type == DNS_TYPE_CNAME)
238 r = dns_name_change_suffix(DNS_RESOURCE_KEY_NAME(key), DNS_RESOURCE_KEY_NAME(cname->key), cname->dname.name, &destination);
247 r = dns_name_equal(DNS_RESOURCE_KEY_NAME(key), d);
268 DNS_QUESTION_FOREACH(key, q) {
271 k = dns_resource_key_new_redirect(key, cname);
321 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL;
323 key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, name);
324 if (!key)
327 r = dns_question_add(q, key);
333 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL;
335 key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_AAAA, name);
336 if (!key)
339 r = dns_question_add(q, key);
351 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL;
370 key = dns_resource_key_new_consume(DNS_CLASS_IN, DNS_TYPE_PTR, reverse);
371 if (!key)
376 r = dns_question_add(q, key);
394 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL;
445 key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_SRV, name);
446 if (!key)
449 r = dns_question_add(q, key);
454 dns_resource_key_unref(key);
455 key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_TXT, name);
456 if (!key)
459 r = dns_question_add(q, key);