/freebsd/contrib/unbound/contrib/ |
H A D | libunbound.so.conf | 10 typedef ub_ctx = void; 11 ub_ctx* ub_ctx_create(void); 12 void ub_ctx_delete(ub_ctx*); 13 int ub_ctx_set_option(ub_ctx*, string, string); 14 int ub_ctx_get_option(ub_ctx*, string, +string*); 15 int ub_ctx_config(ub_ctx*, string); 16 int ub_ctx_set_fwd(ub_ctx*, string); 17 int ub_ctx_set_tls(ub_ctx*, bool(int)); 18 int ub_ctx_set_stub(ub_ctx*, string, string, bool(int)); 19 int ub_ctx_resolvconf(ub_ctx*, string); [all …]
|
/freebsd/contrib/unbound/libunbound/ |
H A D | unbound.h | 116 struct ub_ctx; 271 struct ub_ctx* ub_ctx_create(void); 278 void ub_ctx_delete(struct ub_ctx* ctx); 293 int ub_ctx_set_option(struct ub_ctx* ctx, const char* opt, const char* val); 309 int ub_ctx_get_option(struct ub_ctx* ctx, const char* opt, char** str); 321 int ub_ctx_config(struct ub_ctx* ctx, const char* fname); 340 int ub_ctx_set_fwd(struct ub_ctx* ctx, const char* addr); 351 int ub_ctx_set_tls(struct ub_ctx* ctx, int tls); 371 int ub_ctx_set_stub(struct ub_ctx* ctx, const char* zone, const char* addr, 388 int ub_ctx_resolvconf(struct ub_ctx* ctx, const char* fname); [all …]
|
H A D | context.h | 65 struct ub_ctx { struct 209 int context_finalize(struct ub_ctx* ctx); 231 struct ctx_query* context_new(struct ub_ctx* ctx, const char* name, int rrtype, 241 struct alloc_cache* context_obtain_alloc(struct ub_ctx* ctx, int locking); 249 void context_release_alloc(struct ub_ctx* ctx, struct alloc_cache* alloc, 306 struct ctx_query* context_lookup_new_query(struct ub_ctx* ctx, 316 struct ctx_query* context_deserialize_new_query(struct ub_ctx* ctx, 327 struct ctx_query* context_deserialize_answer(struct ub_ctx* ctx, 337 struct ctx_query* context_deserialize_cancel(struct ub_ctx* ctx,
|
H A D | libworker.h | 47 struct ub_ctx; 72 struct ub_ctx* ctx; 101 int libworker_bg(struct ub_ctx* ctx); 112 int libworker_fg(struct ub_ctx* ctx, struct ctx_query* q); 120 struct libworker* libworker_create_event(struct ub_ctx* ctx, 130 int libworker_attach_mesh(struct ub_ctx* ctx, struct ctx_query* q,
|
H A D | libunbound.c | 90 static struct ub_ctx* ub_ctx_create_nopipe(void) in ub_ctx_create_nopipe() 92 struct ub_ctx* ctx; in ub_ctx_create_nopipe() 111 ctx = (struct ub_ctx*)calloc(1, sizeof(*ctx)); in ub_ctx_create_nopipe() 181 struct ub_ctx* 184 struct ub_ctx* ctx = ub_ctx_create_nopipe(); in ub_ctx_create() 221 struct ub_ctx* 224 struct ub_ctx* ctx = ub_ctx_create_nopipe(); in ub_ctx_create_ub_event() 235 struct ub_ctx* 238 struct ub_ctx* ctx = ub_ctx_create_nopipe(); in ub_ctx_create_event() 263 static void ub_stop_bg(struct ub_ctx* ctx) in ub_stop_bg() [all …]
|
H A D | unbound-event.h | 62 struct ub_ctx; 187 struct ub_ctx* ub_ctx_create_ub_event(struct ub_event_base* base); 204 struct ub_ctx* ub_ctx_create_event(struct event_base* base); 216 int ub_ctx_set_event(struct ub_ctx* ctx, struct event_base* base); 257 int ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype,
|
H A D | context.c | 60 context_finalize(struct ub_ctx* ctx) in context_finalize() 143 find_id(struct ub_ctx* ctx, int* id) in find_id() 157 context_new(struct ub_ctx* ctx, const char* name, int rrtype, int rrclass, in context_new() 198 context_obtain_alloc(struct ub_ctx* ctx, int locking) in context_obtain_alloc() 224 context_release_alloc(struct ub_ctx* ctx, struct alloc_cache* alloc, in context_release_alloc() 263 context_deserialize_new_query(struct ub_ctx* ctx, uint8_t* p, uint32_t len) in context_deserialize_new_query() 296 context_lookup_new_query(struct ub_ctx* ctx, uint8_t* p, uint32_t len) in context_lookup_new_query() 350 context_deserialize_answer(struct ub_ctx* ctx, in context_deserialize_answer() 406 struct ctx_query* context_deserialize_cancel(struct ub_ctx* ctx, in context_deserialize_cancel()
|
H A D | libworker.c | 131 libworker_setup(struct ub_ctx* ctx, int is_bg, struct ub_event_base* eb) in libworker_setup() 258 struct libworker* libworker_create_event(struct ub_ctx* ctx, in libworker_create_event() 333 struct ub_ctx* ctx; in libworker_dobg() 376 int libworker_bg(struct ub_ctx* ctx) in libworker_bg() 605 int libworker_fg(struct ub_ctx* ctx, struct ctx_query* q) in libworker_fg() 667 struct ub_ctx* ctx = q->w->ctx; in libworker_event_done_cb() 686 int libworker_attach_mesh(struct ub_ctx* ctx, struct ctx_query* q, in libworker_attach_mesh() 791 struct ub_ctx* ctx = q->w->ctx; in libworker_bg_done_cb()
|
/freebsd/contrib/unbound/smallapp/ |
H A D | unbound-host.c | 369 dnslook(struct ub_ctx* ctx, char* q, int t, int c, int docname) in dnslook() 387 lookup(struct ub_ctx* ctx, const char* nm, const char* qt, const char* qc) in lookup() 432 struct ub_ctx* ctx = NULL; in main()
|
H A D | unbound-anchor.c | 272 ub_ctx_error_exit(struct ub_ctx* ctx, const char* str, const char* str2) in ub_ctx_error_exit() 283 static struct ub_ctx* 288 struct ub_ctx* ctx = ub_ctx_create(); in create_unbound_context() 546 resolve_host_ip(struct ub_ctx* ctx, const char* host, int port, int tp, int cl, in resolve_host_ip() 636 struct ub_ctx* ctx; in resolve_name() 2112 add_5011_probe_root(struct ub_ctx* ctx, const char* root_anchor_file) in add_5011_probe_root() 2129 prime_root_key(struct ub_ctx* ctx) in prime_root_key() 2249 struct ub_ctx* ctx; in fetch_root_key()
|
/freebsd/contrib/unbound/ |
H A D | Makefile.in | 594 for mpage in ub_ctx ub_result ub_ctx_create ub_ctx_delete \ 645 for mpage in ub_ctx ub_result ub_ctx_create ub_ctx_delete \
|
/freebsd/contrib/unbound/doc/ |
H A D | Changelog | 3383 - Fix #99: Memory leak in ub_ctx (event_base will never be freed). 7191 existing ub_ctx. This basically just destroys the current worker and
|