Searched refs:infra (Results 1 - 9 of 9) sorted by relevance

/freebsd-current/contrib/unbound/services/cache/
H A Dinfra.c2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities
46 #include "services/cache/infra.h"
158 struct infra_cache* infra, char* name)
174 d = (struct domain_limit_data*)name_tree_find(&infra->domain_limits,
194 if(!name_tree_insert(&infra->domain_limits, &d->node, nm, nmlen,
205 static int infra_ratelimit_cfg_insert(struct infra_cache* infra, argument
211 d = domain_limit_findcreate(infra, p->str);
217 d = domain_limit_findcreate(infra, p->str);
227 setup_domain_limits(struct infra_cache* infra, struct config_file* cfg) argument
229 name_tree_init(&infra
157 domain_limit_findcreate( struct infra_cache* infra, char* name) argument
239 wait_limit_netblock_findcreate(struct infra_cache* infra, char* str, int cookie) argument
279 infra_wait_limit_netblock_insert(struct infra_cache* infra, struct config_file* cfg) argument
301 setup_wait_limits(struct infra_cache* infra, struct config_file* cfg) argument
315 struct infra_cache* infra = (struct infra_cache*)calloc(1, local
376 infra_delete(struct infra_cache* infra) argument
392 infra_adjust(struct infra_cache* infra, struct config_file* cfg) argument
461 infra_lookup_nottl(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name, size_t namelen, int wr) argument
477 data_entry_init(struct infra_cache* infra, struct lruhash_entry* e, time_t timenow) argument
506 new_entry(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name, size_t namelen, time_t tm) argument
536 infra_host(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, int* edns_vs, uint8_t* edns_lame_known, int* to) argument
608 infra_set_lame(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, int dnsseclame, int reclame, uint16_t qtype) argument
646 infra_update_tcp_works(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen) argument
664 infra_rtt_update(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, int qtype, int roundtrip, int orig_rtt, time_t timenow) argument
726 infra_get_host_rto(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, struct rtt_info* rtt, int* delay, time_t timenow, int* tA, int* tAAAA, int* tother) argument
752 infra_edns_update(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, int edns_version, time_t timenow) argument
783 infra_get_lame_rtt(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name, size_t namelen, uint16_t qtype, int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow) argument
869 infra_find_ratelimit(struct infra_cache* infra, uint8_t* name, size_t namelen) argument
917 infra_find_ratedata(struct infra_cache* infra, uint8_t* name, size_t namelen, int wr) argument
930 infra_find_ip_ratedata(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, int wr) argument
943 infra_create_ratedata(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument
971 infra_ip_create_ratedata(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, time_t timenow, int mesh_wait) argument
1050 infra_ratelimit_inc(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow, int backoff, struct query_info* qinfo, struct comm_reply* replylist) argument
1097 infra_ratelimit_dec(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument
1117 infra_ratelimit_exceeded(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow, int backoff) argument
1141 infra_get_mem(struct infra_cache* infra) argument
1191 infra_ip_ratelimit_inc(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, time_t timenow, int has_cookie, int backoff, struct sldns_buffer* buffer) argument
1219 infra_wait_limit_allowed(struct infra_cache* infra, struct comm_reply* rep, int cookie_valid, struct config_file* cfg) argument
1255 infra_wait_limit_inc(struct infra_cache* infra, struct comm_reply* rep, time_t timenow, struct config_file* cfg) argument
1277 infra_wait_limit_dec(struct infra_cache* infra, struct comm_reply* rep, struct config_file* cfg) argument
[all...]
H A Dinfra.h2 * services/cache/infra.h - infrastructure cache, server rtt and capabilities
42 * - Post-cache, per-domain name rate limiting (infra-ratelimits)
207 /** infra host cache default hash lookup size */
213 * Create infra cache.
215 * @return: new infra cache, or NULL.
220 * Delete infra cache.
221 * @param infra: infrastructure cache to delete.
223 void infra_delete(struct infra_cache* infra);
226 * Adjust infra cache to use updated configuration settings.
229 * @param infra
[all...]
/freebsd-current/lib/libunbound/
H A DMakefile19 dnstree.c edns.c fptr_wlist.c infra.c iter_delegpt.c iter_donotq.c \
/freebsd-current/contrib/unbound/services/
H A Doutside_network.h139 struct infra_cache* infra; member in struct:outside_network
544 * @param infra: pointer to infra cached used for serviced queries.
567 int do_ip4, int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
H A Doutside_network.c50 #include "services/cache/infra.h"
1660 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
1683 outnet->infra = infra;
2885 * Sends UDP with EDNS, unless infra host marked non EDNS.
2897 if(!infra_host(sq->outnet->infra, &sq->addr, sq->addrlen, sq->zone,
3081 infra_update_tcp_works(sq->outnet->infra, &sq->addr,
3117 if(!infra_edns_update(sq->outnet->infra, &sq->addr,
3126 if(!infra_rtt_update(sq->outnet->infra, &sq->addr,
3141 if(!infra_rtt_update(sq->outnet->infra,
1658 outside_network_create(struct comm_base *base, size_t bufsize, size_t num_ports, char** ifs, int num_ifs, int do_ip4, int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra, struct ub_randstate* rnd, int use_caps_for_id, int* availports, int numavailports, size_t unwanted_threshold, int tcp_mss, void (*unwanted_action)(void*), void* unwanted_param, int do_udp, void* sslctx, int delayclose, int tls_use_sni, struct dt_env* dtenv, int udp_connect, int max_reuse_tcp_queries, int tcp_reuse_timeout, int tcp_auth_query_timeout) argument
[all...]
/freebsd-current/contrib/unbound/
H A DMakefile.in118 COMMON_SRC=services/cache/dns.c services/cache/infra.c services/cache/rrset.c \
143 COMMON_OBJ_WITHOUT_NETCALL=dns.lo infra.lo rrset.lo dname.lo msgencode.lo \
714 infra.lo infra.o: $(srcdir)/services/cache/infra.c config.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/str2wire.h \
715 $(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/wire2str.h $(srcdir)/services/cache/infra.h \
766 $(srcdir)/validator/val_neg.h $(srcdir)/services/cache/dns.h $(srcdir)/services/cache/infra.h \
814 $(srcdir)/services/cache/infra.h $(srcdir)/util/rtt.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h \
886 $(srcdir)/services/listen_dnsport.h $(srcdir)/services/cache/infra.h $(srcdir)/util/storage/lruhash.h \
915 $(srcdir)/util/rtt.h $(srcdir)/services/cache/infra
[all...]
/freebsd-current/contrib/unbound/daemon/
H A Dremote.c68 #include "services/cache/infra.h"
1036 if(!ssl_printf(ssl, "infra.cache.count"SQ"%u\n",
1635 /** callback to delete hosts in infra cache */
1656 /** flush infra cache */
2485 /** structure for argument data for dump infra host */
2487 /** the infra cache */
2488 struct infra_cache* infra; member in struct:infra_arg
2498 /** callback for every host element in the infra cache */
2548 arg.infra = worker->env.infra_cache;
2552 slabhash_traverse(arg.infra
2894 struct infra_cache* infra; member in struct:ratelimit_list_arg
[all...]
H A Dworker.c59 #include "services/cache/infra.h"
124 size_t total, front, back, mesh, msg, rrset, infra, ac, superac; local
136 infra = infra_get_mem(worker->env.infra_cache);
171 total = front+back+mesh+msg+rrset+infra+iter+val+ac+superac+me;
175 "rrset=%u infra=%u iter=%u val=%u subnet=%u anchors=%u "
178 (unsigned)mesh, (unsigned)msg, (unsigned)rrset, (unsigned)infra,
184 "rrset=%u infra=%u iter=%u val=%u anchors=%u "
188 (unsigned)infra, (unsigned)iter, (unsigned)val, (unsigned)anch,
216 verbose(VERB_QUERY, "cache memory msg=%u rrset=%u infra=%u val=%u "
223 verbose(VERB_QUERY, "cache memory msg=%u rrset=%u infra
[all...]
/freebsd-current/contrib/unbound/contrib/
H A Dunbound_munin_289 p_config "infra.cache.count" "infra cache count" "GAUGE"
473 infra.cache.count key.cache.count; do

Completed in 212 milliseconds