Lines Matching defs:qnamelen
139 msg_cache_remove(struct module_env* env, uint8_t* qname, size_t qnamelen,
146 k.qname_len = qnamelen;
208 find_closest_of_type(struct module_env* env, uint8_t* qname, size_t qnamelen,
219 qnamelen -= lablen + 1;
223 while(qnamelen > 0) {
225 qnamelen, searchtype, qclass, 0, now, 0))) {
227 size_t origqnamelen = qnamelen;
233 if(expiretop && qnamelen == expiretoplen &&
240 * off one label (if qnamelen>0) and returns the final
244 &qnamelen, searchtype, qclass, now, expiretop,
263 qnamelen -= lablen + 1;
282 msg_cache_lookup(struct module_env* env, uint8_t* qname, size_t qnamelen,
290 k.qname_len = qnamelen;
467 dns_msg_create(uint8_t* qname, size_t qnamelen, uint16_t qtype,
474 msg->qinfo.qname = regional_alloc_init(region, qname, qnamelen);
477 msg->qinfo.qname_len = qnamelen;
523 size_t qnamelen, uint16_t qtype, uint16_t qclass,
532 nskey = find_closest_of_type(env, qname, qnamelen, qclass, now,
551 *msg = dns_msg_create(qname, qnamelen, qtype, qclass, region,
826 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
839 msg = dns_msg_create(qname, qnamelen, qtype, qclass,
853 env->rrset_cache, qname, qnamelen, lookup[i],
871 msg = dns_msg_create(qname, qnamelen, qtype, qclass,
891 uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
903 k.qname_len = qnamelen;
926 (rrset=find_closest_of_type(env, qname, qnamelen, qclass, now,
948 env->rrset_cache, qname, qnamelen,
965 (rrset=rrset_cache_lookup(env->rrset_cache, qname, qnamelen,
984 (rrset=rrset_cache_lookup(env->rrset_cache, qname, qnamelen,
1037 msg->qinfo.qname_len=qnamelen;
1051 return fill_any(env, qname, qnamelen, qtype, qclass, region);