Lines Matching refs:eh
120 struct entry_h *eh = val_new_entry.data; in stash_pkt() local
121 memset(eh, 0, offsetof(struct entry_h, data)); in stash_pkt()
122 eh->time = qry->timestamp.tv_sec; in stash_pkt()
123 eh->ttl = MAX(MIN(packet_ttl(pkt, is_negative), cache->ttl_max), cache->ttl_min); in stash_pkt()
124 eh->rank = rank; in stash_pkt()
125 eh->is_packet = true; in stash_pkt()
126 eh->has_optout = qf->DNSSEC_OPTOUT; in stash_pkt()
127 memcpy(eh->data, &pkt_size, sizeof(pkt_size)); in stash_pkt()
128 memcpy(eh->data + sizeof(pkt_size), pkt->wire, pkt_size); in stash_pkt()
135 eh->rank, eh->ttl, in stash_pkt()
142 const struct entry_h *eh, const void *eh_bound, uint32_t new_ttl) in answer_from_pkt() argument
151 memcpy(&pkt_len, eh->data, sizeof(pkt_len)); in answer_from_pkt()
164 memcpy(pkt->wire, eh->data + 2, pkt_len); in answer_from_pkt()
182 *rr_rank = eh->rank; in answer_from_pkt()
187 const uint32_t drift = eh->ttl - new_ttl; in answer_from_pkt()
206 qf->EXPIRING = is_expiring(eh->ttl, new_ttl); in answer_from_pkt()
209 qf->DNSSEC_INSECURE = kr_rank_test(eh->rank, KR_RANK_INSECURE); in answer_from_pkt()
210 qf->DNSSEC_BOGUS = kr_rank_test(eh->rank, KR_RANK_BOGUS); in answer_from_pkt()
214 qf->DNSSEC_OPTOUT = eh->has_optout; in answer_from_pkt()
216 eh->rank, new_ttl); in answer_from_pkt()