Commit graph

54 commits

Author SHA1 Message Date
Alfredo Cardigliano
9352d0cdcd Update copyright 2025-01-02 09:09:56 +01:00
Luca Deri
55870e97b9 (C) Update 2024-01-12 11:44:18 +01:00
lucaderi
d395deac4e Automated commit of clang-format CI changes. 2023-04-07 14:20:44 +00:00
Luca Deri
f726b867c7 Updated (C) 2023-01-01 16:37:57 +01:00
Luca Deri
c144b411e0 Code optimization 2022-09-20 12:45:59 +02:00
Luca Deri
e9b858f030 Datatypes cleanup 2022-09-19 17:24:08 +02:00
Alfredo Cardigliano
f2060f2488 Copyright update (C) 2022-01-03 09:35:09 +01:00
Alfredo Cardigliano
c658b8ed24 Full purge idle scan on shutdown when processing pcap 2021-02-11 15:56:43 +01:00
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Luca Deri
236089d66c Optimized purging strategy to makes it more often and lighter 2020-10-18 21:16:49 +02:00
Simone Mainardi
626ebacf11 Fixes possible stall in purging in high-capacity views 2020-10-08 10:01:12 +02:00
Simone Mainardi
d15e1c4e71 Fixes hash table entries not purged
Fixes #4528
2020-10-05 17:49:12 +02:00
Simone Mainardi
5133af720f Reworks view interfaces with queues; rework idling and flow hooks exec 2020-09-29 18:30:10 +02:00
Simone Mainardi
90a5a57b36 Implements user script queues (avoids 5-sec HT walk) 2020-09-28 11:45:00 +02:00
Simone Mainardi
7f2a9b1420 Decouples flow dump from user scripts execution
Addresses #3545
2020-09-24 19:29:00 +02:00
Luca Deri
f5e572cb5e Split pruge of idled entries from hashtable ste transition 2020-08-13 10:21:59 +02:00
Luca Deri
e7bd8fa0f6 Added mechanism to avoid adding new elements to the hash when the system is under pressure 2020-08-12 16:17:08 +02:00
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
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
bd5041ead2 Renames walkIdle to walkAllStates and documents method behavior 2019-11-18 11:35:43 +01:00
Simone Mainardi
d685de3ec1 Implements walkIdle fairness among hash table entries 2019-11-13 11:35:55 +01:00
Simone Mainardi
552ca89959 Counts also idle entries to honor -X and -x 2019-10-31 09:54:00 +01:00
Simone Mainardi
cce73c2f44 Implements lua interpreters telemetry 2019-10-28 23:47:03 +01:00
Simone Mainardi
68246efd01 Decouples periodic hash table updates using a thread pool 2019-10-27 17:40:07 +01:00
Simone Mainardi
b8b6c7fac7 Improves purging speed of idle ht entries 2019-10-27 11:55:52 +01:00
Simone Mainardi
96eb183913 Removes unnecessary GenericHash::notify_transition 2019-10-25 19:25:21 +02:00
Simone Mainardi
955eed4b50 Reworks idling and purging of hash table entries to make it faster 2019-10-24 15:48:18 +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
6fd7386c03 Fixes possible collisions when looking up flows by key 2019-10-16 19:04:10 +02:00
Simone Mainardi
ae438ba75a Prevents unnecessary HT lookups in purgeIdle 2019-10-11 15:18:36 +02:00
Simone Mainardi
6257cacd9a Adds handles for busy and free trylocks 2019-10-04 18:11:25 +02:00
Simone Mainardi
2fc7144eb6 Implements hash tables rwlocks 2019-10-04 17:06:24 +02:00
Simone Mainardi
ac2ce0c058 Sets all hash entries to idle during shutdown 2019-08-12 14:05:08 +02:00
Simone Mainardi
0fd3be6b79 Implements hosts purge mark algorithm 2019-07-18 15:19:36 +02:00
Simone Mainardi
be85b2ebc8 Implements algorithm to purge hosts only after checking their alerts 2019-07-18 13:34:45 +02:00
Simone Mainardi
34f91bfd9f Implements new algorithm to allow flows purging control from interface views 2019-07-17 16:15:56 +02:00
Simone Mainardi
94f894454c Removes useless disablePurge and enablePurge 2019-07-05 16:08:51 +02:00
Simone Mainardi
ef4f98a5a5 Implements lock-free hash table additions 2019-07-05 16:00:43 +02:00
Luca Deri
bedff2c8e2 Updated (C) 2019-01-07 19:28:49 +01:00
Luca Deri
22c90d73bd Added hash tracing 2018-08-04 17:54:43 +02:00
Simone Mainardi
c96d5af143 Fixes mem leaks due to non-virtual destructors 2018-04-16 16:03:58 +02:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
Luca
caaf27d5a6 Implemented batched hosts and l2-devices walk 2017-11-22 19:38:08 +01:00
Luca
09185cf4fc Minor cleanup 2017-08-04 17:12:44 +02:00
Luca Deri
d358712f59 Optimized purging
Minor lua code cleanup
2017-03-13 22:47:30 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Luca
274921ee5c Reimplemented view: interface, and Paginator code.
Minor code cleanup
2016-08-18 13:44:24 +02:00