Commit graph

1188 commits

Author SHA1 Message Date
Luca
5f72aa0c2e nDPI cleanup 2019-11-08 11:38:03 +00:00
Luca
876841d43b Updated nDPI interface 2019-11-07 19:34:48 +00:00
Luca
5268358ae0 Updated code for multiple ndpi instances 2019-11-07 07:40:45 +00:00
Luca
1fb32a0795 Unified nDPI struct across interfaces 2019-11-06 23:02:35 +00:00
Luca
0e523a4308 Changes to minimize the risk of categories reload 2019-11-06 09:17:53 +00:00
emanuele-f
54140b6f1a Migrate alertable disabled alerts preference to lua
This avoids performing multiple hget on redis, thus increasing performance
2019-11-05 14:59:38 +01:00
emanuele-f
191e530f6f Clean category lists error status on startup and remove debug prints 2019-11-04 13:07:24 +01:00
emanuele-f
01953cf76f Harden categories reload to avoid crashes if multiple housekeeping run concurrently 2019-11-04 12:01:27 +01:00
Luca Deri
d61470c653 Workaround for #3033 but a proper fix is necessary 2019-11-02 20:22:35 +01:00
Luca Deri
64e33a2018 Fixed script execution for pcap interfaces 2019-11-01 15:34:18 +01:00
Luca Deri
aee1b3defb Split threaded activities in high and standard priority tasks 2019-11-01 11:03:56 +01:00
Simone Mainardi
8db49f7268 Adds extra timing info for flow periodicHTStateUpdate 2019-10-31 12:40:24 +01:00
Simone Mainardi
11d7f2aa12 Fixes for aggregated flows dump on view interfaces 2019-10-30 19:14:50 +01:00
Simone Mainardi
09b5ec032f View interfaces updates and comments 2019-10-30 11:58:05 +01:00
Simone Mainardi
e8277e46ff Reworks view interfaces implementation 2019-10-30 11:47:56 +01:00
Simone Mainardi
236a73839c Compilation fix 2019-10-29 17:54:31 +01:00
Simone Mainardi
6fb469aa61 Minor cleanup 2019-10-29 17:53:17 +01:00
Simone Mainardi
1eba832869 Fixes flow aggregation after hash tables rework
Fixes #3018
2019-10-29 17:49:52 +01:00
emanuele-f
7c03f84d07 Compilation fix 2019-10-29 12:14:47 +01:00
emanuele-f
378a1e2cd8 Optimize nDPI categories reload to avoid packet drops 2019-10-29 12:07:27 +01:00
Simone Mainardi
8d25c53871 Fixes idle flows not dumped to db 2019-10-29 11:37:49 +01:00
Simone Mainardi
cce73c2f44 Implements lua interpreters telemetry 2019-10-28 23:47:03 +01:00
Simone Mainardi
dc748b1b6d Implements stats for periodic scripts duration 2019-10-28 17:10:03 +01:00
emanuele-f
a41278f4a3 Add categories loading debug message 2019-10-28 12:35:18 +01:00
Simone Mainardi
f98dd234e8 Decouples periodic stats updates using a thread pool 2019-10-28 12:21:57 +01:00
Simone Mainardi
2d0b9e005a Generalizes hosts/flows periodic stats update 2019-10-28 12:07:11 +01:00
Simone Mainardi
5db985df59 Adds error when the periodic hash tables update takes too long 2019-10-27 18:55:11 +01:00
Simone Mainardi
68246efd01 Decouples periodic hash table updates using a thread pool 2019-10-27 17:40:07 +01:00
Simone Mainardi
ca657b2592 Removes unnecessary numFlows counter 2019-10-27 12:43:10 +01:00
Simone Mainardi
8a949e8dc2 Do not execute flow scripts if within 3 secs to the deadline 2019-10-25 18:57:52 +02:00
Simone Mainardi
ad03729a81 Fixes inverted quick_update boolean 2019-10-25 18:43:47 +02:00
Simone Mainardi
00f8c7d681 Handles slow flow scripts causing long delays and slow purges 2019-10-25 12:16:01 +02:00
Luca Deri
983e6ebe50 Changes due to new nDPI behaviour with ndpi_extra_dissection_possible() 2019-10-24 22:18:15 +02:00
Alfredo Cardigliano
dc326eccdf Checking hash table before allocating entries (Flows, ASs, etc.) to avoid unneeded allocations/deallocations (fix #2997) 2019-10-24 19:33:20 +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
44a9d65f24 Compilation fix 2019-10-23 14:51:25 +02:00
Simone Mainardi
15e17a801a Implements per-state hash entry counters and writes them to ts 2019-10-23 13:09:02 +02:00
Alfredo Cardigliano
d05777df1e External alerts API update and cleanup 2019-10-22 15:08:06 +02:00
emanuele-f
b3374651ce Merge branch 'alerts_cleanup' into dev 2019-10-22 10:50:21 +02:00
emanuele-f
b3a8c6d49a Migrate C flow status alerts to Lua user scripts
- Alerts and flow status cleanup
- Community flow user scripts migration
- Implement scripts filters by l7 proto and packet interface only
- Migrate flow2statusinfojson
- Lower flow periodic update to 30 seconds if there is flow activity
- Display flow scripts without a gui section
2019-10-22 10:42:22 +02:00
Simone Mainardi
e80dc962f4 Optimizes host.getFullInfo with smaller functions in periodic scripts 2019-10-21 16:21:03 +02:00
Simone Mainardi
35d605e79f Fixes crash when accessing stats upon startup 2019-10-18 17:53:00 +02:00
Simone Mainardi
343295a936 Prevents unnecessary sleeps in housekeeping tasks 2019-10-18 14:52:03 +02:00
Luca Deri
9d071c44c9 Minor code cleanup 2019-10-17 11:56:55 +02:00
Simone Mainardi
6fd7386c03 Fixes possible collisions when looking up flows by key 2019-10-16 19:04:10 +02:00
Alfredo Cardigliano
16c3b3a4af Custom disaggregation available in EE 2019-10-16 05:02:53 +02:00
Alfredo Cardigliano
87ac1b0bb6 New Duplicate Disaggregated Traffic option to show disaggregated traffic in the master interface 2019-10-16 04:50:47 +02:00
Simone Mainardi
8b9dd98b55 Fixes packets and flows processing during shutdown 2019-10-15 18:12:28 +02:00
Simone Mainardi
5568fae8e6 Prevents periodic alerts lua calls to be performed during shutdown 2019-10-15 17:35:22 +02:00
Alfredo Cardigliano
3290bd803b Propagating additional fields to companion interface 2019-10-15 16:41:42 +02:00