diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2022-09-29 14:14:11 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2022-09-29 14:14:11 +0000 |
| commit | 0dde6f4f8e604df8c6fbdab8b4aadb5ddf80c76f (patch) | |
| tree | 83c686c2b95a7045dd0a33836a68de8354ce34cb /iterator/iter_utils.h | |
| parent | 9b76d32f2310b735dbeb896cbf2776cad61f23e8 (diff) | |
Diffstat (limited to 'iterator/iter_utils.h')
| -rw-r--r-- | iterator/iter_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iterator/iter_utils.h b/iterator/iter_utils.h index 8583fde58a44..850be96a6e16 100644 --- a/iterator/iter_utils.h +++ b/iterator/iter_utils.h @@ -62,6 +62,15 @@ struct ub_packed_rrset_key; struct module_stack; struct outside_network; +/* max number of lookups in the cache for target nameserver names. + * This stops, for large delegations, N*N lookups in the cache. */ +#define ITERATOR_NAME_CACHELOOKUP_MAX 3 +/* max number of lookups in the cache for parentside glue for nameserver names + * This stops, for larger delegations, N*N lookups in the cache. + * It is a little larger than the nonpside max, so it allows a couple extra + * lookups of parent side glue. */ +#define ITERATOR_NAME_CACHELOOKUP_MAX_PSIDE 5 + /** * Process config options and set iterator module state. * Sets default values if no config is found. |
