/openbsd/usr.sbin/nsd/ |
H A D | xfrd-notify.c | 160 zone->apex_str, zone->pkts[index].dest->ip_address_spec); in reply_pkt_is_ack() 167 zone->apex_str, zone->pkts[index].dest->ip_address_spec); in reply_pkt_is_ack() 304 zone->apex_str, zone->pkts[index].notify_retry, in xfrd_notify_send_udp() 335 zone->apex_str, zone->pkts[index].notify_retry, in xfrd_notify_send_udp() 363 zone->pkts[i].dest = zone->notify_current; in notify_start_pkts() 364 zone->notify_current = zone->notify_current->next; in notify_start_pkts() 449 if(!zone->notify_current && !zone->notify_pkt_count) { in xfrd_handle_notify_send() 465 memset(zone->pkts, 0, sizeof(zone->pkts)); in setup_notify_active() 466 zone->notify_current = zone->options->pattern->notify; in setup_notify_active() 503 zone->notify_current = zone->options->pattern->notify; in notify_enable() [all …]
|
H A D | dbaccess.c | 61 assert(zone->node); in namedb_zone_create() 76 zone->opts = zo; in namedb_zone_create() 77 zone->ixfr = NULL; in namedb_zone_create() 88 zone->is_bad = 0; in namedb_zone_create() 89 zone->is_ok = 1; in namedb_zone_create() 90 return zone; in namedb_zone_create() 100 if(zone->apex) { in namedb_zone_delete() 126 if(zone->logstr) in namedb_zone_delete() 202 if(!nsd->db || !zone || !zone->opts || !zone->opts->pattern->zonefile) in namedb_read_zonefile() 264 errors = zonec_read(zone->opts->name, fname, zone); in namedb_read_zonefile() [all …]
|
H A D | xfrd.c | 839 zone->soa_disk = zone->soa_nsd; in xfrd_process_soa_info_task() 1181 zone->apex_str, zone->next_master)); in xfrd_make_request() 1182 zone->master_num = zone->next_master; in xfrd_make_request() 1196 if(zone->round_num != -1 && zone->master && zone->master->next) in xfrd_make_request() 1199 zone->master = zone->master->next; in xfrd_make_request() 1213 zone->apex_str, zone->round_num, zone->master_num, zone->next_master)); in xfrd_make_request() 1252 zone->apex_str, zone->round_num, zone->master_num, zone->next_master)); in xfrd_make_request() 1390 zone->apex_str, zone->state)); in xfrd_set_refresh_now() 1655 zone->next_master = zone->master_num; in xfrd_disable_ixfr() 2068 assert(zone && zone->master && zone->master->key_options in xfrd_xfr_process_tsig() [all …]
|
H A D | nsec3.h | 17 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, 80 int nsec3_rr_uses_params(struct rr* rr, struct zone* zone); 82 int nsec3_in_chain_count(struct domain* domain, struct zone* zone); 86 void nsec3_clear_precompile(struct namedb* db, struct zone* zone); 94 void nsec3_find_zone_param(struct namedb* db, struct zone* zone, 98 struct zone* zone, struct region* tmpregion); 101 struct zone* zone); [all …]
|
H A D | xfrd-tcp.c | 342 n->zone = zone; in xfrd_tcp_pipeline_insert_id() 608 xfrd_zone_type* zone = zid->zone; in xfrd_tcp_pipe_stop() local 609 if(zone && zone != TCP_NULL_SKIP) { in xfrd_tcp_pipe_stop() 689 xfrd_tcp_pipeline_insert_id(tp, zone->query_id, zone); in pipeline_setup_new_zone() 806 zone->apex_str, zone->master->ip_address_spec)); in xfrd_tcp_open() 884 zone->apex_str, zone->master->ip_address_spec); in xfrd_tcp_open() 980 zone->apex_str, zone->master->ip_address_spec)); in xfrd_tcp_setup_write_packet() 988 zone->apex_str, zone->master->ip_address_spec)); in xfrd_tcp_setup_write_packet() 1177 zone->apex_str, zone->master->ip_address_spec, in xfrd_tcp_write() 1491 if(!zone || zone == TCP_NULL_SKIP) { in xfrd_tcp_read() [all …]
|
H A D | nsec3.c | 286 nsec3_find_zone_param(struct namedb* db, struct zone* zone, in nsec3_find_zone_param() argument 334 nsec3_chain_find_prev(struct zone* zone, struct domain* domain) in nsec3_chain_find_prev() argument 345 if(zone->nsec3_last && zone->nsec3_last != domain) in nsec3_chain_find_prev() 506 assert(zone->nsec3_param && zone->nsec3tree); in nsec3_find_cover() 519 struct zone* zone, region_type* tmpregion) in nsec3_precompile_domain() argument 551 struct zone* zone) in nsec3_precompile_domain_ds() argument 590 struct zone* zone) in nsec3_precompile_nsec3rr() argument 638 prehash_zone_complete(struct namedb* db, struct zone* zone) in prehash_zone_complete() argument 646 if(!zone->nsec3_param || !check_apex_soa(db, zone, 0)) { in prehash_zone_complete() 832 void prehash_zone(struct namedb* db, struct zone* zone) in prehash_zone() argument [all …]
|
H A D | dbcreate.c | 68 print_rrs(FILE* out, struct zone* zone) in print_rrs() argument 77 if(zone->soa_rrset) { in print_rrs() 97 if(rrset->zone != zone || rrset == zone->soa_rrset) in print_rrs() 218 zone_type* zone; in namedb_write_zonefile() local 224 if(!zone || !zone->apex || !zone->soa_rrset) in namedb_write_zonefile() 242 if(zone->logstr) in namedb_write_zonefile() 264 zone->mtime = mtime; in namedb_write_zonefile() 265 if(zone->filename) in namedb_write_zonefile() 269 if(zone->logstr) in namedb_write_zonefile() 272 zone->logstr = NULL; in namedb_write_zonefile() [all …]
|
H A D | xfrd-disk.c | 241 if(!zone) { in xfrd_read_state() 255 zone->state = state; in xfrd_read_state() 264 zone->master = acl_find_num(zone->zone_options->pattern-> in xfrd_read_state() 266 if(!zone->master) { in xfrd_read_state() 268 zone->apex_str)); in xfrd_read_state() 269 zone->master = zone->zone_options->pattern->request_xfr; in xfrd_read_state() 310 if(zone->soa_nsd_acquired && zone->state != xfrd_zone_expired in xfrd_read_state() 499 (zone->zone_handler_flags&EV_TIMEOUT)?(int)zone->timeout.tv_sec:0); in xfrd_write_state() 506 zone->soa_nsd_acquired, zone->apex); in xfrd_write_state() 508 zone->soa_disk_acquired, zone->apex); in xfrd_write_state() [all …]
|
H A D | xfrd.h | 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() 322 bound_soa_disk_retry(xfrd_zone_type* zone) in bound_soa_disk_retry() argument 324 return within_retry_bounds(zone, ntohl(zone->soa_disk.retry)); in bound_soa_disk_retry() 340 return bound_soa_disk_refresh(zone) + bound_soa_disk_retry(zone) + 1 > expire in within_expire_bounds() 341 ? bound_soa_disk_refresh(zone) + bound_soa_disk_retry(zone) + 1 : expire; in within_expire_bounds() 349 bound_soa_disk_expire(xfrd_zone_type* zone) in bound_soa_disk_expire() argument 351 return within_expire_bounds(zone, ntohl(zone->soa_disk.expire)); in bound_soa_disk_expire() 356 bound_soa_nsd_expire(xfrd_zone_type* zone) in bound_soa_nsd_expire() argument 358 return within_expire_bounds(zone, ntohl(zone->soa_nsd.expire)); in bound_soa_nsd_expire() [all …]
|
H A D | ixfrcreate.c | 115 if(s->zone != zone) in spool_rrsets() 130 if(s->zone == zone) in domain_count_rrsets() 137 static int spool_domains(FILE* out, struct zone* zone) in spool_domains() argument 236 if(zone->opts && zone->opts->pattern) in ixfr_create_start() 539 if(s->zone != zone) in process_marktypes() 616 if(s->zone != zone) in process_domain_add_RRs() 836 struct ixfr_store* store, struct zone* zone) in ixfr_create_walk_zone() argument 905 struct zone* zone, const char* zfile, int checknew) in ixfr_create_already_done() argument 913 struct zone* zone) in ixfr_create_store_newsoa() argument 915 if(!zone || !zone->soa_rrset) { in ixfr_create_store_newsoa() [all …]
|
H A D | ixfr.c | 492 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() 766 struct zone* zone; in query_ixfr() local 847 query->zone = zone; in query_ixfr() 955 ixfr_store->zone = zone; in ixfr_store_start() 1492 int zone_is_ixfr_enabled(struct zone* zone) in zone_is_ixfr_enabled() argument 1552 void ixfr_store_delixfrs(struct zone* zone) in ixfr_store_delixfrs() argument 1668 if(!zone->ixfr || !zone->ixfr->data) in ixfr_target_number_files() 1864 if(!zone->ixfr || !zone->ixfr->data) in ixfr_delete_memory_items() 1886 if(!zone->ixfr || !zone->ixfr->data) in ixfr_rename_files() [all …]
|
H A D | difffile.c | 773 zone); in delete_RR() 808 rrset->zone = zone; in add_RR() 871 zone->nsec3_param = (void*)zone->nsec3_param - in add_RR() 900 if(zone) { in find_or_create_zone() 929 return zone; in find_or_create_zone() 997 struct zone* zone, int* bytes, in apply_ixfr() argument 1263 if(zone && zone->apex == domain && zone->soa_rrset && old_serial) in check_for_bad_serial() 1605 (zone?dname_total_size(zone):0), zone)) { in task_new_check_zonefiles() 1620 (zone?dname_total_size(zone):0), zone)) { in task_new_write_zonefiles() 1953 if(!zone) in task_process_del_zone() [all …]
|
H A D | ixfr.h | 16 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 D | verify.c | 34 struct zone *verify_next_zone(struct nsd *nsd, struct zone *zone) in verify_next_zone() argument 39 if(zone != NULL) { in verify_next_zone() 46 zone = (struct zone *)node->elem; in verify_next_zone() 51 if(verify && zone->is_updated && !zone->is_checked) { in verify_next_zone() 52 return zone; in verify_next_zone() 214 verifier->zone = NULL; in close_verifier() 413 void verify_zone(struct nsd *nsd, struct zone *zone) in verify_zone() argument 423 assert(zone != NULL); in verify_zone() 500 verifier->zone = zone; in verify_zone() 586 zone->is_ok = 1; in verify_zone() [all …]
|
H A D | ixfrcreate.h | 13 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 D | namedb.c | 522 if (result->zone == zone && rrset_rrtype(result) == type) { in domain_find_rrset() 536 if (result->zone == zone) { in domain_find_any_rrset() 567 assert(zone); 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() 645 assert(zone); in zone_is_secure() 676 if (result->zone == zone && /* here is the list of exceptions*/ in domain_find_non_cname_rrset() 700 void zone_rr_iter_init(struct zone_rr_iter *iter, struct zone *zone) in zone_rr_iter_init() argument 703 assert(zone != NULL); in zone_rr_iter_init() 705 iter->zone = zone; in zone_rr_iter_init() [all …]
|
H A D | namedb.h | 35 typedef struct zone zone_type; 124 struct zone struct 172 zone_type* zone; member 262 int domain_is_glue(domain_type* domain, zone_type* zone); 269 int zone_is_secure(zone_type* zone); 376 int print_rrs(FILE* out, struct zone* zone); 394 void namedb_read_zonefile(struct nsd* nsd, struct zone* zone, 401 { zone_type* zone = namedb_find_zone(db, dname); in namedb_find_or_create_zone() local 402 return zone ? zone : namedb_zone_create(db, dname, zopt); } in namedb_find_or_create_zone() 403 void namedb_zone_delete(namedb_type* db, zone_type* zone); [all …]
|
H A D | difffile.h | 30 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, 141 const dname_type* zone); 143 const dname_type* zone); 145 void task_new_add_zone(udb_base* udb, udb_ptr* last, const char* zone, [all …]
|
H A D | verify.h | 60 struct zone *zone; member 70 struct zone *verify_next_zone(struct nsd *nsd, struct zone *zone); 72 void verify_zone(struct nsd *nsd, struct zone *zone);
|
/openbsd/gnu/gcc/gcc/ |
H A D | ggc-zone.c | 706 for (zone = G.zones; zone; zone = zone->next_zone) in zone_allocate_marks() 748 for (zone = G.zones; zone; zone = zone->next_zone) in zone_free_marks() 829 e->common.zone = zone; in alloc_small_page() 1868 for (zone = G.zones; zone; zone = zone->next_zone) in ggc_collect() 1905 for (zone = main_zone.next_zone; zone; zone = zone->next_zone) in ggc_collect() 1916 for (zone = G.zones; zone; zone = zone->next_zone) in ggc_collect() 1932 for (zone = G.zones; zone && zone->next_zone; zone = zone->next_zone) in ggc_collect() 1982 for (zone = G.zones; zone; zone = zone->next_zone) in ggc_print_statistics() 1992 for (zone = G.zones; zone; zone = zone->next_zone) in ggc_print_statistics() 2082 for (zone = G.zones; zone; zone = zone->next_zone) in ggc_print_statistics() [all …]
|
/openbsd/usr.sbin/unbound/validator/ |
H A D | val_neg.c | 454 if(!zone) { in neg_setup_zone_node() 457 zone->node.key = zone; in neg_setup_zone_node() 545 if(!zone) { in neg_create_zone() 550 p = zone; in neg_create_zone() 793 p->zone = zone; in neg_insert_data() 1122 while(zone && !zone->in_use) in neg_find_nsec() 1123 zone = zone->parent; in neg_find_nsec() 1176 zone->nsec3_hash, zone->nsec3_iter, zone->nsec3_salt, in neg_find_nsec3_ce() 1354 if(zone) { in add_soa() 1533 while(zone && !zone->in_use) in val_neg_getmsg() [all …]
|
/openbsd/sbin/unwind/libunbound/validator/ |
H A D | val_neg.c | 454 if(!zone) { in neg_setup_zone_node() 457 zone->node.key = zone; in neg_setup_zone_node() 545 if(!zone) { in neg_create_zone() 550 p = zone; in neg_create_zone() 793 p->zone = zone; in neg_insert_data() 1122 while(zone && !zone->in_use) in neg_find_nsec() 1123 zone = zone->parent; in neg_find_nsec() 1176 zone->nsec3_hash, zone->nsec3_iter, zone->nsec3_salt, in neg_find_nsec3_ce() 1354 if(zone) { in add_soa() 1533 while(zone && !zone->in_use) in val_neg_getmsg() [all …]
|
/openbsd/regress/lib/libz/ |
H A D | infcover.c | 79 if (zone == NULL || (zone->limit && zone->total + len > zone->limit)) in mem_alloc() 100 zone->first = item; in mem_alloc() 104 if (zone->total > zone->highwater) in mem_alloc() 105 zone->highwater = zone->total; in mem_alloc() 150 zone->rogue++; in mem_free() 165 zone->total = 0; in mem_setup() 167 zone->limit = 0; in mem_setup() 168 zone->notlifo = 0; in mem_setup() 169 zone->rogue = 0; in mem_setup() 225 if (zone->rogue) in mem_done() [all …]
|
/openbsd/usr.sbin/unbound/testcode/ |
H A D | unitneg.c | 423 check_data(zone, d); in checkzonetree() 438 if(!zone->in_use) { in check_zone_invariants() 442 zone->in_use, zone->count, in check_zone_invariants() 450 if(zone->parent) { in check_zone_invariants() 451 unit_assert(zone->parent->count >= zone->count); in check_zone_invariants() 453 unit_assert(zone->parent->count > zone->count); in check_zone_invariants() 455 unit_assert(zone->parent->labs == zone->labs-1); in check_zone_invariants() 457 unit_assert(zone->name[0] == (zone->len-zone->parent->len-1)); in check_zone_invariants() 458 unit_assert(query_dname_compare(zone->name + zone->name[0]+1, in check_zone_invariants() 465 unit_assert(zone->count == sum_zone_subtree_inuse(neg, zone)); in check_zone_invariants() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_malloc_mac.inc | 41 // zone enumeration. 80 if (zone->zone_name) { 81 COMMON_MALLOC_FREE((void *)zone->zone_name); 83 COMMON_MALLOC_FREE(zone); 94 if (size) { // Claimed by sanitizer zone? 132 REAL(malloc_set_zone_name)(zone, name); 332 boolean_t mi_check(malloc_zone_t *zone) { 344 void mi_force_lock(malloc_zone_t *zone) { 348 void mi_force_unlock(malloc_zone_t *zone) { 353 COMMON_MALLOC_FILL_STATS(zone, stats); [all …]
|