Home
last modified time | relevance | path

Searched refs:infra (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/contrib/unbound/services/cache/
H A Dinfra.c2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities
46 #include "services/cache/infra.h"
70 * infra-cache-max-rtt) change it to just above the RTT_BAND. */
348 struct infra_cache* infra = (struct infra_cache*)calloc(1, in infra_create()
352 if(!infra) { in infra_create()
355 infra->hosts = slabhash_create(cfg->infra_cache_slabs, in infra_create()
358 if(!infra->hosts) { in infra_create()
359 free(infra); in infra_create()
362 infra->host_ttl = cfg->host_ttl; in infra_create()
363 infra in infra_create()
168 domain_limit_findcreate(struct infra_cache * infra,char * name) domain_limit_findcreate() argument
215 infra_ratelimit_cfg_insert(struct infra_cache * infra,struct config_file * cfg) infra_ratelimit_cfg_insert() argument
237 setup_domain_limits(struct infra_cache * infra,struct config_file * cfg) setup_domain_limits() argument
249 wait_limit_netblock_findcreate(struct infra_cache * infra,char * str,int cookie) wait_limit_netblock_findcreate() argument
289 infra_wait_limit_netblock_insert(struct infra_cache * infra,struct config_file * cfg) infra_wait_limit_netblock_insert() argument
311 setup_wait_limits(struct infra_cache * infra,struct config_file * cfg) setup_wait_limits() argument
325 struct infra_cache* infra = (struct infra_cache*)calloc(1, infra_create() local
387 infra_delete(struct infra_cache * infra) infra_delete() argument
403 infra_adjust(struct infra_cache * infra,struct config_file * cfg) infra_adjust() argument
473 infra_lookup_nottl(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,uint8_t * name,size_t namelen,int wr) infra_lookup_nottl() argument
489 data_entry_init(struct infra_cache * infra,struct lruhash_entry * e,time_t timenow) data_entry_init() argument
518 new_entry(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,uint8_t * name,size_t namelen,time_t tm) new_entry() argument
548 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) infra_host() argument
620 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) infra_set_lame() argument
658 infra_update_tcp_works(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,uint8_t * nm,size_t nmlen) infra_update_tcp_works() argument
676 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) infra_rtt_update() argument
738 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) infra_get_host_rto() argument
764 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) infra_edns_update() argument
795 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) infra_get_lame_rtt() argument
878 infra_find_ratelimit(struct infra_cache * infra,uint8_t * name,size_t namelen) infra_find_ratelimit() argument
926 infra_find_ratedata(struct infra_cache * infra,uint8_t * name,size_t namelen,int wr) infra_find_ratedata() argument
939 infra_find_ip_ratedata(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,int wr) infra_find_ip_ratedata() argument
952 infra_create_ratedata(struct infra_cache * infra,uint8_t * name,size_t namelen,time_t timenow) infra_create_ratedata() argument
980 infra_ip_create_ratedata(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,time_t timenow,int mesh_wait) infra_ip_create_ratedata() argument
1059 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) infra_ratelimit_inc() argument
1106 infra_ratelimit_dec(struct infra_cache * infra,uint8_t * name,size_t namelen,time_t timenow) infra_ratelimit_dec() argument
1126 infra_ratelimit_exceeded(struct infra_cache * infra,uint8_t * name,size_t namelen,time_t timenow,int backoff) infra_ratelimit_exceeded() argument
1150 infra_get_mem(struct infra_cache * infra) infra_get_mem() argument
1200 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) infra_ip_ratelimit_inc() argument
1228 infra_wait_limit_allowed(struct infra_cache * infra,struct comm_reply * rep,int cookie_valid,struct config_file * cfg) infra_wait_limit_allowed() argument
1264 infra_wait_limit_inc(struct infra_cache * infra,struct comm_reply * rep,time_t timenow,struct config_file * cfg) infra_wait_limit_inc() argument
1286 infra_wait_limit_dec(struct infra_cache * infra,struct comm_reply * rep,struct config_file * cfg) infra_wait_limit_dec() 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)
220 /** infra host cache default hash lookup size */
226 * Create infra cache.
228 * @return: new infra cache, or NULL.
233 * Delete infra cache.
234 * @param infra: infrastructure cache to delete.
236 void infra_delete(struct infra_cache* infra);
239 * Adjust infra cache to use updated configuration settings.
242 * @param infra
[all...]
/freebsd/contrib/unbound/util/
H A Dconfiglexer.lex305 infra-host-ttl{COLON} { YDVAR(1, VAR_INFRA_HOST_TTL) }
306 infra-lame-ttl{COLON} { YDVAR(1, VAR_INFRA_LAME_TTL) }
307 infra-cache-slabs{COLON} { YDVAR(1, VAR_INFRA_CACHE_SLABS) }
308 infra-cache-numhosts{COLON} { YDVAR(1, VAR_INFRA_CACHE_NUMHOSTS) }
309 infra-cache-lame-size{COLON} { YDVAR(1, VAR_INFRA_CACHE_LAME_SIZE) }
310 infra-cache-min-rtt{COLON} { YDVAR(1, VAR_INFRA_CACHE_MIN_RTT) }
311 infra-cache-max-rtt{COLON} { YDVAR(1, VAR_INFRA_CACHE_MAX_RTT) }
312 infra-keep-probing{COLON} { YDVAR(1, VAR_INFRA_KEEP_PROBING) }
/freebsd/contrib/unbound/testcode/
H A Dunitinfra.c49 static struct infra_data* infra_lookup_host(struct infra_cache* infra, in infra_lookup_host() argument
54 struct lruhash_entry* e = infra_lookup_nottl(infra, addr, addrlen, in infra_lookup_host()
H A Dfake_event.c702 rto = infra_rtt_update(runtime->infra, &now->addr, now->addrlen, in do_infra_rtt()
781 if(!infra_host(runtime->infra, &p->addr, p->addrlen, p->zone, in expon_timeout_backoff()
785 rto = infra_rtt_update(runtime->infra, &p->addr, p->addrlen, p->zone, in expon_timeout_backoff()
1127 struct infra_cache* infra, in outside_network_create() argument
1145 runtime->infra = infra; in outside_network_create()
/freebsd/contrib/unbound/services/
H A Doutside_network.h139 struct infra_cache* infra; member
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.c1675 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
1698 outnet->infra = infra;
2923 if(!infra_host(sq->outnet->infra, &sq->addr, sq->addrlen, sq->zone,
3107 infra_update_tcp_works(sq->outnet->infra, &sq->addr,
3143 if(!infra_edns_update(sq->outnet->infra, &sq->addr,
3152 if(!infra_rtt_update(sq->outnet->infra, &sq->addr,
3167 if(!infra_rtt_update(sq->outnet->infra, &sq->addr,
3212 if(!infra_host(sq->outnet->infra, &sq->addr, sq->addrlen, sq->zone,
3304 if(!infra_rtt_update(outnet->infra, &sq->addr, sq->addrlen,
3358 if(!infra_edns_update(outnet->infra, &sq->addr, sq->addrlen,
[all …]
/freebsd/lib/libunbound/
H A DMakefile18 fptr_wlist.c infra.c iter_delegpt.c iter_donotq.c iter_fwd.c \
/freebsd/contrib/unbound/contrib/
H A Dunbound-fuzzme.patch87 …$(srcdir)/util/storage/slabhash.h $(srcdir)/services/cache/infra.h $(srcdir)/util/storage/dnstree.…
95 + $(srcdir)/util/data/packed_rrset.h $(srcdir)/services/cache/infra.h $(srcdir)/util/storage/dnstre…
H A Dunbound_munin_473 infra.cache.count key.cache.count; do
/freebsd/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 \
733 infra.lo infra.o: $(srcdir)/services/cache/infra.c config.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns…
734 $(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/wire2str.h $(srcdir)/services/cache/infra.h \
790 $(srcdir)/util/storage/slabhash.h $(srcdir)/services/cache/infra.h $(srcdir)/util/rtt.h \
841 …$(srcdir)/services/cache/infra.h $(srcdir)/util/rtt.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt…
885 …$(srcdir)/services/cache/infra.h $(srcdir)/util/rtt.h $(srcdir)/util/net_help.h $(srcdir)/util/ran…
936 $(srcdir)/services/cache/infra.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/rtt.h \
967 …$(srcdir)/util/rtt.h $(srcdir)/services/cache/infra.h $(srcdir)/sldns/wire2str.h $(srcdir)/sldns/p…
986 $(srcdir)/util/storage/slabhash.h $(srcdir)/services/cache/infra.h $(srcdir)/util/rtt.h \
[all …]
/freebsd/contrib/unbound/daemon/
H A Dremote.c3091 struct infra_cache* infra; member
3151 arg.infra = worker->env.infra_cache; in do_dump_infra()
3155 slabhash_traverse(arg.infra->hosts, 0, &dump_infra_host, (void*)&arg); in do_dump_infra()
3523 struct infra_cache* infra; member
3544 int lim = infra_find_ratelimit(a->infra, k->name, k->namelen); in rate_list()
3578 a.infra = worker->env.infra_cache; in do_ratelimit_list()
3585 if(a.infra->domain_rates==NULL || in do_ratelimit_list()
3588 slabhash_traverse(a.infra->domain_rates, 0, rate_list, &a); in do_ratelimit_list()
3597 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list()
3604 if(a.infra->client_ip_rates==NULL || in do_ip_ratelimit_list()
[all …]
H A Dworker.c124 size_t total, front, back, mesh, msg, rrset, infra, ac, superac; in worker_mem_report() local
136 infra = infra_get_mem(worker->env.infra_cache); in worker_mem_report()
173 total = front+back+mesh+msg+rrset+infra+iter+val+ac+superac+me; in worker_mem_report()
180 (unsigned)mesh, (unsigned)msg, (unsigned)rrset, (unsigned)infra, in worker_mem_report()
190 (unsigned)infra, (unsigned)iter, (unsigned)val, (unsigned)anch, in worker_mem_report()
/freebsd/contrib/unbound/doc/
H A Dunbound-control.rst155 :ref:`infra-cache-numhosts<unbound.conf.infra-cache-numhosts>`,
252 :ref:`infra-host-ttl<unbound.conf.infra-host-ttl>`,
253 :ref:`infra-keep-probing<unbound.conf.infra-keep-probing>`,
481 If all then entire infra cache is emptied.
488 Show the contents of the infra cache.
1267 @@UAHL@unbound-control.stats@infra.cache.count@@
1268 The number of items in the infra cache.
H A DTODO60 o infra and lame cache: easier size config (in Mb), show usage in graphs.
H A Dexample.conf.in255 # infra-host-ttl: 900
258 # infra-cache-min-rtt: 50
261 # infra-cache-max-rtt: 120000
264 # infra-keep-probing: no
269 # infra-cache-slabs: 4
272 # infra-cache-numhosts: 10000
/freebsd/sys/arm64/conf/
H A Dstd.arm6416 options IPSEC_OFFLOAD # Inline ipsec offload infra
/freebsd/sys/contrib/device-tree/src/mips/pic32/
H A Dpic32mzda.dtsi43 compatible = "microchip,pic32mzda-infra";
/freebsd/sys/contrib/device-tree/src/arm64/mediatek/
H A Dmt6779.dtsi206 clock-names = "devapc-infra-clock";
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Domap2.dtsi44 compatible = "ti,omap-infra";
/freebsd/sys/amd64/conf/
H A DGENERIC35 options IPSEC_OFFLOAD # Inline ipsec offload infra
255 # o mlx5ib requires ibcore infra and is not included by default
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dfwil_types.h1040 __le32 infra; member
H A Dpno.c220 pfn.infra = cpu_to_le32(1); in brcmf_pno_add_ssid()
/freebsd/sys/powerpc/conf/
H A DGENERIC64LE187 # mlx5ib requires ibcore infra and is not included by default
H A DGENERIC64190 # mlx5ib requires ibcore infra and is not included by default

12