mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
'W' for zero window implemented; logarithmic 'T'/'C'/'W' history repetitions
This commit is contained in:
parent
15d74ac081
commit
73349362a3
11 changed files with 231 additions and 35 deletions
11
src/Conn.h
11
src/Conn.h
|
@ -240,6 +240,17 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
// Increments the passed counter and adds it as a history
|
||||
// code if it has crossed the next scaling threshold. Scaling
|
||||
// is done in terms of powers of the third argument.
|
||||
// Returns true if the threshold was crossed, false otherwise.
|
||||
bool ScaledHistoryEntry(char code,
|
||||
uint32& counter, uint32& scaling_threshold,
|
||||
uint32 scaling_base = 10);
|
||||
|
||||
void HistoryThresholdEvent(EventHandlerPtr e, bool is_orig,
|
||||
uint32 threshold);
|
||||
|
||||
void AddHistory(char code) { history += code; }
|
||||
|
||||
void DeleteTimer(double t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue