From: Otto Moerbeek Date: Mon, 29 Nov 2021 09:15:22 +0000 (+0100) Subject: Apply suggestions from code review X-Git-Tag: rec-4.7.0-alpha0~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11036%2Fhead;p=thirdparty%2Fpdns.git Apply suggestions from code review Co-authored-by: Remi Gacogne --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 26cf303a96..df1f1bb500 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -678,7 +678,9 @@ LWResult::Result SyncRes::asyncresolveWrapper(const ComboAddress& ip, bool ednsM #define QLOG(x) LOG(prefix << " child=" << child << ": " << x << endl) /* The parameters from rfc9156. */ +/* maximum number of QNAME minimisation iterations */ static const unsigned int s_max_minimise_count = 10; +/* number of queries that should only have one label appended */ static const unsigned int s_minimise_one_lab = 4; static unsigned int qmStepLen(unsigned int labels, unsigned int qnamelen, unsigned int i)