Home
last modified time | relevance | path

Searched refs:DnsResourceKey (Results 1 – 25 of 28) sorted by relevance

12

/systemd-251/src/resolve/
Dresolved-dns-rr.h15 typedef struct DnsResourceKey DnsResourceKey; typedef
68 struct DnsResourceKey { struct
79 ((DnsResourceKey) { \
97 DnsResourceKey *key;
289 DnsResourceKey* dns_resource_key_new(uint16_t class, uint16_t type, const char *name);
290 DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *c…
291 int dns_resource_key_new_append_suffix(DnsResourceKey **ret, DnsResourceKey *key, char *name);
292 DnsResourceKey* dns_resource_key_new_consume(uint16_t class, uint16_t type, char *name);
293 DnsResourceKey* dns_resource_key_ref(DnsResourceKey *key);
294 DnsResourceKey* dns_resource_key_unref(DnsResourceKey *key);
[all …]
Dresolved-dns-question.c25 DnsResourceKey *key; in dns_question_free()
37 int dns_question_add_raw(DnsQuestion *q, DnsResourceKey *key, DnsQuestionFlags flags) { in dns_question_add_raw()
53 int dns_question_add(DnsQuestion *q, DnsResourceKey *key, DnsQuestionFlags flags) { in dns_question_add()
75 DnsResourceKey *key; in dns_question_matches_rr()
93 DnsResourceKey *key; in dns_question_matches_cname_or_dname()
152 int dns_question_contains_key(DnsQuestion *q, const DnsResourceKey *k) { in dns_question_contains_key()
218 DnsResourceKey *key; in dns_question_cname_redirect()
269 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *k = NULL; in dns_question_cname_redirect()
326 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_question_new_address()
338 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_question_new_address()
[all …]
Dresolved-dns-rr.c19 DnsResourceKey* dns_resource_key_new(uint16_t class, uint16_t type, const char *name) { in dns_resource_key_new()
20 DnsResourceKey *k; in dns_resource_key_new()
26 k = malloc0(sizeof(DnsResourceKey) + l + 1); in dns_resource_key_new()
34 strcpy((char*) k + sizeof(DnsResourceKey), name); in dns_resource_key_new()
39 DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *c… in dns_resource_key_new_redirect()
51 DnsResourceKey *k; in dns_resource_key_new_redirect()
57 return dns_resource_key_ref((DnsResourceKey*) key); in dns_resource_key_new_redirect()
68 int dns_resource_key_new_append_suffix(DnsResourceKey **ret, DnsResourceKey *key, char *name) { in dns_resource_key_new_append_suffix()
69 DnsResourceKey *new_key; in dns_resource_key_new_append_suffix()
96 DnsResourceKey* dns_resource_key_new_consume(uint16_t class, uint16_t type, char *name) { in dns_resource_key_new_consume()
[all …]
Dresolved-dns-dnssec.h49 int dnssec_key_match_rrsig(const DnsResourceKey *key, DnsResourceRecord *rrsig);
51 int dnssec_verify_rrset(DnsAnswer *answer, const DnsResourceKey *key, DnsResourceRecord *rrsig, Dns…
52 int dnssec_verify_rrset_search(DnsAnswer *answer, const DnsResourceKey *key, DnsAnswer *validated_d…
57 int dnssec_has_rrsig(DnsAnswer *a, const DnsResourceKey *key);
73 int dnssec_nsec_test(DnsAnswer *answer, DnsResourceKey *key, DnssecNsecResult *result, bool *authen…
Dresolved-dns-question.h17 DnsResourceKey *key;
35 int dns_question_add_raw(DnsQuestion *q, DnsResourceKey *key, DnsQuestionFlags flags);
36 int dns_question_add(DnsQuestion *q, DnsResourceKey *key, DnsQuestionFlags flags);
41 int dns_question_contains_key(DnsQuestion *q, const DnsResourceKey *k);
50 static inline DnsResourceKey *dns_question_first_key(DnsQuestion *q) { in dns_question_first_key()
Dresolved-dns-answer.h60 int dns_answer_match_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *ret_flags);
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…
76 int dns_answer_remove_by_key(DnsAnswer **a, const DnsResourceKey *key);
80 int dns_answer_copy_by_key(DnsAnswer **a, DnsAnswer *source, const DnsResourceKey *key, DnsAnswerFl…
81 int dns_answer_move_by_key(DnsAnswer **to, DnsAnswer **from, const DnsResourceKey *key, DnsAnswerFl…
Dresolved-manager.h115 DnsResourceKey *llmnr_host_ipv4_key;
116 DnsResourceKey *llmnr_host_ipv6_key;
117 DnsResourceKey *mdns_host_ipv4_key;
118 DnsResourceKey *mdns_host_ipv6_key;
199 void manager_dnssec_verdict(Manager *m, DnssecVerdict verdict, const DnsResourceKey *key);
Dresolved-dns-zone.h53 int dns_zone_remove_rrs_by_key(DnsZone *z, DnsResourceKey *key);
55 int dns_zone_lookup(DnsZone *z, DnsResourceKey *key, int ifindex, DnsAnswer **answer, DnsAnswer **s…
61 int dns_zone_verify_conflicts(DnsZone *zone, DnsResourceKey *key);
Dresolved-dns-cache.c40 DnsResourceKey *key; /* The key for this item, i.e. the lookup key */
137 static bool dns_cache_remove_by_key(DnsCache *c, DnsResourceKey *key) { in dns_cache_remove_by_key()
156 DnsResourceKey *key; in dns_cache_flush()
182 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_cache_make_space()
232 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_cache_prune()
277 _unused_ _cleanup_(dns_resource_key_unrefp) DnsResourceKey *k = NULL; in dns_cache_link_item()
518 DnsResourceKey *key, in dns_cache_put_negative()
622 DnsResourceKey *key, in dns_cache_remove_previous()
675 DnsResourceKey *key, in dns_cache_put()
857 static DnsCacheItem *dns_cache_get_by_key_follow_cname_dname_nsec(DnsCache *c, DnsResourceKey *k) { in dns_cache_get_by_key_follow_cname_dname_nsec()
[all …]
Dresolved-dns-transaction.h55 DnsResourceKey *key; /* For regular lookups the RR key to look for */
145 int dns_transaction_new(DnsTransaction **ret, DnsScope *s, DnsResourceKey *key, DnsPacket *bypass, …
160 static inline DnsResourceKey *dns_transaction_key(DnsTransaction *t) { in dns_transaction_key()
Dresolved-dns-synthesize.c59 static int synthesize_localhost_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **… in synthesize_localhost_rr()
115 static int synthesize_localhost_ptr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer *… in synthesize_localhost_ptr()
210 static int synthesize_system_hostname_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAns… in synthesize_system_hostname_rr()
316 const DnsResourceKey *key, in synthesize_gateway_rr()
380 DnsResourceKey *key; in dns_synthesize_answer()
Dresolved-dns-answer.c270 int dns_answer_match_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *ret_flags) { in dns_answer_match_key()
351 const DnsResourceKey *key, in dns_answer_find_soa()
405 const DnsResourceKey *key, in dns_answer_find_cname_or_dname()
492 int dns_answer_remove_by_key(DnsAnswer **a, const DnsResourceKey *key) { in dns_answer_remove_by_key()
552 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *prev = NULL; in dns_answer_remove_by_answer_keys()
580 const DnsResourceKey *key, in dns_answer_copy_by_key()
611 const DnsResourceKey *key, in dns_answer_move_by_key()
Dresolved-dns-cache.h29 DnsResourceKey *key,
41 DnsResourceKey *key,
Dresolved-dns-scope.h80 bool dns_scope_good_key(DnsScope *s, const DnsResourceKey *key);
92 DnsTransaction *dns_scope_find_transaction(DnsScope *scope, DnsResourceKey *key, uint64_t query_fla…
Dresolved-dns-query.c121 DnsResourceKey *key, in dns_query_candidate_add_transaction()
243 DnsResourceKey *key; in dns_query_candidate_setup_transactions()
270 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *new_key = NULL; in dns_query_candidate_setup_transactions()
271 DnsResourceKey *qkey; in dns_query_candidate_setup_transactions()
449 DnsResourceKey *key; in dns_query_new()
1044 DnsResourceKey *k; in dns_query_process_cname_one()
Dresolved-dns-packet.h216 int dns_packet_is_reply_for(DnsPacket *p, const DnsResourceKey *key);
226 int dns_packet_append_key(DnsPacket *p, const DnsResourceKey *key, const DnsAnswerFlags flags, size…
246 int dns_packet_read_key(DnsPacket *p, DnsResourceKey **ret, bool *ret_cache_flush_or_qu, size_t *st…
Dresolved-dns-zone.c104 int dns_zone_remove_rrs_by_key(DnsZone *z, DnsResourceKey *key) { in dns_zone_remove_rrs_by_key()
177 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_zone_item_probe_start()
298 int dns_zone_lookup(DnsZone *z, DnsResourceKey *key, int ifindex, DnsAnswer **ret_answer, DnsAnswer… in dns_zone_lookup()
608 int dns_zone_verify_conflicts(DnsZone *zone, DnsResourceKey *key) { in dns_zone_verify_conflicts()
Dresolved-dns-dnssec.c983 const DnsResourceKey *key, in dnssec_verify_rrset()
1154 int dnssec_key_match_rrsig(const DnsResourceKey *key, DnsResourceRecord *rrsig) { in dnssec_key_match_rrsig()
1172 const DnsResourceKey *key, in dnssec_verify_rrset_search()
1293 int dnssec_has_rrsig(DnsAnswer *a, const DnsResourceKey *key) { in dnssec_has_rrsig()
1706 static int dnssec_test_nsec3(DnsAnswer *answer, DnsResourceKey *key, DnssecNsecResult *result, bool… in dnssec_test_nsec3()
2110 int dnssec_nsec_test(DnsAnswer *answer, DnsResourceKey *key, DnssecNsecResult *result, bool *authen… in dnssec_nsec_test()
2495 const DnsResourceKey *key, in dnssec_verify_rrset()
2509 int dnssec_key_match_rrsig(const DnsResourceKey *key, DnsResourceRecord *rrsig) { in dnssec_key_match_rrsig()
2516 const DnsResourceKey *key, in dnssec_verify_rrset_search()
2525 int dnssec_has_rrsig(DnsAnswer *a, const DnsResourceKey *key) { in dnssec_has_rrsig()
[all …]
Dresolved-dns-transaction.c202 DnsResourceKey *key) { in key_ok()
226 DnsResourceKey *key, in dns_transaction_new()
243 DnsResourceKey *qk; in dns_transaction_new()
1760 DnsResourceKey *tkey; in dns_transaction_make_packet_mdns()
2107 static int dns_transaction_add_dnssec_transaction(DnsTransaction *t, DnsResourceKey *key, DnsTransa… in dns_transaction_add_dnssec_transaction()
2159 static int dns_transaction_request_dnssec_rr(DnsTransaction *t, DnsResourceKey *key) { in dns_transaction_request_dnssec_rr()
2337 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *dnskey = NULL; in dns_transaction_request_dnssec_keys()
2382 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *ds = NULL; in dns_transaction_request_dnssec_keys()
2412 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *ds = NULL; in dns_transaction_request_dnssec_keys()
2467 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *soa = NULL; in dns_transaction_request_dnssec_keys()
[all …]
Dresolved-dns-scope.c650 DnsResourceKey *t; in dns_scope_good_domain()
785 bool dns_scope_good_key(DnsScope *s, const DnsResourceKey *key) { in dns_scope_good_key()
965 DnsResourceKey *key; in dns_scope_verify_conflicts()
980 DnsResourceKey *key = NULL; in dns_scope_process_query()
1080 DnsResourceKey *key, in dns_scope_find_transaction()
1181 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in on_conflict_dispatch()
1558 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_scope_remove_dnssd_services()
Dresolved-dns-trust-anchor.h21 int dns_trust_anchor_lookup_positive(DnsTrustAnchor *d, const DnsResourceKey* key, DnsAnswer **answ…
Dresolved-mdns.c108 static int mdns_packet_extract_matching_rrs(DnsPacket *p, DnsResourceKey *key, DnsResourceRecord **… in mdns_packet_extract_matching_rrs()
160 static int mdns_do_tiebreak(DnsResourceKey *key, DnsAnswer *answer, DnsPacket *p) { in mdns_do_tiebreak()
245 DnsResourceKey *key = NULL; in mdns_scope_process_query()
Dresolved-dns-trust-anchor.c41 DnsResourceKey *key, in add_root_ksk()
72 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_trust_anchor_add_builtin_positive()
536 int dns_trust_anchor_lookup_positive(DnsTrustAnchor *d, const DnsResourceKey *key, DnsAnswer **ret)… in dns_trust_anchor_lookup_positive()
Dresolved-etc-hosts.c348 DnsResourceKey *t; in manager_etc_hosts_lookup()
369 DnsResourceKey *found_ptr = NULL; in manager_etc_hosts_lookup()
Dresolved-dns-packet.c612 int dns_packet_append_key(DnsPacket *p, const DnsResourceKey *k, const DnsAnswerFlags flags, size_t… in dns_packet_append_key()
1219 DnsResourceKey *key; in dns_packet_append_question()
1617 DnsResourceKey **ret, in dns_packet_read_key()
1651 DnsResourceKey *key; in dns_packet_read_key()
1686 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_packet_read_rr()
2207 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_packet_extract_question()
2410 int dns_packet_is_reply_for(DnsPacket *p, const DnsResourceKey *key) { in dns_packet_is_reply_for()

12