• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/unbound/validator/

Lines Matching refs:orig_msg

219 		vq->orig_msg = (struct dns_msg*)regional_alloc(qstate->region,
221 if(!vq->orig_msg)
223 vq->orig_msg->qinfo = qstate->qinfo;
224 vq->orig_msg->rep = (struct reply_info*)regional_alloc(
226 if(!vq->orig_msg->rep)
228 memset(vq->orig_msg->rep, 0, sizeof(struct reply_info));
229 vq->orig_msg->rep->flags = (uint16_t)(qstate->return_rcode&0xf)
231 vq->orig_msg->rep->qdcount = 1;
233 vq->orig_msg = qstate->return_msg;
238 vq->orig_msg->rep,
242 if(vq->orig_msg->rep->rrset_count > RR_COUNT_MAX)
245 vq->orig_msg->rep->rrsets, sizeof(struct ub_packed_rrset_key*)
246 * vq->orig_msg->rep->rrset_count);
759 /* remove from orig_msg */
1489 vq->orig_msg->rep, vq->rrset_skip);
1497 vq->rrset_skip < vq->orig_msg->rep->rrset_count) {
1500 vq->qchase.qname = vq->orig_msg->rep->
1502 vq->qchase.qname_len = vq->orig_msg->rep->
1504 vq->qchase.qtype = ntohs(vq->orig_msg->rep->
1506 vq->qchase.qclass = ntohs(vq->orig_msg->rep->
1515 vq->orig_msg->rep->rrset_count > vq->rrset_skip &&
1516 ntohs(vq->orig_msg->rep->rrsets[vq->rrset_skip]->rk.type) ==
1518 !(vq->orig_msg->rep->rrsets[vq->rrset_skip]->
1532 val_find_signer(subtype, &vq->qchase, vq->orig_msg->rep,
1573 /* extract this part of orig_msg into chase_reply for
1575 val_fill_reply(vq->chase_reply, vq->orig_msg->rep,
1869 &vq->qchase, vq->orig_msg->rep, vq->rrset_skip);
1871 remove_spurious_authority(vq->chase_reply, vq->orig_msg->rep);
1882 detect_wrongly_truncated(vq->orig_msg->rep)) {
1884 vq->orig_msg->rep->ns_numrrsets = 0;
1885 vq->orig_msg->rep->ar_numrrsets = 0;
1886 vq->orig_msg->rep->rrset_count =
1887 vq->orig_msg->rep->an_numrrsets;
1921 rcode = (int)FLAGS_GET_RCODE(vq->orig_msg->rep->flags);
1928 FLAGS_SET_RCODE(vq->orig_msg->rep->flags, rcode);
2000 vq->orig_msg->rep, vq->rrset_skip);
2002 /* store overall validation result in orig_msg */
2004 vq->orig_msg->rep->security = vq->chase_reply->security;
2006 vq->rrset_skip < vq->orig_msg->rep->an_numrrsets +
2007 vq->orig_msg->rep->ns_numrrsets) {
2011 if(vq->chase_reply->security < vq->orig_msg->rep->security)
2012 vq->orig_msg->rep->security =
2018 vq->rrset_skip = val_next_unchecked(vq->orig_msg->rep,
2020 if(vq->rrset_skip < vq->orig_msg->rep->rrset_count) {
2032 if(!val_chase_cname(&vq->qchase, vq->orig_msg->rep,
2035 vq->orig_msg->rep->security = sec_status_bogus;
2046 if(vq->orig_msg->rep->security == sec_status_secure) {
2052 val_check_nonsecure(qstate->env, vq->orig_msg->rep);
2053 if(vq->orig_msg->rep->security == sec_status_secure) {
2058 vq->orig_msg->rep);
2065 if(vq->orig_msg->rep->security == sec_status_bogus) {
2083 vq->orig_msg->rep->ttl = ve->bogus_ttl;
2084 vq->orig_msg->rep->prefetch_ttl =
2085 PREFETCH_TTL_CALC(vq->orig_msg->rep->ttl);
2086 vq->orig_msg->rep->serve_expired_ttl =
2087 vq->orig_msg->rep->ttl + qstate->env->cfg->serve_expired_ttl;
2109 vq->orig_msg->rep->security = sec_status_indeterminate;
2112 if(vq->orig_msg->rep->security == sec_status_secure &&
2125 vq->orig_msg->rep->security =
2135 vq->orig_msg->rep->security =
2145 if(!dns_cache_store(qstate->env, &vq->orig_msg->qinfo,
2146 vq->orig_msg->rep, 0, qstate->prefetch_leeway, 0, NULL,
2154 if(!dns_cache_store(qstate->env, &vq->orig_msg->qinfo,
2155 vq->orig_msg->rep, 1, 0, 0, NULL,
2161 qstate->return_msg = vq->orig_msg;
2264 } else if(!vq->orig_msg) {