diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-01-02 17:35:29 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-01-02 17:35:29 +0000 |
commit | 7954be7fa5ea70de36aacebb8bcca2a70af709f4 (patch) | |
tree | b839bbb75392ad4c301a0393b3ca49fe155c5740 /iterator/iterator.h | |
parent | 7f563e614fb9a8ce7c8904a3ad346b7e38238339 (diff) |
Diffstat (limited to 'iterator/iterator.h')
-rw-r--r-- | iterator/iterator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/iterator/iterator.h b/iterator/iterator.h index 0b91760d4a49f..1364b86d722b3 100644 --- a/iterator/iterator.h +++ b/iterator/iterator.h @@ -52,6 +52,8 @@ struct iter_donotq; struct iter_prep_list; struct iter_priv; +/** max number of targets spawned for a query and its subqueries */ +#define MAX_TARGET_COUNT 32 /** max number of query restarts. Determines max number of CNAME chain. */ #define MAX_RESTART_COUNT 8 /** max number of referrals. Makes sure resolver does not run away */ @@ -251,6 +253,10 @@ struct iter_qstate { /** number of queries fired off */ int sent_count; + + /** number of target queries spawned in [1], for this query and its + * subqueries, the malloced-array is shared, [0] refcount. */ + int* target_count; /** * The query must store NS records from referrals as parentside RRs |