Home
last modified time | relevance | path

Searched refs:DnsResourceRecord (Results 1 – 25 of 31) sorted by relevance

12

/systemd-251/src/resolve/
Dresolved-dns-rr.h16 typedef struct DnsResourceRecord DnsResourceRecord; typedef
92 struct DnsResourceRecord { struct
261 static inline const void* DNS_RESOURCE_RECORD_RDATA(const DnsResourceRecord *rr) { in DNS_RESOURCE_RECORD_RDATA()
272 static inline size_t DNS_RESOURCE_RECORD_RDATA_SIZE(const DnsResourceRecord *rr) { in DNS_RESOURCE_RECORD_RDATA_SIZE()
282 static inline uint8_t DNS_RESOURCE_RECORD_OPT_VERSION_SUPPORTED(const DnsResourceRecord *rr) { in DNS_RESOURCE_RECORD_OPT_VERSION_SUPPORTED()
290 DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *c…
308 int dns_resource_key_match_rr(const DnsResourceKey *key, DnsResourceRecord *rr, const char *search_…
317 ssize_t dns_resource_record_payload(DnsResourceRecord *rr, void **out);
327 DnsResourceRecord* dns_resource_record_new(DnsResourceKey *key);
328 DnsResourceRecord* dns_resource_record_new_full(uint16_t class, uint16_t type, const char *name);
[all …]
Dresolved-dns-dnssec.h48 int dnssec_rrsig_match_dnskey(DnsResourceRecord *rrsig, DnsResourceRecord *dnskey, bool revoked_ok);
49 int dnssec_key_match_rrsig(const DnsResourceKey *key, DnsResourceRecord *rrsig);
51 …fy_rrset(DnsAnswer *answer, const DnsResourceKey *key, DnsResourceRecord *rrsig, DnsResourceRecord
52 …y, DnsAnswer *validated_dnskeys, usec_t realtime, DnssecResult *result, DnsResourceRecord **rrsig);
54 int dnssec_verify_dnskey_by_ds(DnsResourceRecord *dnskey, DnsResourceRecord *ds, bool mask_revoke);
55 int dnssec_verify_dnskey_by_ds_search(DnsResourceRecord *dnskey, DnsAnswer *validated_ds);
59 uint16_t dnssec_keytag(DnsResourceRecord *dnskey, bool mask_revoke);
61 int dnssec_nsec3_hash(DnsResourceRecord *nsec3, const char *name, void *ret);
Dresolved-dns-answer.h33 DnsResourceRecord *rr;
34DnsResourceRecord *rrsig; /* Optionally, also store RRSIG RR that successfully validates this item…
56 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags, DnsResou…
57 …t dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags, D…
63 bool dns_answer_contains(DnsAnswer *answer, DnsResourceRecord *rr);
65 int dns_answer_find_soa(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret, DnsAnswer…
66 int dns_answer_find_cname_or_dname(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret…
77 int dns_answer_remove_by_rr(DnsAnswer **a, DnsResourceRecord *rr);
80 …, DnsAnswer *source, const DnsResourceKey *key, DnsAnswerFlags or_flags, DnsResourceRecord *rrsig);
81 …o, DnsAnswer **from, const DnsResourceKey *key, DnsAnswerFlags or_flags, DnsResourceRecord *rrsig);
[all …]
Dresolved-dns-answer.c107 DnsResourceRecord *rr, in dns_answer_add_raw()
110 DnsResourceRecord *rrsig) { in dns_answer_add_raw()
163 DnsResourceRecord *rr, in dns_answer_add()
166 DnsResourceRecord *rrsig) { in dns_answer_add()
227 DnsResourceRecord *rr, in dns_answer_add_extend()
230 DnsResourceRecord *rrsig) { in dns_answer_add_extend()
245 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *soa = NULL; in dns_answer_add_soa()
272 DnsResourceRecord *i; in dns_answer_match_key()
303 DnsResourceRecord *i; in dns_answer_contains_nsec_or_nsec3()
313 DnsResourceRecord *rr; in dns_answer_contains_zone_nsec3()
[all …]
Dresolved-dns-dnssec.c44 uint16_t dnssec_keytag(DnsResourceRecord *dnskey, bool mask_revoke) { in dnssec_keytag()
72 static int rr_compare(DnsResourceRecord * const *a, DnsResourceRecord * const *b) { in rr_compare()
73 const DnsResourceRecord *x = *a, *y = *b; in rr_compare()
241 DnsResourceRecord *rrsig, in dnssec_rsa_verify()
242 DnsResourceRecord *dnskey) { in dnssec_rsa_verify()
453 DnsResourceRecord *rrsig, in dnssec_ecdsa_verify()
454 DnsResourceRecord *dnskey) { in dnssec_ecdsa_verify()
604 DnsResourceRecord *rrsig, in dnssec_eddsa_verify()
605 DnsResourceRecord *dnskey) { in dnssec_eddsa_verify()
661 static int dnssec_rrsig_prepare(DnsResourceRecord *rrsig) { in dnssec_rrsig_prepare()
[all …]
Dresolved-mdns.c57 static int mdns_rr_compare(DnsResourceRecord * const *a, DnsResourceRecord * const *b) { in mdns_rr_compare()
58 DnsResourceRecord *x = *(DnsResourceRecord **) a, *y = *(DnsResourceRecord **) b; in mdns_rr_compare()
94 static int proposed_rrs_cmp(DnsResourceRecord **x, unsigned x_size, DnsResourceRecord **y, unsigned… in proposed_rrs_cmp()
108 static int mdns_packet_extract_matching_rrs(DnsPacket *p, DnsResourceKey *key, DnsResourceRecord **… in mdns_packet_extract_matching_rrs()
109 _cleanup_free_ DnsResourceRecord **list = NULL; in mdns_packet_extract_matching_rrs()
111 DnsResourceRecord *rr; in mdns_packet_extract_matching_rrs()
136 list = new(DnsResourceRecord *, size); in mdns_packet_extract_matching_rrs()
161 _cleanup_free_ DnsResourceRecord **our = NULL, **remote = NULL; in mdns_do_tiebreak()
162 DnsResourceRecord *rr; in mdns_do_tiebreak()
167 our = new(DnsResourceRecord *, size); in mdns_do_tiebreak()
[all …]
Dresolved-dnssd.h11 typedef struct DnsResourceRecord DnsResourceRecord; typedef
20 DnsResourceRecord *rr;
36 DnsResourceRecord *ptr_rr;
37 DnsResourceRecord *srv_rr;
Dresolved-dns-zone.h34 DnsResourceRecord *rr;
50 int dns_zone_put(DnsZone *z, DnsScope *s, DnsResourceRecord *rr, bool probe);
51 DnsZoneItem* dns_zone_get(DnsZone *z, DnsResourceRecord *rr);
52 void dns_zone_remove_rr(DnsZone *z, DnsResourceRecord *rr);
60 int dns_zone_check_conflicts(DnsZone *zone, DnsResourceRecord *rr);
Dresolved-dns-rr.c39 DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *c… in dns_resource_key_new_redirect()
203 int dns_resource_key_match_rr(const DnsResourceKey *key, DnsResourceRecord *rr, const char *search_… in dns_resource_key_match_rr()
371 DnsResourceRecord* dns_resource_record_new(DnsResourceKey *key) { in dns_resource_record_new()
372 DnsResourceRecord *rr; in dns_resource_record_new()
374 rr = new(DnsResourceRecord, 1); in dns_resource_record_new()
378 *rr = (DnsResourceRecord) { in dns_resource_record_new()
389 DnsResourceRecord* dns_resource_record_new_full(uint16_t class, uint16_t type, const char *name) { in dns_resource_record_new_full()
399 static DnsResourceRecord* dns_resource_record_free(DnsResourceRecord *rr) { in dns_resource_record_free()
494 DEFINE_TRIVIAL_REF_UNREF_FUNC(DnsResourceRecord, dns_resource_record, dns_resource_record_free);
496 int dns_resource_record_new_reverse(DnsResourceRecord **ret, int family, const union in_addr_union … in dns_resource_record_new_reverse()
[all …]
Dresolved-dns-trust-anchor.c48 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in add_root_ksk()
202 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in dns_trust_anchor_load_positive()
477 DnsResourceRecord *rr; in dns_trust_anchor_dump()
585 static int dns_trust_anchor_revoked_put(DnsTrustAnchor *d, DnsResourceRecord *rr) { in dns_trust_anchor_revoked_put()
599 static int dns_trust_anchor_remove_revoked(DnsTrustAnchor *d, DnsResourceRecord *rr) { in dns_trust_anchor_remove_revoked()
645 static int dns_trust_anchor_check_revoked_one(DnsTrustAnchor *d, DnsResourceRecord *revoked_dnskey)… in dns_trust_anchor_check_revoked_one()
656 DnsResourceRecord *anchor; in dns_trust_anchor_check_revoked_one()
687 DnsResourceRecord *anchor; in dns_trust_anchor_check_revoked_one()
711 int dns_trust_anchor_check_revoked(DnsTrustAnchor *d, DnsResourceRecord *dnskey, DnsAnswer *rrs) { in dns_trust_anchor_check_revoked()
712 DnsResourceRecord *rrsig; in dns_trust_anchor_check_revoked()
[all …]
Dresolved-link.h33 DnsResourceRecord *llmnr_address_rr;
34 DnsResourceRecord *llmnr_ptr_rr;
35 DnsResourceRecord *mdns_address_rr;
36 DnsResourceRecord *mdns_ptr_rr;
Dtest-dns-packet.c22 static void verify_rr_copy(DnsResourceRecord *rr) { in verify_rr_copy()
23 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *copy = NULL; in verify_rr_copy()
35 static uint64_t hash(DnsResourceRecord *rr) { in hash()
55 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL, *rr2 = NULL; in test_packet_from_file()
94 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *cname = NULL, *dname = NULL; in test_dns_resource_record_get_cname_target()
Dresolved-dns-cache.c41DnsResourceRecord *rr; /* The RR for this item, i.e. the lookup value for positive queries */
119 static bool dns_cache_remove_by_rr(DnsCache *c, DnsResourceRecord *rr) { in dns_cache_remove_by_rr()
303 static DnsCacheItem* dns_cache_get(DnsCache *c, DnsResourceRecord *rr) { in dns_cache_get()
315 DnsResourceRecord *rr, in calculate_until()
356 DnsResourceRecord *rr, in dns_cache_item_update_positive()
404 DnsResourceRecord *rr, in dns_cache_put_positive()
526 DnsResourceRecord *soa, in dns_cache_put_negative()
625 DnsResourceRecord *rr; in dns_cache_remove_previous()
650 static bool rr_eligible(DnsResourceRecord *rr) { in rr_eligible()
685 DnsResourceRecord *soa = NULL; in dns_cache_put()
[all …]
Dresolved-dns-question.h38 int dns_question_matches_rr(DnsQuestion *q, DnsResourceRecord *rr, const char *search_domain);
39 int dns_question_matches_cname_or_dname(DnsQuestion *q, DnsResourceRecord *rr, const char* search_d…
44 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret);
Dresolved-dns-trust-anchor.h24 int dns_trust_anchor_check_revoked(DnsTrustAnchor *d, DnsResourceRecord *dnskey, DnsAnswer *rrs);
25 int dns_trust_anchor_is_revoked(DnsTrustAnchor *d, DnsResourceRecord *rr);
Dresolved-dns-synthesize.c71 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in synthesize_localhost_rr()
85 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in synthesize_localhost_rr()
102 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in answer_add_ptr()
152 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in answer_add_addresses_rr()
181 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in answer_add_addresses_ptr()
Dtest-dnssec.c47 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds1 = NULL, *ds2 = NULL; in TEST()
111 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *mx = NULL, in TEST()
203 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *mx = NULL, in TEST()
296 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *a = NULL, in TEST()
391 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *a = NULL, in TEST()
481 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *a = NULL, *rrsig = NULL, *dnskey = NULL; in TEST()
559 …_cleanup_(dns_resource_record_unrefp) DnsResourceRecord *nsec = NULL, *rrsig = NULL, *dnskey = NUL… in TEST()
666 …_cleanup_(dns_resource_record_unrefp) DnsResourceRecord *mx1 = NULL, *mx2 = NULL, *mx3 = NULL, *mx… in TEST()
758 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in TEST()
Dresolved-bus.c207 static int append_address(sd_bus_message *reply, DnsResourceRecord *rr, int ifindex) { in append_address()
248 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *canonical = NULL; in bus_method_resolve_hostname_complete()
253 DnsResourceRecord *rr; in bus_method_resolve_hostname_complete()
544 DnsResourceRecord *rr; in bus_method_resolve_address_complete()
685 static int bus_message_append_rr(sd_bus_message *m, DnsResourceRecord *rr, int ifindex) { in bus_message_append_rr()
716 DnsResourceRecord *rr; in bus_method_resolve_record_complete()
863 static int append_srv(DnsQuery *q, sd_bus_message *reply, DnsResourceRecord *rr) { in append_srv()
864 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *canonical = NULL; in append_srv()
880 DnsResourceRecord *zz; in append_srv()
938 DnsResourceRecord *zz; in append_srv()
[all …]
Dresolved-dns-zone.c80 DnsZoneItem* dns_zone_get(DnsZone *z, DnsResourceRecord *rr) { in dns_zone_get()
91 void dns_zone_remove_rr(DnsZone *z, DnsResourceRecord *rr) { in dns_zone_remove_rr()
106 DnsResourceRecord *rr; in dns_zone_remove_rrs_by_key()
214 int dns_zone_put(DnsZone *z, DnsScope *s, DnsResourceRecord *rr, bool probe) { in dns_zone_put()
570 int dns_zone_check_conflicts(DnsZone *zone, DnsResourceRecord *rr) { in dns_zone_check_conflicts()
Dresolved-dns-packet.h72 DnsResourceRecord *opt;
227 int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, const DnsAnswerFlags flags, siz…
247 int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, bool *ret_cache_flush, size_t *start);
Dresolved-dns-question.c74 int dns_question_matches_rr(DnsQuestion *q, DnsResourceRecord *rr, const char *search_domain) { in dns_question_matches_rr()
92 int dns_question_matches_cname_or_dname(DnsQuestion *q, DnsResourceRecord *rr, const char *search_d… in dns_question_matches_cname_or_dname()
216 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret) { in dns_question_cname_redirect()
Dresolved-dns-scope.c964 DnsResourceRecord *rr; in dns_scope_verify_conflicts()
1126 DnsResourceRecord *rr, in dns_scope_make_conflict_packet()
1182 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in on_conflict_dispatch()
1206 int dns_scope_notify_conflict(DnsScope *scope, DnsResourceRecord *rr) { in dns_scope_notify_conflict()
1255 DnsResourceRecord *rr; in dns_scope_check_conflicts()
1471 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL; in dns_scope_announce()
Dresolved-dns-cache.h49 int dns_cache_check_conflicts(DnsCache *cache, DnsResourceRecord *rr, int owner_family, const union…
Dresolved-varlink.c147 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *canonical = NULL; in vl_method_resolve_hostname_complete()
151 DnsResourceRecord *rr; in vl_method_resolve_hostname_complete()
388 DnsResourceRecord *rr; in vl_method_resolve_address_complete()
Dresolved-dns-transaction.c2236 static int dns_transaction_is_primary_response(DnsTransaction *t, DnsResourceRecord *rr) { in dns_transaction_is_primary_response()
2293 DnsResourceRecord *rr; in dns_transaction_request_dnssec_keys()
2650 static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *rr) { in dns_transaction_requires_rrsig()
2927 static int dns_transaction_dnskey_authenticated(DnsTransaction *t, DnsResourceRecord *rr) { in dns_transaction_dnskey_authenticated()
2928 DnsResourceRecord *rrsig; in dns_transaction_dnskey_authenticated()
2994 static int dns_transaction_known_signed(DnsTransaction *t, DnsResourceRecord *rr) { in dns_transaction_known_signed()
3006 DnsResourceRecord *rr; in dns_transaction_check_revoked_trust_anchors()
3035 DnsResourceRecord *rr; in dns_transaction_invalidate_revoked_keys()
3094 DnsResourceRecord *rr; in dnssec_validate_records()
3100 …_unused_ _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr_ref = dns_resource_record_ref… in dnssec_validate_records()
[all …]

12