mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-26 09:39:43 -05:00
fixes for undeclared function.
git-svn-id: file:///svn/unbound/trunk@3394 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
85192d4569
commit
c03ff186ec
2 changed files with 7 additions and 2 deletions
2
services/cache/infra.c
vendored
2
services/cache/infra.c
vendored
|
|
@ -703,7 +703,6 @@ infra_get_lame_rtt(struct infra_cache* infra,
|
|||
return 1;
|
||||
}
|
||||
|
||||
/** find the ratelimit in qps for a domain */
|
||||
int infra_find_ratelimit(struct infra_cache* infra, uint8_t* name,
|
||||
size_t namelen)
|
||||
{
|
||||
|
|
@ -788,7 +787,6 @@ static int* infra_rate_find_second(void* data, time_t t)
|
|||
return &(d->qps[oldest]);
|
||||
}
|
||||
|
||||
/** find the maximum rate stored, not too old. 0 if no information. */
|
||||
int infra_rate_max(void* data, time_t now)
|
||||
{
|
||||
struct rate_data* d = (struct rate_data*)data;
|
||||
|
|
|
|||
7
services/cache/infra.h
vendored
7
services/cache/infra.h
vendored
|
|
@ -374,6 +374,13 @@ void infra_ratelimit_dec(struct infra_cache* infra, uint8_t* name,
|
|||
int infra_ratelimit_exceeded(struct infra_cache* infra, uint8_t* name,
|
||||
size_t namelen, time_t timenow);
|
||||
|
||||
/** find the maximum rate stored, not too old. 0 if no information. */
|
||||
int infra_rate_max(void* data, time_t now);
|
||||
|
||||
/** find the ratelimit in qps for a domain */
|
||||
int infra_find_ratelimit(struct infra_cache* infra, uint8_t* name,
|
||||
size_t namelen);
|
||||
|
||||
/**
|
||||
* Get memory used by the infra cache.
|
||||
* @param infra: infrastructure cache.
|
||||
|
|
|
|||
Loading…
Reference in a new issue