Home
last modified time | relevance | path

Searched refs:zone (Results 1 – 25 of 224) sorted by relevance

123456789

/openbsd-src/usr.sbin/nsd/
H A Dxfrd-notify.c23 static void notify_enable(struct notify_zone* zone,
26 static void setup_notify_active(struct notify_zone* zone);
31 static int xfrd_notify_send_udp(struct notify_zone* zone, int index);
34 notify_send_disable(struct notify_zone* zone) in notify_send_disable() argument
36 zone->notify_send_enable = 0; in notify_send_disable()
37 event_del(&zone->notify_send_handler); in notify_send_disable()
38 if(zone->notify_send_handler.ev_fd != -1) { in notify_send_disable()
39 close(zone->notify_send_handler.ev_fd); in notify_send_disable()
40 zone->notify_send_handler.ev_fd = -1; in notify_send_disable()
45 notify_send6_disable(struct notify_zone* zone) in notify_send6_disable() argument
[all …]
H A Ddbaccess.c57 zone_type* zone = (zone_type *) region_alloc(db->region, in namedb_zone_create() local
59 zone->node = radname_insert(db->zonetree, dname_name(dname), in namedb_zone_create()
60 dname->name_size, zone); in namedb_zone_create()
61 assert(zone->node); in namedb_zone_create()
62 zone->apex = domain_table_insert(db->domains, dname); in namedb_zone_create()
63 zone->apex->usage++; /* the zone.apex reference */ in namedb_zone_create()
64 zone->apex->is_apex = 1; in namedb_zone_create()
65 zone->soa_rrset = NULL; in namedb_zone_create()
66 zone->soa_nx_rrset = NULL; in namedb_zone_create()
67 zone->ns_rrset = NULL; in namedb_zone_create()
[all …]
H A Dxfrd.c67 static int xfrd_handle_incoming_notify(xfrd_zone_type* zone,
73 static void xfrd_set_zone_state(xfrd_zone_type* zone,
76 static void xfrd_set_timer_retry(xfrd_zone_type* zone);
78 static void xfrd_set_timer_refresh(xfrd_zone_type* zone);
88 static int xfrd_send_ixfr_request_udp(xfrd_zone_type* zone);
90 static void xfrd_udp_obtain(xfrd_zone_type* zone);
93 static void xfrd_udp_read(xfrd_zone_type* zone);
96 static int find_same_master_notify(xfrd_zone_type* zone, int acl_num_nfy);
101 static void xfrd_free_zone_xfr(xfrd_zone_type* zone, xfrd_xfr_type* xfr);
244 xfrd_zone_type* zone; in xfrd_process_activated() local
[all …]
H A Dnsec3.h17 struct zone;
26 void prehash_zone(struct namedb* db, struct zone* zone);
30 void prehash_zone_complete(struct namedb* db, struct zone* zone);
36 int nsec3_find_cover(struct zone* zone, uint8_t* hash, size_t hashlen,
74 int domain_has_only_NSEC3(struct domain* domain, struct zone* zone);
77 void nsec3_hash_and_store(struct zone* zone, const struct dname* dname,
80 int nsec3_rr_uses_params(struct rr* rr, struct zone* zone);
82 int nsec3_in_chain_count(struct domain* domain, struct zone* zone);
84 struct domain* nsec3_chain_find_prev(struct zone* zone, struct domain* domain);
86 void nsec3_clear_precompile(struct namedb* db, struct zone* zone);
[all …]
H A Dxfrd-tcp.c322 return ((struct xfrd_tcp_pipeline_id*)n)->zone; in xfrd_tcp_pipeline_lookup_id()
329 struct xfrd_zone* zone) in xfrd_tcp_pipeline_insert_id() argument
342 n->zone = zone; in xfrd_tcp_pipeline_insert_id()
374 zid->zone = TCP_NULL_SKIP; in xfrd_tcp_pipeline_skip_id()
513 pipeline_find(struct xfrd_tcp_set* set, xfrd_zone_type* zone) in pipeline_find() argument
522 key->ip_len = xfrd_acl_sockaddr_to(zone->master, &key->ip); in pipeline_find()
545 tcp_zone_waiting_list_popfirst(struct xfrd_tcp_set* set, xfrd_zone_type* zone) in tcp_zone_waiting_list_popfirst() argument
547 assert(zone->tcp_waiting); in tcp_zone_waiting_list_popfirst()
548 set->tcp_waiting_first = zone->tcp_waiting_next; in tcp_zone_waiting_list_popfirst()
549 if(zone->tcp_waiting_next) in tcp_zone_waiting_list_popfirst()
[all …]
H A Dnsec3.c78 void nsec3_zone_trees_create(struct region* region, zone_type* zone) in nsec3_zone_trees_create() argument
80 if(!zone->nsec3tree) in nsec3_zone_trees_create()
81 zone->nsec3tree = rbtree_create(region, cmp_nsec3_tree); in nsec3_zone_trees_create()
82 if(!zone->hashtree) in nsec3_zone_trees_create()
83 zone->hashtree = rbtree_create(region, cmp_hash_tree); in nsec3_zone_trees_create()
84 if(!zone->wchashtree) in nsec3_zone_trees_create()
85 zone->wchashtree = rbtree_create(region, cmp_wchash_tree); in nsec3_zone_trees_create()
86 if(!zone->dshashtree) in nsec3_zone_trees_create()
87 zone->dshashtree = rbtree_create(region, cmp_dshash_tree); in nsec3_zone_trees_create()
102 nsec3_b32_create(region_type* region, zone_type* zone, unsigned char* hash) in nsec3_b32_create() argument
[all …]
H A Ddbcreate.c68 print_rrs(FILE* out, struct zone* zone) in print_rrs() argument
71 domain_type *domain = zone->apex; in print_rrs()
77 if(zone->soa_rrset) { in print_rrs()
79 for(i=0; i < zone->soa_rrset->rr_count; i++) { in print_rrs()
80 if(!print_rr(out, state, &zone->soa_rrset->rrs[i], in print_rrs()
84 zone->opts->name); in print_rrs()
92 while(domain && domain_is_subdomain(domain, zone->apex)) in print_rrs()
97 if(rrset->zone != zone || rrset == zone->soa_rrset) in print_rrs()
104 zone->opts->name); in print_rrs()
119 print_header(zone_type* zone, FILE* out, time_t* now, const char* logs) in print_header() argument
[all …]
H A Dxfrd-disk.c191 xfrd_zone_type* zone; in xfrd_read_state() local
240 zone = (xfrd_zone_type*)rbtree_search(xfrd->zones, dname); in xfrd_read_state()
241 if(!zone) { in xfrd_read_state()
252 statefile, zone->apex_str); in xfrd_read_state()
255 zone->state = state; in xfrd_read_state()
256 zone->master_num = masnum; in xfrd_read_state()
257 zone->next_master = nextmas; in xfrd_read_state()
258 zone->round_num = round_num; in xfrd_read_state()
259 zone->timeout.tv_sec = timeout; in xfrd_read_state()
260 zone->timeout.tv_usec = 0; in xfrd_read_state()
[all …]
H A Dxfrd.h282 within_refresh_bounds(xfrd_zone_type* zone, time_t refresh) in within_refresh_bounds() argument
284 return (time_t)zone->zone_options->pattern->max_refresh_time < refresh in within_refresh_bounds()
285 ? (time_t)zone->zone_options->pattern->max_refresh_time in within_refresh_bounds()
286 : (time_t)zone->zone_options->pattern->min_refresh_time > refresh in within_refresh_bounds()
287 ? (time_t)zone->zone_options->pattern->min_refresh_time in within_refresh_bounds()
297 bound_soa_disk_refresh(xfrd_zone_type* zone) in bound_soa_disk_refresh() argument
299 return within_refresh_bounds(zone, ntohl(zone->soa_disk.refresh)); in bound_soa_disk_refresh()
307 within_retry_bounds(xfrd_zone_type* zone, time_t retry) in within_retry_bounds() argument
309 return (time_t)zone->zone_options->pattern->max_retry_time < retry in within_retry_bounds()
310 ? (time_t)zone->zone_options->pattern->max_retry_time in within_retry_bounds()
[all …]
H A Dixfrcreate.c111 static int spool_rrsets(FILE* out, rrset_type* rrsets, struct zone* zone) in spool_rrsets() argument
115 if(s->zone != zone) in spool_rrsets()
125 static size_t domain_count_rrsets(domain_type* domain, zone_type* zone) in domain_count_rrsets() argument
130 if(s->zone == zone) in domain_count_rrsets()
137 static int spool_domains(FILE* out, struct zone* zone) in spool_domains() argument
140 for(domain = zone->apex; domain && domain_is_subdomain(domain, in spool_domains()
141 zone->apex); domain = domain_next(domain)) { in spool_domains()
142 uint32_t count = domain_count_rrsets(domain, zone); in spool_domains()
151 if(!spool_rrsets(out, domain->rrsets, zone)) in spool_domains()
161 static int spool_zone_to_file(struct zone* zone, char* file_name, in spool_zone_to_file() argument
[all …]
H A Dixfr.c492 uint32_t zone_get_current_serial(struct zone* zone) in zone_get_current_serial() argument
494 if(!zone || !zone->soa_rrset) in zone_get_current_serial()
496 if(zone->soa_rrset->rr_count == 0) in zone_get_current_serial()
498 if(zone->soa_rrset->rrs[0].rdata_count < 3) in zone_get_current_serial()
500 if(zone->soa_rrset->rrs[0].rdatas[2].data[0] < 4) in zone_get_current_serial()
502 return read_uint32(&zone->soa_rrset->rrs[0].rdatas[2].data[1]); in zone_get_current_serial()
766 struct zone* zone; in query_ixfr() local
787 zone = namedb_find_zone(nsd->db, query->qname); in query_ixfr()
788 if(!zone) { in query_ixfr()
793 ZTATUP(nsd, zone, rixfr); in query_ixfr()
[all …]
H A Ddifffile.c58 diff_write_packet(const char* zone, const char* pat, uint32_t old_serial, in diff_write_packet() argument
65 zone, (long long)filenumber, strerror(errno)); in diff_write_packet()
74 zone, strerror(errno)); in diff_write_packet()
85 !write_str(df, zone) || in diff_write_packet()
88 zone, (long long)filenumber, strerror(errno)); in diff_write_packet()
100 zone, (long long)filenumber, strerror(errno)); in diff_write_packet()
106 diff_write_commit(const char* zone, uint32_t old_serial, uint32_t new_serial, in diff_write_commit() argument
115 zone, strerror(errno)); in diff_write_commit()
126 zone, (long long)filenumber, strerror(errno)); in diff_write_commit()
138 zone, (long long)filenumber, strerror(errno)); in diff_write_commit()
[all …]
H A Dixfr.h16 struct zone;
105 struct zone* zone; member
135 struct ixfr_store* ixfr_store_start(struct zone* zone,
205 void ixfr_store_delixfrs(struct zone* zone);
208 int zone_is_ixfr_enabled(struct zone* zone);
217 void zone_ixfr_make_space(struct zone_ixfr* ixfr, struct zone* zone,
234 void ixfr_write_to_file(struct zone* zone, const char* zfile);
237 void ixfr_read_from_file(struct nsd* nsd, struct zone* zone, const char* zfile);
240 uint32_t zone_get_current_serial(struct zone* zone);
243 int ixfr_write_file(struct zone* zone, struct ixfr_data* data,
[all …]
H A Dverify.c34 struct zone *verify_next_zone(struct nsd *nsd, struct zone *zone) in verify_next_zone() argument
39 if(zone != NULL) { in verify_next_zone()
40 node = radix_next(zone->node); in verify_next_zone()
46 zone = (struct zone *)node->elem; in verify_next_zone()
47 verify = zone->opts->pattern->verify_zone; in verify_next_zone()
51 if(verify && zone->is_updated && !zone->is_checked) { in verify_next_zone()
52 return zone; in verify_next_zone()
170 assert(verifier->zone != NULL); in kill_verifier()
175 verifier->zone->opts->name, in kill_verifier()
212 verifier->zone->is_ok = verifier->was_ok; in close_verifier()
[all …]
H A Dixfrcreate.h13 struct zone;
35 struct ixfr_create* ixfr_create_start(struct zone* zone, const char* zfile,
45 int ixfr_create_perform(struct ixfr_create* ixfrcr, struct zone* zone,
55 int ixfr_create_from_difference(struct zone* zone, const char* zfile,
59 void ixfr_readup_exist(struct zone* zone, struct nsd* nsd, const char* zfile);
H A Dnamedb.c517 domain_find_rrset(domain_type* domain, zone_type* zone, uint16_t type) in domain_find_rrset() argument
522 if (result->zone == zone && rrset_rrtype(result) == type) { in domain_find_rrset()
531 domain_find_any_rrset(domain_type* domain, zone_type* zone) in domain_find_any_rrset() argument
536 if (result->zone == zone) { in domain_find_any_rrset()
552 return rrset->zone; in domain_find_zone()
563 domain_find_parent_zone(namedb_type* db, zone_type* zone) in domain_find_parent_zone() argument
567 assert(zone); in domain_find_parent_zone()
569 for (rrset = zone->apex->rrsets; rrset; rrset = rrset->next) { in domain_find_parent_zone()
570 if (rrset->zone != zone && rrset_rrtype(rrset) == TYPE_NS) { in domain_find_parent_zone()
571 return rrset->zone; in domain_find_parent_zone()
[all …]
H A Dnamedb.h35 typedef struct zone zone_type;
124 struct zone struct
172 zone_type* zone; member
252 rrset_type* domain_find_rrset(domain_type* domain, zone_type* zone, uint16_t type);
253 rrset_type* domain_find_any_rrset(domain_type* domain, zone_type* zone);
256 zone_type* domain_find_parent_zone(namedb_type* db, zone_type* zone);
258 domain_type* domain_find_ns_rrsets(domain_type* domain, zone_type* zone, rrset_type **ns);
260 domain_type * find_dname_above(domain_type* domain, zone_type* zone);
262 int domain_is_glue(domain_type* domain, zone_type* zone);
264 rrset_type* domain_find_non_cname_rrset(domain_type* domain, zone_type* zone);
[all …]
H A Ddifffile.h30 void diff_write_packet(const char* zone, const char* pat, uint32_t old_serial,
38 void diff_write_commit(const char* zone, uint32_t old_serial,
46 void diff_update_commit(const char* zone,
57 void delete_zone_rrs(namedb_type* db, zone_type* zone);
61 buffer_type* packet, size_t rdatalen, zone_type *zone,
66 buffer_type* packet, size_t rdatalen, zone_type *zone,
70 int apply_ixfr_for_zone(struct nsd* nsd, zone_type* zone, FILE* in,
137 void task_new_soainfo(udb_base* udb, udb_ptr* last, struct zone* z, enum soainfo_hint hint);
141 const dname_type* zone);
143 const dname_type* zone);
[all …]
H A Dnsd-checkconf.c25 domain_table_type* ATTR_UNUSED(domains), zone_type* ATTR_UNUSED(zone), in zonec_parse_string() argument
321 zone_options_type* zone; in config_print_zone() local
327 zone = zone_options_find(opt, dname); in config_print_zone()
328 if(!zone) { in config_print_zone()
332 ZONE_GET_STR(name, o, zone); in config_print_zone()
334 quote(zone->pattern->pname); in config_print_zone()
337 ZONE_GET_BIN(part_of_config, o, zone); in config_print_zone()
338 ZONE_GET_PATH(final, zonefile, o, zone->pattern); in config_print_zone()
339 ZONE_GET_ACL(allow_query, o, zone->pattern); in config_print_zone()
340 ZONE_GET_ACL(request_xfr, o, zone->pattern); in config_print_zone()
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dggc-zone.c244 struct alloc_zone *zone; member
704 struct alloc_zone *zone; in zone_allocate_marks() local
706 for (zone = G.zones; zone; zone = zone->next_zone) in zone_allocate_marks()
717 mark_words = zone->n_small_pages * mark_words_per_page; in zone_allocate_marks()
718 zone->mark_bits = (mark_type *) xcalloc (sizeof (mark_type), in zone_allocate_marks()
720 cur_marks = zone->mark_bits; in zone_allocate_marks()
721 for (page = zone->pages; page; page = page->next) in zone_allocate_marks()
730 gcc_assert (n == zone->n_small_pages); in zone_allocate_marks()
746 struct alloc_zone *zone; in zone_free_marks() local
748 for (zone = G.zones; zone; zone = zone->next_zone) in zone_free_marks()
[all …]
/openbsd-src/sbin/unwind/libunbound/validator/
H A Dval_neg.c231 z = el->zone; in neg_delete_data()
304 static struct val_neg_data* neg_find_data(struct val_neg_zone* zone, in neg_find_data() argument
315 rbtree_search(&zone->tree, lookfor.node.key); in neg_find_data()
411 struct val_neg_zone* zone, uint8_t* nm, size_t nm_len, int labs) in neg_closest_data_parent() argument
420 if(rbtree_find_less_equal(&zone->tree, &key, &res)) { in neg_closest_data_parent()
452 struct val_neg_zone* zone = in neg_setup_zone_node() local
453 (struct val_neg_zone*)calloc(1, sizeof(*zone)); in neg_setup_zone_node()
454 if(!zone) { in neg_setup_zone_node()
457 zone->node.key = zone; in neg_setup_zone_node()
458 zone->name = memdup(nm, nm_len); in neg_setup_zone_node()
[all …]
/openbsd-src/usr.sbin/unbound/validator/
H A Dval_neg.c231 z = el->zone; in neg_delete_data()
304 static struct val_neg_data* neg_find_data(struct val_neg_zone* zone, in neg_find_data() argument
315 rbtree_search(&zone->tree, lookfor.node.key); in neg_find_data()
411 struct val_neg_zone* zone, uint8_t* nm, size_t nm_len, int labs) in neg_closest_data_parent() argument
420 if(rbtree_find_less_equal(&zone->tree, &key, &res)) { in neg_closest_data_parent()
452 struct val_neg_zone* zone = in neg_setup_zone_node() local
453 (struct val_neg_zone*)calloc(1, sizeof(*zone)); in neg_setup_zone_node()
454 if(!zone) { in neg_setup_zone_node()
457 zone->node.key = zone; in neg_setup_zone_node()
458 zone->name = memdup(nm, nm_len); in neg_setup_zone_node()
[all …]
/openbsd-src/regress/lib/libz/
H A Dinfcover.c75 struct mem_zone *zone = mem; in mem_alloc() local
79 if (zone == NULL || (zone->limit && zone->total + len > zone->limit)) in mem_alloc()
99 item->next = zone->first; in mem_alloc()
100 zone->first = item; in mem_alloc()
103 zone->total += item->size; in mem_alloc()
104 if (zone->total > zone->highwater) in mem_alloc()
105 zone->highwater = zone->total; in mem_alloc()
115 struct mem_zone *zone = mem; in mem_free() local
118 if (zone == NULL) { in mem_free()
125 next = zone->first; in mem_free()
[all …]
/openbsd-src/usr.sbin/unbound/testcode/
H A Dunitneg.c365 static int sum_subtree_inuse(struct val_neg_zone* zone, in sum_subtree_inuse() argument
370 RBTREE_FOR(d, struct val_neg_data*, &zone->tree) { in sum_subtree_inuse()
381 struct val_neg_zone* zone) in sum_zone_subtree_inuse() argument
386 if(dname_subdomain_c(z->name, zone->name)) { in sum_zone_subtree_inuse()
395 static void check_data(struct val_neg_zone* zone, struct val_neg_data* data) in check_data() argument
413 unit_assert(data->count == sum_subtree_inuse(zone, data)); in check_data()
417 static void checkzonetree(struct val_neg_zone* zone) in checkzonetree() argument
422 RBTREE_FOR(d, struct val_neg_data*, &zone->tree) { in checkzonetree()
423 check_data(zone, d); in checkzonetree()
429 struct val_neg_zone* zone) in check_zone_invariants() argument
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_malloc_mac.inc9 // This file contains Mac-specific malloc interceptors and a custom zone
41 // zone enumeration.
65 // Prevent the client app from overwriting the zone contents.
66 // Library functions that need to modify the zone will set PROT_WRITE on it.
69 // We're explicitly *NOT* registering the zone.
73 INTERCEPTOR(void, malloc_destroy_zone, malloc_zone_t *zone) {
76 // don't to unregister. Just un-mprotect and free() the zone.
79 mprotect(zone, allocated_size, PROT_READ | PROT_WRITE);
80 if (zone->zone_name) {
81 COMMON_MALLOC_FREE((void *)zone->zone_name);
[all …]

123456789