Lines Matching refs:timenow

529 	time_t timenow)
532 data->ttl = timenow + infra->host_ttl;
588 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow,
595 if(e && ((struct infra_data*)e->data)->ttl < timenow) {
608 data_entry_init(infra, e, timenow);
623 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow)))
652 data->probedelay = timenow + ((*to)+1999)/1000;
660 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow,
669 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow))) {
674 } else if( ((struct infra_data*)e->data)->ttl < timenow) {
676 data_entry_init(infra, e, timenow);
717 int roundtrip, int orig_rtt, time_t timenow)
726 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow)))
729 } else if(((struct infra_data*)e->data)->ttl < timenow) {
731 data_entry_init(infra, e, timenow);
779 size_t nmlen, struct rtt_info* rtt, int* delay, time_t timenow,
788 if(data->ttl >= timenow) {
789 ttl = (long long)(data->ttl - timenow);
791 if(timenow < data->probedelay)
792 *delay = (int)(data->probedelay - timenow);
805 time_t timenow)
812 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow)))
815 } else if(((struct infra_data*)e->data)->ttl < timenow) {
816 data_entry_init(infra, e, timenow);
837 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow)
846 if(host->rtt.rto >= PROBE_MAXRTO && timenow >= host->probedelay
851 } else if(host->rtt.rto >= PROBE_MAXRTO && timenow < host->probedelay
870 if(timenow > host->ttl) {
992 uint8_t* name, size_t namelen, time_t timenow)
1014 d->timestamp[0] = timenow;
1020 struct sockaddr_storage* addr, socklen_t addrlen, time_t timenow,
1038 d->timestamp[0] = timenow;
1099 size_t namelen, time_t timenow, int backoff, struct query_info* qinfo,
1116 int premax = infra_rate_max(entry->data, timenow, backoff);
1117 int* cur = infra_rate_give_second(entry->data, timenow);
1119 max = infra_rate_max(entry->data, timenow, backoff);
1142 infra_create_ratedata(infra, name, namelen, timenow);
1147 size_t namelen, time_t timenow)
1155 cur = infra_rate_get_second(entry->data, timenow);
1157 /* our timenow is not available anymore; nothing to decrease */
1167 size_t namelen, time_t timenow, int backoff)
1183 max = infra_rate_max(entry->data, timenow, backoff);
1241 struct sockaddr_storage* addr, socklen_t addrlen, time_t timenow,
1254 int premax = infra_rate_max(entry->data, timenow, backoff);
1255 int* cur = infra_rate_give_second(entry->data, timenow);
1257 max = infra_rate_max(entry->data, timenow, backoff);
1264 infra_ip_create_ratedata(infra, addr, addrlen, timenow, 0);
1305 time_t timenow, struct config_file* cfg)
1323 rep->client_addrlen, timenow, 1);