mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Make Reassembler::TotalSize a constant time operation
This commit is contained in:
parent
647fe3f494
commit
436a93b38a
3 changed files with 6 additions and 7 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
2.5-591 | 2018-05-22 09:19:59 -0500
|
||||||
|
|
||||||
|
* Make Reassembler::TotalSize a constant time operation (Corelight)
|
||||||
|
|
||||||
2.5-589 | 2018-05-21 21:37:54 +0000
|
2.5-589 | 2018-05-21 21:37:54 +0000
|
||||||
|
|
||||||
* Switch Bro's communication over to Broker; deprecate the old
|
* Switch Bro's communication over to Broker; deprecate the old
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.5-589
|
2.5-591
|
||||||
|
|
|
@ -255,12 +255,7 @@ void Reassembler::ClearOldBlocks()
|
||||||
|
|
||||||
uint64 Reassembler::TotalSize() const
|
uint64 Reassembler::TotalSize() const
|
||||||
{
|
{
|
||||||
uint64 size = 0;
|
return size_of_all_blocks;
|
||||||
|
|
||||||
for ( DataBlock* b = blocks; b; b = b->next )
|
|
||||||
size += b->Size();
|
|
||||||
|
|
||||||
return size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reassembler::Describe(ODesc* d) const
|
void Reassembler::Describe(ODesc* d) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue