/systemd/src/resolve/ |
H A D | resolved-dns-zone.h | 34 #include "resolved-dns-rr.h" 49 DnsResourceRecord *rr; member in struct:DnsZoneItem 65 int dns_zone_put(DnsZone *z, DnsScope *s, DnsResourceRecord *rr, bool probe); 66 void dns_zone_remove_rr(DnsZone *z, DnsResourceRecord *rr); 73 int dns_zone_check_conflicts(DnsZone *zone, DnsResourceRecord *rr);
|
H A D | resolved-mdns.c | 87 DnsResourceRecord *rr; local 108 DNS_ANSWER_FOREACH(rr, p->answer) { 109 const char *name = DNS_RESOURCE_KEY_NAME(rr->key); 118 t = dns_scope_find_transaction(scope, rr->key, false);
|
H A D | resolved-dns-answer.h | 26 #include "resolved-dns-rr.h" 42 DnsResourceRecord *rr; member in struct:DnsAnswerItem 57 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags); 58 int dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags); 62 int dns_answer_contains_rr(DnsAnswer *a, DnsResourceRecord *rr, DnsAnswerFlags *combined_flags); 79 int dns_answer_remove_by_rr(DnsAnswer **a, DnsResourceRecord *rr); 96 (kk) = ((a) && (a)->n_rrs > 0) ? (a)->items[0].rr : NULL; \ 100 UNIQ_T(i, q)++, (kk) = (UNIQ_T(i, q) < (a)->n_rrs ? (a)->items[UNIQ_T(i, q)].rr : NULL)) 106 (kk) = ((a) && (a)->n_rrs > 0) ? (a)->items[0].rr : NULL; \ 112 (kk) = ((UNIQ_T(i, q) < (a)->n_rrs) ? (a)->items[UNIQ_T(i, q)].rr [all...] |
H A D | resolved-dns-question.c | 91 int dns_question_matches_rr(DnsQuestion *q, DnsResourceRecord *rr, const char *search_domain) { argument 95 assert(rr); 101 r = dns_resource_key_match_rr(q->keys[i], rr, search_domain); 109 int dns_question_matches_cname_or_dname(DnsQuestion *q, DnsResourceRecord *rr, const char *search_domain) { argument 113 assert(rr); 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);
|
H A D | resolved-dns-zone.c | 49 dns_resource_record_unref(i->rr); 64 first = hashmap_get(z->by_key, i->rr->key); 67 assert_se(hashmap_replace(z->by_key, first->rr->key, first) >= 0); 69 hashmap_remove(z->by_key, i->rr->key); 71 first = hashmap_get(z->by_name, DNS_RESOURCE_KEY_NAME(i->rr->key)); 74 assert_se(hashmap_replace(z->by_name, DNS_RESOURCE_KEY_NAME(first->rr->key), first) >= 0); 76 hashmap_remove(z->by_name, DNS_RESOURCE_KEY_NAME(i->rr->key)); 96 static DnsZoneItem* dns_zone_get(DnsZone *z, DnsResourceRecord *rr) { argument 100 assert(rr); 102 LIST_FOREACH(by_key, i, hashmap_get(z->by_key, rr 109 dns_zone_remove_rr(DnsZone *z, DnsResourceRecord *rr) argument 215 dns_zone_put(DnsZone *z, DnsScope *s, DnsResourceRecord *rr, bool probe) argument 553 dns_zone_check_conflicts(DnsZone *zone, DnsResourceRecord *rr) argument [all...] |
H A D | resolved-dns-answer.c | 49 DnsResourceRecord *rr; local 54 DNS_ANSWER_FOREACH(rr, a) 55 dns_resource_record_unref(rr); 75 static int dns_answer_add_raw(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) { argument 76 assert(rr); 85 .rr = dns_resource_record_ref(rr), 94 DnsResourceRecord *rr; local 98 DNS_ANSWER_FOREACH_FULL(rr, ifindex, flags, source) { 99 r = dns_answer_add_raw(a, rr, ifinde 107 dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) argument 162 DnsResourceRecord *rr; local 175 dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) argument 246 dns_answer_contains_rr(DnsAnswer *a, DnsResourceRecord *rr, DnsAnswerFlags *ret_flags) argument 322 DnsResourceRecord *rr; local 349 DnsResourceRecord *rr, *soa = NULL; local 390 DnsResourceRecord *rr; local 468 DnsResourceRecord *rr; local 554 DnsResourceRecord *rr; local 787 DnsResourceRecord *rr; local 824 DnsResourceRecord *rr; local [all...] |
H A D | resolved-dns-query.c | 998 DnsResourceRecord *rr; local 1008 DNS_ANSWER_FOREACH(rr, q->answer) { 1009 r = dns_question_matches_rr(question, rr, DNS_SEARCH_DOMAIN_NAME(q->answer_search_domain)); 1015 r = dns_question_matches_cname_or_dname(question, rr, DNS_SEARCH_DOMAIN_NAME(q->answer_search_domain)); 1019 cname = dns_resource_record_ref(rr);
|
H A D | resolved-dns-scope.c | 105 DnsResourceRecord *rr; local 121 while ((rr = ordered_hashmap_steal_first(s->conflict_queue))) 122 dns_resource_record_unref(rr); 643 r = dns_packet_append_rr(p, answer->items[i].rr, NULL, NULL); 653 r = dns_packet_append_rr(p, soa->items[i].rr, NULL, NULL); 678 dns_zone_verify_conflicts(&s->zone, p->answer->items[n].rr->key); 795 DnsResourceRecord *rr, 802 assert(rr); 827 r = dns_packet_append_key(p, rr->key, NULL); 831 r = dns_packet_append_rr(p, rr, NUL 793 dns_scope_make_conflict_packet( DnsScope *s, DnsResourceRecord *rr, DnsPacket **ret) argument 872 dns_scope_notify_conflict(DnsScope *scope, DnsResourceRecord *rr) argument [all...] |
H A D | resolved-dns-trust-anchor.c | 55 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; 73 rr = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DS, ""); 74 if (!rr) 77 rr->ds.key_tag = 19036; 78 rr->ds.algorithm = DNSSEC_ALGORITHM_RSASHA256; 79 rr->ds.digest_type = DNSSEC_DIGEST_SHA256; 80 rr->ds.digest_size = sizeof(root_digest); 81 rr->ds.digest = memdup(root_digest, rr->ds.digest_size); 82 if (!rr 459 DnsResourceRecord *rr; local 512 DnsResourceRecord *rr; local 553 dns_trust_anchor_revoked_put(DnsTrustAnchor *d, DnsResourceRecord *rr) argument 571 dns_trust_anchor_remove_revoked(DnsTrustAnchor *d, DnsResourceRecord *rr) argument 736 dns_trust_anchor_is_revoked(DnsTrustAnchor *d, DnsResourceRecord *rr) argument [all...] |
H A D | resolved-bus.c | 99 static int append_address(sd_bus_message *reply, DnsResourceRecord *rr, int ifindex) { argument 103 assert(rr); 113 if (rr->key->type == DNS_TYPE_A) { 118 r = sd_bus_message_append_array(reply, 'y', &rr->a.in_addr, sizeof(struct in_addr)); 120 } else if (rr->key->type == DNS_TYPE_AAAA) { 125 r = sd_bus_message_append_array(reply, 'y', &rr->aaaa.in6_addr, sizeof(struct in6_addr)); 142 DnsResourceRecord *rr; local 171 DNS_ANSWER_FOREACH_IFINDEX(rr, ifindex, q->answer) { 176 r = dns_question_matches_rr(question, rr, DNS_SEARCH_DOMAIN_NAME(q->answer_search_domain)); 182 r = append_address(reply, rr, ifinde 302 DnsResourceRecord *rr; local 439 bus_message_append_rr(sd_bus_message *m, DnsResourceRecord *rr, int ifindex) argument 469 DnsResourceRecord *rr; local 608 append_srv(DnsQuery *q, sd_bus_message *reply, DnsResourceRecord *rr) argument 728 append_txt(sd_bus_message *reply, DnsResourceRecord *rr) argument 757 DnsResourceRecord *rr; local 915 resolve_service_hostname(DnsQuery *q, DnsResourceRecord *rr, int ifindex) argument 967 DnsResourceRecord *rr; local [all...] |
H A D | resolved-dns-cache.c | 46 DnsResourceRecord *rr; member in struct:DnsCacheItem 64 dns_resource_record_unref(i->rr); 92 static bool dns_cache_remove_by_rr(DnsCache *c, DnsResourceRecord *rr) { argument 96 first = hashmap_get(c->by_key, rr->key); 98 r = dns_resource_record_equal(i->rr, rr); 257 if (first->rr) 258 dns_resource_key_reduce(&first->rr->key, &i->key); 259 if (i->rr) 260 dns_resource_key_reduce(&i->rr 275 dns_cache_get(DnsCache *c, DnsResourceRecord *rr) argument 288 calculate_until(DnsResourceRecord *rr, uint32_t nsec_ttl, usec_t timestamp, bool use_soa_minimum) argument 324 dns_cache_item_update_positive( DnsCache *c, DnsCacheItem *i, DnsResourceRecord *rr, bool authenticated, bool shared_owner, usec_t timestamp, int ifindex, int owner_family, const union in_addr_union *owner_address) argument 367 dns_cache_put_positive( DnsCache *c, DnsResourceRecord *rr, bool authenticated, bool shared_owner, usec_t timestamp, int ifindex, int owner_family, const union in_addr_union *owner_address) argument 562 DnsResourceRecord *rr; local 587 rr_eligible(DnsResourceRecord *rr) argument 620 DnsResourceRecord *soa = NULL, *rr; local 946 dns_cache_check_conflicts(DnsCache *cache, DnsResourceRecord *rr, int owner_family, const union in_addr_union *owner_address) argument [all...] |
H A D | resolved-dns-transaction.c | 1730 static int dns_transaction_is_primary_response(DnsTransaction *t, DnsResourceRecord *rr) { argument 1734 assert(rr); 1740 r = dns_resource_key_match_rr(t->key, rr, NULL); 1744 return dns_resource_key_match_cname_or_dname(t->key, rr->key, NULL); 1786 DnsResourceRecord *rr; local 1813 DNS_ANSWER_FOREACH(rr, t->answer) { 1815 if (dns_type_is_pseudo(rr->key->type)) 1819 r = dns_transaction_negative_trust_anchor_lookup(t, DNS_RESOURCE_KEY_NAME(rr->key)); 1825 switch (rr->key->type) { 1835 if (rr 2080 DnsResourceRecord *rr; local 2106 dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *rr) argument 2384 dns_transaction_dnskey_authenticated(DnsTransaction *t, DnsResourceRecord *rr) argument 2455 dns_transaction_known_signed(DnsTransaction *t, DnsResourceRecord *rr) argument 2467 DnsResourceRecord *rr; local 2496 DnsResourceRecord *rr; local 2551 DnsResourceRecord *rr; local [all...] |
H A D | resolved-dns-dnssec.c | 597 DnsResourceRecord *rr = list[k]; local 602 rr->ttl = MIN3(rr->ttl, rrsig->rrsig.original_ttl, rrsig->ttl); 603 rr->expiry = rrsig->rrsig.expiration * USEC_PER_SEC; 606 rr->n_skip_labels_source = rrsig->n_skip_labels_source; 607 rr->n_skip_labels_signer = rrsig->n_skip_labels_signer; 622 DnsResourceRecord **list, *rr; local 715 DNS_ANSWER_FOREACH(rr, a) { 716 r = dns_resource_key_equal(key, rr->key); 723 r = dns_resource_record_to_wire_format(rr, tru 1009 DnsResourceRecord *rr; local 1240 nsec3_is_good(DnsResourceRecord *rr, DnsResourceRecord *nsec3) argument 1355 DnsResourceRecord *rr, *enclosure_rr, *zone_rr, *wildcard_rr = NULL; local 1606 dnssec_nsec_wildcard_equal(DnsResourceRecord *rr, const char *name) argument 1629 dnssec_nsec_in_path(DnsResourceRecord *rr, const char *name) argument 1665 dnssec_nsec_from_parent_zone(DnsResourceRecord *rr, const char *name) argument 1691 dnssec_nsec_covers(DnsResourceRecord *rr, const char *name) argument 1724 dnssec_nsec_covers_wildcard(DnsResourceRecord *rr, const char *name) argument 1755 DnsResourceRecord *rr, *covering_rr = NULL, *wildcard_rr = NULL; local 1888 DnsResourceRecord *rr; local [all...] |
H A D | resolved-dns-packet.c | 781 int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, size_t *start, size_t *rdata_start) { argument 786 assert(rr); 790 r = dns_packet_append_key(p, rr->key, NULL); 794 r = dns_packet_append_uint32(p, rr->ttl, NULL); 805 switch (rr->unparseable ? _DNS_TYPE_INVALID : rr->key->type) { 808 r = dns_packet_append_uint16(p, rr->srv.priority, NULL); 812 r = dns_packet_append_uint16(p, rr->srv.weight, NULL); 816 r = dns_packet_append_uint16(p, rr->srv.port, NULL); 820 r = dns_packet_append_name(p, rr 2049 opt_is_good(DnsResourceRecord *rr, bool *rfc6975) argument [all...] |
H A D | resolved-dns-rr.c | 28 #include "resolved-dns-rr.h" 187 int dns_resource_key_match_rr(const DnsResourceKey *key, DnsResourceRecord *rr, const char *search_domain) { argument 191 assert(rr); 193 if (key == rr->key) 196 /* Checks if an rr matches the specified key. If a search 200 if (rr->key->class != key->class && key->class != DNS_CLASS_ANY) 203 if (rr->key->type != key->type && key->type != DNS_TYPE_ANY) 206 r = dns_name_equal(DNS_RESOURCE_KEY_NAME(rr->key), DNS_RESOURCE_KEY_NAME(key)); 217 return dns_name_equal(DNS_RESOURCE_KEY_NAME(rr->key), joined); 378 DnsResourceRecord *rr; local 402 dns_resource_record_ref(DnsResourceRecord *rr) argument 412 dns_resource_record_unref(DnsResourceRecord *rr) argument 543 DnsResourceRecord *rr; local 820 dns_resource_record_to_string(DnsResourceRecord *rr) argument 1176 dns_resource_record_to_wire_format(DnsResourceRecord *rr, bool canonical) argument 1221 dns_resource_record_signer(DnsResourceRecord *rr, const char **ret) argument 1244 dns_resource_record_source(DnsResourceRecord *rr, const char **ret) argument 1267 dns_resource_record_is_signer(DnsResourceRecord *rr, const char *zone) argument 1280 dns_resource_record_is_synthetic(DnsResourceRecord *rr) argument 1304 const DnsResourceRecord *rr = i; local [all...] |
H A D | resolved-dns-rr.h | 65 * https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml */ 265 static inline const void* DNS_RESOURCE_RECORD_RDATA(DnsResourceRecord *rr) { argument 266 if (!rr) 269 if (!rr->wire_format) 272 assert(rr->wire_format_rdata_offset <= rr->wire_format_size); 273 return (uint8_t*) rr->wire_format + rr->wire_format_rdata_offset; 276 static inline size_t DNS_RESOURCE_RECORD_RDATA_SIZE(DnsResourceRecord *rr) { argument [all...] |
/systemd/src/basic/ |
H A D | cgroup-util.c | 1523 char *rr; local 1525 rr = strdup(start); 1526 if (!rr) 1529 *session = rr;
|