Lines Matching refs:age
466 response_balance(dns_rrl_t *rrl, const dns_rrl_entry_t *e, int age) {
477 balance = e->responses + age * rate;
497 int probes, age;
537 age = delta_rrl_time(rrl->old_hash->check_time, now);
538 if (age > rrl->window)
557 age = get_age(rrl, e, now);
558 if (age <= 1) {
562 if (!e->logged && response_balance(rrl, e, age) > 0)
588 debit_log(const dns_rrl_entry_t *e, int age, const char *action) {
589 char buf[sizeof("age=12345678")];
592 if (age == DNS_RRL_FOREVER) {
595 snprintf(buf, sizeof(buf), "age=%d", age);
609 int rate, new_rate, slip, new_slip, age, log_secs, min;
631 age = get_age(rrl, e, now);
632 if (age < rrl->window)
660 age = get_age(rrl, e, now);
661 if (age > 0) {
665 if (age > rrl->window) {
669 e->responses += rate*age;
685 log_secs += age;
698 debit_log(e, age, "");
730 debit_log(e, age, "slip");
738 debit_log(e, age, "drop");
966 int age;
972 age = get_age(rrl, e, now);
973 if (age < DNS_RRL_STOP_LOG_SECS ||
974 response_balance(rrl, e, age) < 0)