Lines Matching full:infra
2 * services/cache/infra.h - infrastructure cache, server rtt and capabilities
42 * - Post-cache, per-domain name rate limiting (infra-ratelimits)
110 * Infra cache
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: existing cache. If NULL a new infra cache is returned.
231 * @return the new infra cache pointer or NULL on error.
233 struct infra_cache* infra_adjust(struct infra_cache* infra,
237 * Plain find infra data function (used by the other functions)
238 * @param infra: infrastructure cache.
246 struct lruhash_entry* infra_lookup_nottl(struct infra_cache* infra,
256 * @param infra: infrastructure cache.
268 int infra_host(struct infra_cache* infra, struct sockaddr_storage* addr,
274 * @param infra: infrastructure cache.
287 int infra_set_lame(struct infra_cache* infra,
294 * @param infra: infrastructure cache.
307 int infra_rtt_update(struct infra_cache* infra, struct sockaddr_storage* addr,
313 * @param infra: infrastructure cache.
319 void infra_update_tcp_works(struct infra_cache* infra,
325 * @param infra: infrastructure cache.
335 int infra_edns_update(struct infra_cache* infra,
342 * @param infra: infrastructure cache.
357 int infra_get_lame_rtt(struct infra_cache* infra,
364 * @param infra: infra cache.
375 * @return TTL the infra host element is valid for. If -1: not found in cache.
378 long long infra_get_host_rto(struct infra_cache* infra,
385 * @param infra: infra cache.
396 int infra_ratelimit_inc(struct infra_cache* infra, uint8_t* name,
405 * @param infra: infra cache.
410 void infra_ratelimit_dec(struct infra_cache* infra, uint8_t* name,
416 * @param infra: infra cache.
423 int infra_ratelimit_exceeded(struct infra_cache* infra, uint8_t* name,
431 int infra_find_ratelimit(struct infra_cache* infra, uint8_t* name,
436 * @param infra: infra cache
445 int infra_ip_ratelimit_inc(struct infra_cache* infra,
450 * Get memory used by the infra cache.
451 * @param infra: infrastructure cache.
454 size_t infra_get_mem(struct infra_cache* infra);
494 int infra_wait_limit_allowed(struct infra_cache* infra, struct comm_reply* rep,
498 void infra_wait_limit_inc(struct infra_cache* infra, struct comm_reply* rep,
502 void infra_wait_limit_dec(struct infra_cache* infra, struct comm_reply* rep,