Simone Mainardi
d15e1c4e71
Fixes hash table entries not purged
...
Fixes #4528
2020-10-05 17:49:12 +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
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
0f1647be16
Typo
2020-07-23 00:22:43 +02:00
Luca Deri
5091cee6b2
Moved usage counter to 32 bit
2020-07-22 08:09:06 +02:00
lucaderi
13a67443fa
Uses rework
2020-07-22 00:21:02 +02:00
Luca Deri
40689081c7
Implemented periodicity stats
2020-07-17 13:12:53 +02:00
emanuele-f
a428bb665f
Add work completion indicator to ht_stats/stats/5min dump
2020-02-21 17:43:07 +01: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
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
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
e80dc962f4
Optimizes host.getFullInfo with smaller functions in periodic scripts
2019-10-21 16:21:03 +02:00
Simone Mainardi
6fd7386c03
Fixes possible collisions when looking up flows by key
2019-10-16 19:04:10 +02:00
Simone Mainardi
48caf68f69
Fixes invalid state transitions
2019-10-11 11:15:38 +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
da1dbe4ab0
Reworks hash entries idling
2019-09-24 14:29:20 +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
8ee923e100
Adds description for the finite-state machine
2019-07-22 19:09:19 +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
Simone Mainardi
7eae30e914
Allows ntopng to work without Host instances and hosts HT
2019-07-16 19:02:36 +02:00
Simone Mainardi
78b2456931
Implements whitelist for long-lived flows
...
Fixes #2666
2019-06-21 16:00:54 +02:00
emanuele-f
b5ce655cde
Fix missing first/last seen serialization in countries/as/vlan
2019-05-29 11:05:26 +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
Luca Deri
ca0bf36e89
Changed purge policy for netfilter based interfaces
2018-08-04 11:18:59 +02:00
Luca Deri
f0c936c368
Updated (C) to 2018
2018-03-22 21:59:42 +01:00
Luca
0386893c06
Fixed overflow issue on uses counter
2017-09-28 03:29:28 -06: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
802f760fb9
Implements Active Local Hosts counter and display
2017-05-23 22:15:52 +02:00
Luca
30e1a75f98
(C) update
2017-01-10 15:03:16 -08:00
Simone Mainardi
5e4488a448
Reworks mac address lists
2017-01-04 20:28:59 +01: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
47d43d986b
Implemented multi-categories for flows
2016-01-02 12:55:13 +01: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