unbound: rate_data Struct Reference

unbound 0.1

Data Fields
rate_data Struct Reference

Data for ratelimits per domain name It is incremented when a non-cache-lookup happens for that domain name. More...

`#include <infra.h>`

## Data Fields
int | qps [RATE_WINDOW]
| queries counted, for that second.
time_t | timestamp [RATE_WINDOW]
| what the timestamp is of the qps array members, counter is valid for that timestamp.

## Detailed Description

Data for ratelimits per domain name It is incremented when a non-cache-lookup happens for that domain name.

The name is the delegation point we have for the name. If a new delegation point is found (a referral reply), the previous delegation point is decremented, and the new one is charged with the query.

## Field Documentation

## ◆ qps

int rate_data::qps[RATE_WINDOW]

queries counted, for that second.

0 if not in use.

Referenced by infra_create_ratedata(), infra_rate_find_second_or_none(), and infra_rate_max().

## ◆ timestamp

time_t rate_data::timestamp[RATE_WINDOW]

what the timestamp is of the qps array members, counter is valid for that timestamp.

Usually now and now-1.

Referenced by infra_create_ratedata(), infra_rate_find_second_or_none(), and infra_rate_max().

The documentation for this struct was generated from the following file:

- services/cache/infra.h