Lines Matching refs:DnsResourceKey
19 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()
97 DnsResourceKey *k; in dns_resource_key_new_consume()
101 k = new(DnsResourceKey, 1); in dns_resource_key_new_consume()
105 *k = (DnsResourceKey) { in dns_resource_key_new_consume()
115 DnsResourceKey* dns_resource_key_ref(DnsResourceKey *k) { in dns_resource_key_ref()
130 DnsResourceKey* dns_resource_key_unref(DnsResourceKey *k) { in dns_resource_key_unref()
146 const char* dns_resource_key_name(const DnsResourceKey *key) { in dns_resource_key_name()
155 name = (char*) key + sizeof(DnsResourceKey); in dns_resource_key_name()
163 bool dns_resource_key_is_address(const DnsResourceKey *key) { in dns_resource_key_is_address()
171 bool dns_resource_key_is_dnssd_ptr(const DnsResourceKey *key) { in dns_resource_key_is_dnssd_ptr()
184 int dns_resource_key_equal(const DnsResourceKey *a, const DnsResourceKey *b) { in dns_resource_key_equal()
203 int dns_resource_key_match_rr(const DnsResourceKey *key, DnsResourceRecord *rr, const char *search_… in dns_resource_key_match_rr()
239 int dns_resource_key_match_cname_or_dname(const DnsResourceKey *key, const DnsResourceKey *cname, c… in dns_resource_key_match_cname_or_dname()
277 int dns_resource_key_match_soa(const DnsResourceKey *key, const DnsResourceKey *soa) { in dns_resource_key_match_soa()
292 static void dns_resource_key_hash_func(const DnsResourceKey *k, struct siphash *state) { in dns_resource_key_hash_func()
300 static int dns_resource_key_compare_func(const DnsResourceKey *x, const DnsResourceKey *y) { in dns_resource_key_compare_func()
314 DEFINE_HASH_OPS(dns_resource_key_hash_ops, DnsResourceKey, dns_resource_key_hash_func, dns_resource…
316 char* dns_resource_key_to_string(const DnsResourceKey *key, char *buf, size_t buf_size) { in dns_resource_key_to_string()
334 bool dns_resource_key_reduce(DnsResourceKey **a, DnsResourceKey **b) { in dns_resource_key_reduce()
371 DnsResourceRecord* dns_resource_record_new(DnsResourceKey *key) { in dns_resource_record_new()
390 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_resource_record_new_full()
497 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; in dns_resource_record_new_reverse()
1727 int dns_resource_record_get_cname_target(DnsResourceKey *key, DnsResourceRecord *cname, char **ret)… in dns_resource_record_get_cname_target()