Searched refs:ub_ctx (Results 1 - 24 of 24) sorted by relevance

/freebsd-11.0-release/contrib/unbound/libunbound/
H A Dunbound.h116 struct ub_ctx;
235 struct ub_ctx* ub_ctx_create(void);
242 void ub_ctx_delete(struct ub_ctx* ctx);
257 int ub_ctx_set_option(struct ub_ctx* ctx, const char* opt, const char* val);
273 int ub_ctx_get_option(struct ub_ctx* ctx, const char* opt, char** str);
285 int ub_ctx_config(struct ub_ctx* ctx, const char* fname);
304 int ub_ctx_set_fwd(struct ub_ctx* ctx, const char* addr);
324 int ub_ctx_set_stub(struct ub_ctx* ctx, const char* zone, const char* addr,
341 int ub_ctx_resolvconf(struct ub_ctx* ctx, const char* fname);
354 int ub_ctx_hosts(struct ub_ctx* ct
[all...]
H A Dunbound-event.h61 struct ub_ctx;
79 struct ub_ctx* ub_ctx_create_event(struct event_base* base);
84 * @param ctx the ub_ctx to update. Must have been created with ub_ctx_create_event
88 int ub_ctx_set_event(struct ub_ctx* ctx, struct event_base* base);
128 int ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype,
H A Dlibworker.h47 struct ub_ctx;
71 struct ub_ctx* ctx;
98 int libworker_bg(struct ub_ctx* ctx);
109 int libworker_fg(struct ub_ctx* ctx, struct ctx_query* q);
117 struct libworker* libworker_create_event(struct ub_ctx* ctx,
127 int libworker_attach_mesh(struct ub_ctx* ctx, struct ctx_query* q,
H A Dcontext.h61 struct ub_ctx { struct
223 int context_finalize(struct ub_ctx* ctx);
244 struct ctx_query* context_new(struct ub_ctx* ctx, const char* name, int rrtype,
253 struct alloc_cache* context_obtain_alloc(struct ub_ctx* ctx, int locking);
261 void context_release_alloc(struct ub_ctx* ctx, struct alloc_cache* alloc,
318 struct ctx_query* context_lookup_new_query(struct ub_ctx* ctx,
328 struct ctx_query* context_deserialize_new_query(struct ub_ctx* ctx,
339 struct ctx_query* context_deserialize_answer(struct ub_ctx* ctx,
349 struct ctx_query* context_deserialize_cancel(struct ub_ctx* ctx,
H A Dlibunbound.c81 static struct ub_ctx* ub_ctx_create_nopipe(void)
83 struct ub_ctx* ctx;
101 ctx = (struct ub_ctx*)calloc(1, sizeof(*ctx));
142 struct ub_ctx*
145 struct ub_ctx* ctx = ub_ctx_create_nopipe();
172 struct ub_ctx*
175 struct ub_ctx* ctx = ub_ctx_create_nopipe();
195 static void ub_stop_bg(struct ub_ctx* ctx)
241 ub_ctx_delete(struct ub_ctx* ctx)
294 ub_ctx_set_option(struct ub_ctx* ct
[all...]
H A Dcontext.c55 context_finalize(struct ub_ctx* ctx)
114 find_id(struct ub_ctx* ctx, int* id)
128 context_new(struct ub_ctx* ctx, const char* name, int rrtype, int rrclass,
168 context_obtain_alloc(struct ub_ctx* ctx, int locking)
194 context_release_alloc(struct ub_ctx* ctx, struct alloc_cache* alloc,
233 context_deserialize_new_query(struct ub_ctx* ctx, uint8_t* p, uint32_t len)
266 context_lookup_new_query(struct ub_ctx* ctx, uint8_t* p, uint32_t len)
317 context_deserialize_answer(struct ub_ctx* ctx,
371 struct ctx_query* context_deserialize_cancel(struct ub_ctx* ctx,
H A Dlibworker.c122 libworker_setup(struct ub_ctx* ctx, int is_bg, struct event_base* eb)
260 struct libworker* libworker_create_event(struct ub_ctx* ctx,
333 struct ub_ctx* ctx;
375 int libworker_bg(struct ub_ctx* ctx)
591 int libworker_fg(struct ub_ctx* ctx, struct ctx_query* q)
643 struct ub_ctx* ctx = q->w->ctx;
662 int libworker_attach_mesh(struct ub_ctx* ctx, struct ctx_query* q,
750 struct ub_ctx* ctx = q->w->ctx;
/freebsd-11.0-release/contrib/unbound/libunbound/python/examples/
H A Ddnssec-valid.py37 from unbound import ub_ctx,RR_TYPE_A,RR_CLASS_IN namespace
39 ctx = ub_ctx()
H A Ddns-lookup.py38 ctx = unbound.ub_ctx()
H A Dns-lookup.py39 ctx = unbound.ub_ctx()
H A Dreverse-lookup.py38 ctx = unbound.ub_ctx()
H A Ddnssec_test.py3 from unbound import ub_ctx, RR_TYPE_A, RR_TYPE_RRSIG, RR_TYPE_NSEC, RR_TYPE_NSEC3 namespace
30 resolver = ub_ctx()
H A Dasync-lookup.py39 ctx = unbound.ub_ctx()
H A Dmx-lookup.py39 ctx = unbound.ub_ctx()
H A Dexample8-1.py39 ctx = unbound.ub_ctx()
H A Didn-lookup.py40 ctx = unbound.ub_ctx()
/freebsd-11.0-release/contrib/unbound/libunbound/python/doc/examples/
H A Dexample6-1.py2 from unbound import ub_ctx,ub_strerror,RR_TYPE_A,RR_CLASS_IN namespace
4 ctx = ub_ctx()
H A Dexample7-1.py8 ctx = unbound.ub_ctx()
H A Dexample7-2.py8 ctx = unbound.ub_ctx()
H A Dexample8-1.py8 ctx = unbound.ub_ctx()
/freebsd-11.0-release/contrib/unbound/libunbound/python/
H A Dlibunbound.i98 // ub_ctx - validation context
100 %nodefaultctor ub_ctx; //no default constructor & destructor
101 %nodefaultdtor ub_ctx;
110 void ub_ctx_free_dbg (struct ub_ctx* c) {
252 %feature("docstring") ub_ctx "Unbound resolving and validation context.
259 >>> ctx = unbound.ub_ctx()
267 %extend ub_ctx
273 An exception is invoked if the process of creation an ub_ctx instance fails.
293 #parameters: struct ub_ctx *,char *,
306 #parameters: struct ub_ctx *,cha
[all...]
/freebsd-11.0-release/contrib/unbound/smallapp/
H A Dunbound-host.c356 dnslook(struct ub_ctx* ctx, char* q, int t, int c, int docname)
374 lookup(struct ub_ctx* ctx, const char* nm, const char* qt, const char* qc)
418 struct ub_ctx* ctx = NULL;
H A Dunbound-anchor.c260 ub_ctx_error_exit(struct ub_ctx* ctx, const char* str, const char* str2)
271 static struct ub_ctx*
276 struct ub_ctx* ctx = ub_ctx_create();
530 resolve_host_ip(struct ub_ctx* ctx, const char* host, int port, int tp, int cl,
618 struct ub_ctx* ctx;
2057 add_5011_probe_root(struct ub_ctx* ctx, const char* root_anchor_file)
2074 prime_root_key(struct ub_ctx* ctx)
2196 struct ub_ctx* ctx;
/freebsd-11.0-release/contrib/unbound/
H A DMakefile.in490 for mpage in ub_ctx ub_result ub_ctx_create ub_ctx_delete \
539 for mpage in ub_ctx ub_result ub_ctx_create ub_ctx_delete \

Completed in 69 milliseconds