H A D | infra.c | 2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities 46 #include "services/cache/infra.h" 153 struct infra_cache* infra, char* name) 169 d = (struct domain_limit_data*)name_tree_find(&infra->domain_limits, 189 if(!name_tree_insert(&infra->domain_limits, &d->node, nm, nmlen, 200 static int infra_ratelimit_cfg_insert(struct infra_cache* infra, argument 206 d = domain_limit_findcreate(infra, p->str); 212 d = domain_limit_findcreate(infra, p->str); 222 setup_domain_limits(struct infra_cache* infra, struct config_file* cfg) argument 224 name_tree_init(&infra 152 domain_limit_findcreate( struct infra_cache* infra, char* name) argument 235 struct infra_cache* infra = (struct infra_cache*)calloc(1, local 283 infra_delete(struct infra_cache* infra) argument 295 infra_adjust(struct infra_cache* infra, struct config_file* cfg) argument 364 infra_lookup_nottl(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name, size_t namelen, int wr) argument 380 data_entry_init(struct infra_cache* infra, struct lruhash_entry* e, time_t timenow) argument 409 new_entry(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name, size_t namelen, time_t tm) argument 439 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 511 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 549 infra_update_tcp_works(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen) argument 567 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 629 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 655 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 686 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 772 infra_find_ratelimit(struct infra_cache* infra, uint8_t* name, size_t namelen) argument 820 infra_find_ratedata(struct infra_cache* infra, uint8_t* name, size_t namelen, int wr) argument 833 infra_find_ip_ratedata(struct infra_cache* infra, struct comm_reply* repinfo, int wr) argument 847 infra_create_ratedata(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument 875 infra_ip_create_ratedata(struct infra_cache* infra, struct comm_reply* repinfo, time_t timenow) argument 931 infra_ratelimit_inc(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow, struct query_info* qinfo, struct comm_reply* replylist) argument 978 infra_ratelimit_dec(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument 993 infra_ratelimit_exceeded(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument 1017 infra_get_mem(struct infra_cache* infra) argument 1026 infra_ip_ratelimit_inc(struct infra_cache* infra, struct comm_reply* repinfo, time_t timenow, struct sldns_buffer* buffer) argument [all...] |