Lines Matching full:result
28 domain_type *result; in allocate_domain_info() local
34 result = (domain_type *) region_alloc(table->region, in allocate_domain_info()
37 result->dname in allocate_domain_info()
39 result->node.key in allocate_domain_info()
43 result->parent = parent; in allocate_domain_info()
44 result->wildcard_child_closest_match = result; in allocate_domain_info()
45 result->rrsets = NULL; in allocate_domain_info()
46 result->usage = 0; in allocate_domain_info()
48 result->nsec3 = NULL; in allocate_domain_info()
50 result->is_existing = 0; in allocate_domain_info()
51 result->is_apex = 0; in allocate_domain_info()
54 result->number = table->numlist_last->number+1; in allocate_domain_info()
55 result->numlist_next = NULL; in allocate_domain_info()
56 result->numlist_prev = table->numlist_last; in allocate_domain_info()
57 table->numlist_last->numlist_next = result; in allocate_domain_info()
58 table->numlist_last = result; in allocate_domain_info()
60 return result; in allocate_domain_info()
65 allocate_domain_nsec3(domain_table_type* table, domain_type* result) in allocate_domain_nsec3() argument
67 if(result->nsec3) in allocate_domain_nsec3()
69 result->nsec3 = (struct nsec3_domain_data*) region_alloc(table->region, in allocate_domain_nsec3()
71 result->nsec3->nsec3_cover = NULL; in allocate_domain_nsec3()
72 result->nsec3->nsec3_wcard_child_cover = NULL; in allocate_domain_nsec3()
73 result->nsec3->nsec3_ds_parent_cover = NULL; in allocate_domain_nsec3()
74 result->nsec3->nsec3_is_exact = 0; in allocate_domain_nsec3()
75 result->nsec3->nsec3_ds_parent_is_exact = 0; in allocate_domain_nsec3()
76 result->nsec3->hash_wc = NULL; in allocate_domain_nsec3()
77 result->nsec3->ds_parent_hash = NULL; in allocate_domain_nsec3()
78 result->nsec3->prehash_prev = NULL; in allocate_domain_nsec3()
79 result->nsec3->prehash_next = NULL; in allocate_domain_nsec3()
80 result->nsec3->nsec3_node.key = NULL; in allocate_domain_nsec3()
316 domain_table_type* result; in domain_table_create() local
343 result = (domain_table_type *) region_alloc(region, in domain_table_create()
345 result->region = region; in domain_table_create()
347 result->nametree = radix_tree_create(region); in domain_table_create()
348 root->rnode = radname_insert(result->nametree, dname_name(root->dname), in domain_table_create()
351 result->names_to_domains = rbtree_create( in domain_table_create()
353 rbtree_insert(result->names_to_domains, (rbnode_type *) root); in domain_table_create()
356 result->root = root; in domain_table_create()
357 result->numlist_last = root; in domain_table_create()
359 result->prehash_list = NULL; in domain_table_create()
362 return result; in domain_table_create()
424 domain_type* result; in domain_table_insert() local
433 result = closest_encloser; in domain_table_insert()
439 result = allocate_domain_info(table, in domain_table_insert()
443 result->rnode = radname_insert(table->nametree, in domain_table_insert()
444 dname_name(result->dname), in domain_table_insert()
445 result->dname->name_size, result); in domain_table_insert()
447 rbtree_insert(table->names_to_domains, (rbnode_type *) result); in domain_table_insert()
458 if (label_compare(dname_name(domain_dname(result)), in domain_table_insert()
460 && dname_compare(domain_dname(result), in domain_table_insert()
464 = result; in domain_table_insert()
466 closest_encloser = result; in domain_table_insert()
470 return result; in domain_table_insert()
519 rrset_type* result = domain->rrsets; in domain_find_rrset() local
521 while (result) { in domain_find_rrset()
522 if (result->zone == zone && rrset_rrtype(result) == type) { in domain_find_rrset()
523 return result; in domain_find_rrset()
525 result = result->next; in domain_find_rrset()
533 rrset_type* result = domain->rrsets; in domain_find_any_rrset() local
535 while (result) { in domain_find_any_rrset()
536 if (result->zone == zone) { in domain_find_any_rrset()
537 return result; in domain_find_any_rrset()
539 result = result->next; in domain_find_any_rrset()
585 domain_type* result = NULL; in domain_find_ns_rrsets() local
591 result = domain; in domain_find_ns_rrsets()
596 if(result) in domain_find_ns_rrsets()
597 return result; in domain_find_ns_rrsets()
673 rrset_type *result = domain->rrsets; in domain_find_non_cname_rrset() local
675 while (result) { in domain_find_non_cname_rrset()
676 if (result->zone == zone && /* here is the list of exceptions*/ in domain_find_non_cname_rrset()
677 rrset_rrtype(result) != TYPE_CNAME && in domain_find_non_cname_rrset()
678 rrset_rrtype(result) != TYPE_RRSIG && in domain_find_non_cname_rrset()
679 rrset_rrtype(result) != TYPE_NXT && in domain_find_non_cname_rrset()
680 rrset_rrtype(result) != TYPE_SIG && in domain_find_non_cname_rrset()
681 rrset_rrtype(result) != TYPE_NSEC && in domain_find_non_cname_rrset()
682 rrset_rrtype(result) != TYPE_NSEC3 ) { in domain_find_non_cname_rrset()
683 return result; in domain_find_non_cname_rrset()
685 result = result->next; in domain_find_non_cname_rrset()