Lines Matching defs:from

20  * be used to endorse or promote products derived from this software without
634 char from[256], frm[512];
637 qstate->reply->remote_addrlen, from,
638 sizeof(from));
640 print_fail_addr(iq, from, sizeof(from));
641 snprintf(frm, sizeof(frm), "from %s", from);
1258 * saving a roundtrip from the validated lookup.
1303 /* if !subiq->dp, it'll start from the cache, no problem */
1349 * This state either generates: 1) a response, from cache or error, 2) a
1481 * getting older results from cache is a bad idea, no cache */
1500 /* item taken from cache does not match our query name, thus
1511 log_dns_msg("msg from cache lookup", &msg->qinfo,
1521 verbose(VERB_ALGO, "returning CNAME response from "
1544 /* if from cache, NULL, else insert 'cache IP' len=0 */
1550 verbose(VERB_ALGO, "returning answer from cache.");
1605 /* remove first label from delname, root goes to hints,
1607 /* also when prefetching an NS record, fetch it again from
1732 /* note deleg_msg is from previous lookup,
1821 /* see if we have an auth zone to answer from, improves dp from cache
1822 * (if any dp from cache) with auth zone dp, if that is lower */
1927 /* if no dp, then it's from root, refetch unneeded */
2025 /* select 'toget' items from the total of 'missing' items */
2036 * of items from a list one less in size */
2171 verbose(VERB_ALGO, "try parent-side-name, w. glue from cache");
2174 /* try to fill out parent glue from cache */
2177 /* got parent stuff from cache, see if we can continue */
2178 verbose(VERB_ALGO, "try parent-side glue from cache");
2294 * for this lookup. We remove labels from the query to find the right point.
2675 * fetch results from the internet servers */
2687 log_dns_msg("msg from auth zone",
2691 verbose(VERB_ALGO, "forwarder, ignoring referral from auth zone");
2705 /* like we got servfail from the auth zone lookup, and
3046 find_NS(struct reply_info* rep, size_t from, size_t to)
3049 for(i=from; i<to; i++) {
3141 /* test the answer is from the zone we expected,
3532 * gotten this from cache, so test to be sure */
3550 * gotten this from cache, so test to be sure */
3604 * This is a callback from walk_supers.
3710 * Callback from walk_supers for every super state that is interested in
3711 * the results from this query.
3809 * point where we ask the DS query from.
3856 struct dns_msg* from = qstate->return_msg;
3868 foriq->response = dns_copy_msg(from, forq->region);
3882 if(from->rep->rrset_count != 0) {
3883 size_t n = from->rep->rrset_count+to->rep->rrset_count;
3886 to->rep->flags = from->rep->flags;
3888 if(from->rep->rrset_count > RR_COUNT_MAX ||
3905 memcpy(dest, from->rep->rrsets, from->rep->an_numrrsets
3907 dest += from->rep->an_numrrsets;
3912 memcpy(dest, from->rep->rrsets+from->rep->an_numrrsets,
3913 from->rep->ns_numrrsets * sizeof(dest[0]));
3914 dest += from->rep->ns_numrrsets;
3920 memcpy(dest, from->rep->rrsets+from->rep->an_numrrsets+
3921 from->rep->ns_numrrsets,
3922 from->rep->ar_numrrsets * sizeof(dest[0]));
3925 to->rep->an_numrrsets += from->rep->an_numrrsets;
3926 to->rep->ns_numrrsets += from->rep->ns_numrrsets;
3927 to->rep->ar_numrrsets += from->rep->ar_numrrsets;
3930 if(from->rep->security < to->rep->security) /* lowest sec */
3931 to->rep->security = from->rep->security;
3932 if(from->rep->qdcount != 0) /* insert qd if appropriate */
3933 to->rep->qdcount = from->rep->qdcount;
3934 if(from->rep->ttl < to->rep->ttl) /* use smallest TTL */
3935 to->rep->ttl = from->rep->ttl;
3936 if(from->rep->prefetch_ttl < to->rep->prefetch_ttl)
3937 to->rep->prefetch_ttl = from->rep->prefetch_ttl;
3938 if(from->rep->serve_expired_ttl < to->rep->serve_expired_ttl)
3939 to->rep->serve_expired_ttl = from->rep->serve_expired_ttl;
4071 * from cache does not need to be stored in the msg cache. */
4089 * This is a callback from walk_supers.
4249 /* edns is not examined, but removed from message to help cache */
4256 /* Copy the edns options we may got from the back end */
4274 /* normalize and sanitize: easy to delete items from linked lists */
4297 log_name_addr(VERB_DETAIL, "reply from", iq->dp->name,