H A D | infra.c | 2 * 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...] |