Commit graph

37 commits

Author SHA1 Message Date
Simone Mainardi
1baa7d6cc4 Avoids double 5-sec HT-walks to update stats 2020-07-27 14:22:59 +02:00
Luca Deri
ce1309853f Refactored idle code: now it should be easier to read and understand.
Idle lifecycle has been modified to make it more efficient
2020-07-23 12:56:30 +02:00
Luca Deri
12744c972c Purge policy changes 2020-07-23 08:00:11 +02:00
lucaderi
13a67443fa Uses rework 2020-07-22 00:21:02 +02:00
emanuele-f
93a96eb214 Code cleanup 2020-01-13 15:20:38 +01:00
Luca Deri
57e6a93065 Improved scheduling algorithm to guarantee minimum service time when number of entries allow
Updated (C)
2020-01-06 23:36:36 +01:00
emanuele-f
87c336a4aa Reduce cpu usage due to the loading of flow.lua
The FlowAlertCheckLuaEngine is now cached into the (reused) vm, so it is reloaded
only when needed (e.g. a script on disk changes).
2019-12-31 18:27:14 +01:00
Simone Mainardi
2abb8cfde5 Reworks flow scripts deadlines 2019-12-27 20:50:53 +01:00
emanuele-f
8b7d711a36 Add option to disable flow user scripts invocation 2019-12-23 18:03:19 +01:00
Simone Mainardi
2d0b9e005a Generalizes hosts/flows periodic stats update 2019-10-28 12:07:11 +01:00
Simone Mainardi
96eb183913 Removes unnecessary GenericHash::notify_transition 2019-10-25 19:25:21 +02:00
Simone Mainardi
00f8c7d681 Handles slow flow scripts causing long delays and slow purges 2019-10-25 12:16:01 +02:00
Simone Mainardi
3a9af5176a Reworks inc/dec uses 2019-10-25 08:01:02 +02:00
Simone Mainardi
15e17a801a Implements per-state hash entry counters and writes them to ts 2019-10-23 13:09:02 +02:00
Simone Mainardi
48caf68f69 Fixes invalid state transitions 2019-10-11 11:15:38 +02:00
Luca
263fe3927b Refactoring fixes 2019-10-11 07:36:06 +02:00
Luca
9870eee2e7 Revisited state hangling 2019-10-10 20:09:42 +02:00
Simone Mainardi
fa17aab9db Implements lua flow method calls using ids to be more efficient 2019-09-30 17:29:01 +02:00
Simone Mainardi
ac2ce0c058 Sets all hash entries to idle during shutdown 2019-08-12 14:05:08 +02:00
Simone Mainardi
d948c8fe6a Shows host pools menu for view interfaces 2019-08-06 10:14:19 +02:00
Simone Mainardi
0728fe3926 Prevents idle states during shutdown to be notified as errors 2019-08-06 10:12:08 +02:00
Luca Deri
86ab1907df Added extra checks to idle objects 2019-08-06 09:31:35 +02:00
Simone Mainardi
f110602192 Refactors hash entry state setters to ease override 2019-08-05 12:12:16 +02:00
Simone Mainardi
ff1d67bf41 Minor fix 2019-07-25 13:33:29 +02:00
Simone Mainardi
f035d5c894 Reworks shutdown operations to properly terminate pool loops and periodic activites 2019-07-25 11:58:13 +02:00
emanuele-f
55405857cc Fix possibly idle GenericHashEntry due to deserialization 2019-07-25 11:43:49 +02:00
Simone Mainardi
ed5c0d4d4c Implements proper shutdown with view interfaces 2019-07-22 18:43:30 +02:00
Simone Mainardi
9b6714823a Implements hash entries lifecycle as a finite states machine
Fixes certain sporadic race conditions
2019-07-22 15:18:39 +02:00
emanuele-f
b5ce655cde Fix missing first/last seen serialization in countries/as/vlan 2019-05-29 11:05:26 +02:00
Luca Deri
bedff2c8e2 Updated (C) 2019-01-07 19:28:49 +01:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
Simone Mainardi
0c40af5863 Implements VLANs hash table 2017-04-21 18:44:48 +02:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Luca Deri
97b19c1461 Introduced the concept of Mac hosts (it used to be mixed with L3 hosts). More work is needed to add L2 stats
Host activities are now enabled (and memory allocated) only for local hosts. Fixed bug in activities preferences
Cleaned up various methods
Removed some old unused code
2016-10-02 19:43:13 +02:00
Luca Deri
f3cd841bd1 Fix for #569 2016-06-02 12:12:25 +02:00
Luca Deri
d7c452f0a3 Moved to 2016 2016-01-01 09:27:39 +01:00
Luca Deri
b178cf4121 Added travis file for code testing
Added .gitignore file for ignoring selected files
Reworked src and include paths to organize the source better
Fixed bug with invalid git version caused in some settings that do not compile code extracting it from github
2015-05-01 19:40:52 +02:00
Renamed from GenericHashEntry.cpp (Browse further)