+4 May 2007: Wouter
+ - msgreply sizefunc is more accurate.
+
3 May 2007: Wouter
- fill refs. Use new parse and encode to answer queries.
- stores rrsets in cache.
struct reply_info* r = (struct reply_info*)d;
size_t s = sizeof(struct msgreply_entry) + sizeof(struct reply_info)
+ q->qnamesize;
- if(r->rrset_count > 0)
- s += r->rrset_count * (sizeof(struct ub_packed_rrset_key*) +
- sizeof(struct rrset_ref));
+ s += (r->rrset_count-1) * sizeof(struct rrset_ref);
+ s += r->rrset_count * sizeof(struct ub_packed_rrset_key*);
return s;
}