Lines Matching defs:forecast
2947 mDNSu32 forecast = *answerforecast + anoninfo_space;
2970 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
2971 forecast += 12 + rr->resrec.rdestimate;
2974 if (query->h.numQuestions > 1 && newptr + forecast >= limit)
2977 debugf("BuildQuestion: Retracting question %##s (%s) new forecast total %d, total questions %d",
2978 q->qname.c, DNSTypeName(q->qtype), newptr + forecast - query->data, query->h.numQuestions);
2987 *answerforecast = forecast; // Update the forecast
3225 // We forecast: qname (n) type (2) class (2)
3226 mDNSu32 forecast = (mDNSu32)DomainNameLength(&q->qname) + 4;
3236 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3237 forecast += 12 + rr->resrec.rdestimate;
3238 if (forecast >= 512) return(mDNSfalse); // If this would add 512 bytes or more to the packet, don't accelerate
3561 debugf("SendQueries: %s question for %##s (%s) at %d forecast total %d",
3613 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3614 mDNSu32 forecast = answerforecast + 12 + ar->resrec.rdestimate;
3615 mDNSu8 *newptr = putQuestion(&m->omsg, queryptr, limit - forecast, ar->resrec.name, kDNSQType_ANY, (mDNSu16)(ar->resrec.rrclass | ucbit));
3619 answerforecast = forecast;