mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-13 13:27:43 +02:00
Better estimate.
git-svn-id: file:///svn/unbound/trunk@278 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
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.
|
||||
|
||||
@@ -476,9 +476,8 @@ msgreply_sizefunc(void* k, void* d)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user