Simone Mainardi
f110602192
Refactors hash entry state setters to ease override
2019-08-05 12:12:16 +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
Simone Mainardi
d9275ac166
Allows an extra runHousekeepingTasks before shutting down to do proper cleanup
2019-07-19 19:11:29 +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
Simone Mainardi
4f4548713e
Fixes protocol detection for flows with a few packets
2019-03-05 12:21:00 +01:00
Luca
509df6a1fc
Improved counter monitoring algorithm
2019-02-03 23:30:07 +01:00
Luca Deri
bedff2c8e2
Updated (C)
2019-01-07 19:28:49 +01:00
Alfredo Cardigliano
479970c384
Implemented flows purging on shutdown (enabled with --shutdown-when-done only for now, it can be controlled with prefs->flushFlowsOnShutdown()), fixes #2229
2018-12-15 17:43:35 +01:00
Luca Deri
5ebaec2867
Added better trace for potential XSS attempts
2018-08-04 19:18:17 +02:00
Luca Deri
22c90d73bd
Added hash tracing
2018-08-04 17:54:43 +02:00
Luca Deri
f0c936c368
Updated (C) to 2018
2018-03-22 21:59:42 +01:00
Luca Deri
c3f81d694b
Partial cleanup to the batch walk
2017-11-23 00:19:17 +01:00
Luca
caaf27d5a6
Implemented batched hosts and l2-devices walk
2017-11-22 19:38:08 +01:00
Simone Mainardi
eaa7a0d313
Separates L3 IPs from L2 MACs
...
Before this commit, multiple L3 hosts were allocated if the same ip
address was seen with multiple mac addresses. We have decided to keep
ip and macs logically sepatated. For this reason, after this commit,
the L3 ip always remains the same even if there are changes in the
mac. A user who wants to monitor mac addresses can use the L2 section
as well as the host pools.
This commit also reverts:
"Add MAC address to the serialized hosts key to fix bad MAC address association and stats"
This reverts commit 89a756fb9a .
2017-07-04 01:41:31 +02:00
Simone Mainardi
1b313d2932
Implements periodic flow aggregation
2017-05-09 15:07:20 +02:00
Luca Deri
25950f65eb
Implemented double-step hash purging
2017-05-08 15:00:56 +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 Deri
33b91719f6
Fixed bug that prevented Mac address to be purged from memory when idle
2016-10-15 11:57:55 +02:00
Luca
274921ee5c
Reimplemented view: interface, and Paginator code.
...
Minor code cleanup
2016-08-18 13:44:24 +02:00
Luca
1e82c2750d
Fix for avoiding hosts to be purged while walking the hash
2016-05-19 00:14:42 +02:00
Luca Deri
d7c452f0a3
Moved to 2016
2016-01-01 09:27:39 +01:00
Luca
440a2c8329
Reworked flow listing by sorting flows in memory before they are pased to Lua. This prevents Lua from using too much memory (in particular with limited-memory hosts or large sites with many flows)
2015-12-26 12:34:45 +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