Home
last modified time | relevance | path

Searched refs:auth_zones (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/unbound/services/
H A Dauthzone.h72 struct auth_zones { struct
480 struct auth_zones* auth_zones_create(void);
492 int auth_zones_apply_cfg(struct auth_zones* az, struct config_file* cfg,
501 void auth_xfer_pickup_initial(struct auth_zones* az, struct module_env* env);
508 void auth_zones_cleanup(struct auth_zones* az);
513 void auth_zones_delete(struct auth_zones* az);
539 int auth_zones_lookup(struct auth_zones* az, struct query_info* qinfo,
554 int auth_zones_answer(struct auth_zones* az, struct module_env* env,
568 struct auth_zone* auth_zones_find_zone(struct auth_zones* az,
572 struct auth_zone* auth_zone_find(struct auth_zones* az, uint8_t* nm,
[all …]
H A Dauthzone.c294 struct auth_zones* auth_zones_create(void) in auth_zones_create()
296 struct auth_zones* az = (struct auth_zones*)calloc(1, sizeof(*az)); in auth_zones_create()
391 auth_zone_delete(struct auth_zone* z, struct auth_zones* az) in auth_zone_delete()
416 auth_zone_create(struct auth_zones* az, uint8_t* nm, size_t nmlen, in auth_zone_create()
449 auth_zone_find(struct auth_zones* az, uint8_t* nm, size_t nmlen, in auth_zone_find()
462 auth_xfer_find(struct auth_zones* az, uint8_t* nm, size_t nmlen, in auth_xfer_find()
476 auth_zone_find_less_equal(struct auth_zones* az, uint8_t* nm, size_t nmlen, in auth_zone_find_less_equal()
491 auth_zones_find_zone(struct auth_zones* az, uint8_t* name, size_t name_len, in auth_zones_find_zone()
523 auth_zones_find_or_add_zone(struct auth_zones* az, char* name) in auth_zones_find_or_add_zone()
546 auth_zones_find_or_add_xfer(struct auth_zones* az, struct auth_zone* z) in auth_zones_find_or_add_xfer()
[all …]
H A Drpz.h180 int rpz_callback_from_worker_request(struct auth_zones* az, struct module_env* env,
H A Drpz.c1699 rpz_resolve_client_action_and_zone(struct auth_zones* az, struct query_info* qinfo, in rpz_resolve_client_action_and_zone()
2450 struct auth_zones* az; in rpz_callback_from_iterator_module()
2462 if(ms->env == NULL || ms->env->auth_zones == NULL) { return 0; } in rpz_callback_from_iterator_module()
2464 az = ms->env->auth_zones; in rpz_callback_from_iterator_module()
2524 struct auth_zones* az; in rpz_callback_from_iterator_cname()
2536 if(ms->env == NULL || ms->env->auth_zones == NULL) { return 0; } in rpz_callback_from_iterator_cname()
2537 az = ms->env->auth_zones; in rpz_callback_from_iterator_cname()
2638 rpz_apply_maybe_clientip_trigger(struct auth_zones* az, struct module_env* env, in rpz_apply_maybe_clientip_trigger()
2717 rpz_callback_from_worker_request(struct auth_zones* az, struct module_env* env, in rpz_callback_from_worker_request()
H A Dmesh.c2138 struct reply_info** encode_repp, struct auth_zones* az) in apply_respip_action()
2210 qstate->env->auth_zones)) { in mesh_serve_expired_callback()
2215 qstate->env->auth_zones)) { in mesh_serve_expired_callback()
/freebsd/contrib/unbound/daemon/
H A Dstats.c327 if(worker->env.auth_zones) { in server_stats_compile()
329 lock_rw_wrlock(&worker->env.auth_zones->lock); in server_stats_compile()
331 lock_rw_rdlock(&worker->env.auth_zones->lock); in server_stats_compile()
334 auth_zones->num_query_up; in server_stats_compile()
336 auth_zones->num_query_down; in server_stats_compile()
338 worker->env.auth_zones->num_query_up = 0; in server_stats_compile()
339 worker->env.auth_zones->num_query_down = 0; in server_stats_compile()
341 lock_rw_unlock(&worker->env.auth_zones->lock); in server_stats_compile()
H A Ddaemon.c304 if((daemon->env->auth_zones = auth_zones_create()) == 0) { in daemon_init()
314 auth_zones_delete(daemon->env->auth_zones); in daemon_init()
779 if(!auth_zones_apply_cfg(daemon->env->auth_zones, daemon->cfg, 1, in daemon_fork()
893 if(daemon->env->auth_zones) in daemon_cleanup()
894 auth_zones_cleanup(daemon->env->auth_zones); in daemon_cleanup()
943 auth_zones_delete(daemon->env->auth_zones); in daemon_delete()
H A Dworker.c592 struct reply_info** encode_repp, struct auth_zones* az) in apply_respip_action()
759 &encode_rep, worker->env.auth_zones)) { in answer_from_cache()
764 worker->env.auth_zones)) { in answer_from_cache()
1071 if(!w->env.auth_zones) return; in answer_notify()
1073 if(auth_zones_notify(w->env.auth_zones, &w->env, qinfo->qname, in answer_notify()
1719 if(worker->env.auth_zones && in worker_handle_request()
1720 rpz_callback_from_worker_request(worker->env.auth_zones, in worker_handle_request()
1731 if(worker->env.auth_zones && in worker_handle_request()
1732 auth_zones_answer(worker->env.auth_zones, &worker->env, in worker_handle_request()
2289 if(worker->env.auth_zones in worker_init()
[all …]
H A Dremote.c2750 struct auth_zones* az = worker->env.auth_zones; in do_auth_zone_reload()
2829 struct auth_zones* az = worker->env.auth_zones; in do_auth_zone_transfer()
2949 do_list_auth_zones(RES* ssl, struct auth_zones* az) in do_list_auth_zones()
3166 struct auth_zones *az = worker->env.auth_zones; in do_rpz_enable_disable()
3495 do_list_auth_zones(ssl, worker->env.auth_zones); in execute_cmd()
/freebsd/contrib/unbound/respip/
H A Drespip.h158 struct auth_zones* az);
188 int search_only, struct regional* region, struct auth_zones* az,
H A Drespip.c870 struct regional* region, struct auth_zones* az, int* rpz_passthru) in respip_rewrite_reply()
1103 qstate->region, qstate->env->auth_zones, in respip_operate()
1152 struct auth_zones* az) in respip_merge_cname()
1232 qstate->env->auth_zones)) in respip_inform_super()
/freebsd/contrib/unbound/util/
H A Dmodule.h170 struct auth_zones;
515 struct auth_zones* auth_zones; member
/freebsd/contrib/unbound/libunbound/
H A Dlibworker.c633 if(ctx->env->auth_zones && auth_zones_answer(ctx->env->auth_zones, in libworker_fg()
712 if(ctx->env->auth_zones && auth_zones_answer(ctx->env->auth_zones, in libworker_attach_mesh()
850 if(w->ctx->env->auth_zones && auth_zones_answer(w->ctx->env->auth_zones, in handle_newq()
H A Dlibunbound.c150 ctx->env->auth_zones = auth_zones_create(); in ub_ctx_create_nopipe()
151 if(!ctx->env->auth_zones) { in ub_ctx_create_nopipe()
162 auth_zones_delete(ctx->env->auth_zones); in ub_ctx_create_nopipe()
393 auth_zones_delete(ctx->env->auth_zones); in ub_ctx_delete()
H A Dcontext.c89 if(!auth_zones_apply_cfg(ctx->env->auth_zones, cfg, 1, &is_rpz, in context_finalize()
/freebsd/contrib/unbound/iterator/
H A Diterator.c1079 lock_rw_rdlock(&qstate->env->auth_zones->lock); in auth_zone_delegpt()
1080 z = auth_zones_find_zone(qstate->env->auth_zones, delname, delnamelen, in auth_zone_delegpt()
1083 lock_rw_unlock(&qstate->env->auth_zones->lock); in auth_zone_delegpt()
1087 lock_rw_unlock(&qstate->env->auth_zones->lock); in auth_zone_delegpt()
1442 if(qstate->env->auth_zones) { in processInitRequest()
2722 if(auth_zones_can_fallback(qstate->env->auth_zones, in processQueryTargets()
2733 } else if(auth_zones_lookup(qstate->env->auth_zones, &iq->qinfo_out, in processQueryTargets()
2744 lock_rw_wrlock(&qstate->env->auth_zones->lock); in processQueryTargets()
2745 qstate->env->auth_zones->num_query_up++; in processQueryTargets()
2746 lock_rw_unlock(&qstate->env->auth_zones->lock); in processQueryTargets()
[all …]
/freebsd/contrib/unbound/smallapp/
H A Dunbound-checkconf.c963 struct auth_zones* az = auth_zones_create(); in check_auth()
/freebsd/contrib/unbound/doc/
H A DChangelog3109 - Fix to create and destroy rpz_lock in auth_zones structure.