Lines Matching defs:forecast
2993 mDNSu32 forecast = *answerforecast + anoninfo_space;
3016 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3017 forecast += 12 + rr->resrec.rdestimate;
3020 if (query->h.numQuestions > 1 && newptr + forecast >= limit)
3023 debugf("BuildQuestion: Retracting question %##s (%s) new forecast total %d, total questions %d",
3024 q->qname.c, DNSTypeName(q->qtype), newptr + forecast - query->data, query->h.numQuestions);
3033 *answerforecast = forecast; // Update the forecast
3268 // We forecast: qname (n) type (2) class (2)
3269 mDNSu32 forecast = (mDNSu32)DomainNameLength(&q->qname) + 4;
3279 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3280 forecast += 12 + rr->resrec.rdestimate;
3281 if (forecast >= 512) return(mDNSfalse); // If this would add 512 bytes or more to the packet, don't accelerate
3604 debugf("SendQueries: %s question for %##s (%s) at %d forecast total %d",
3656 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3657 mDNSu32 forecast = answerforecast + 12 + ar->resrec.rdestimate;
3658 mDNSu8 *newptr = putQuestion(&m->omsg, queryptr, limit - forecast, ar->resrec.name, kDNSQType_ANY, (mDNSu16)(ar->resrec.rrclass | ucbit));
3662 answerforecast = forecast;