Commit graph

70 commits

Author SHA1 Message Date
Luca Deri
dca9746a9f Added support for Modbus dissection 2023-05-26 23:01:11 +02:00
Riccardo Mori
151a047760
Add first fuzzing harness (#7430)
* First sketch of fuzzing

* Add m4 script

The script is used in the fuzzing build

* Add stub sources in the makefile

* [Fuzz] Add RedisStub

* Add gitignore for fuzz dir

* Remove definition of non-implemented method

* [Fuzz] Refactoring code

* [Fuzz] Separate the protobuf support in the makefile

* Clean fuzzing related object files

* [Fuzz] Fix makefile

* Change gitignore

* [Fuzz] Separate headers

* [Fuzz] Add README.md

* [Fuzz] Change make target

* [Fuzz] Update README.md

* Add compatibilty with autoconf < 2.71

* Optionally disable hiredis integration

* Include hiredis only for production build

* [Fuzz] Disable period activities

* Remove unused dependencies for librrd

* Optionally use static linking for zmq library

* Add debug output regarding the linking of libzmq

* [Fuzz] Do not run on empty input

* Optionally use static linking for libjson-c

* Optionally use static linking for libmaxminddb

* Make mysqlclient dependency as optional

* Change gitignore

* [Fuzz] Add corpus for fuzz_dissect_packet

* [Fuzz] Refactor fuzz_dissect_packet

* Change gitignore

* [Fuzz] Use correct naming for corpus

* [Fuzz] Add dictionary

* [Fuzz] Fix declaration of LLVMFuzzerInitialize

* [Fuzz] Refactor onefile

* [Fuzz] Fix the initialization memory leaks

* [Fuzz] Fix invocation of LLVMFuzzerInitialize

* Remove double githooks folder

* [Fuzz] Set interface pcap_data_link

* Change gitignore

* Use pkg-config for detecting protobuf libraries

* Add license

* Improve error message
2023-05-02 16:06:52 +02: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
MatteoBiscosi
a1ed5d29f4 Fixes Redis trim 2022-08-09 16:32:26 +02:00
Alfredo Cardigliano
19310ffd06 Initial cleanup of useless consts towards migration to modern C++ (#6271) 2022-02-03 15:57:34 +01:00
Alfredo Cardigliano
f2060f2488 Copyright update (C) 2022-01-03 09:35:09 +01:00
Simone Mainardi
4524029e1a Implements handling of ntop user ids 2021-05-13 19:27:08 +02:00
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Alfredo Cardigliano
b8cff9b5b5 Rename FifoStringsQueue to StringFifoQueue 2020-12-15 12:27:18 +01:00
Luca Deri
602f7c66ee Added ntop.setnxCache() 2020-07-02 23:20:15 +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
6e9887f384 Use in memory queue for DNS resolution
This reduces Redis pressure
2019-11-28 15:30:40 +01:00
Luca
c396ca1d25 Implemented redis address resolution optimizations by means of a bloom filter
Extended redis statistics
2019-11-09 18:41:01 +01:00
Luca
cb4771b889 Improved redis stats 2019-11-08 11:45:02 +00:00
Luca
3a0e4b13f7 Redis stats improvements 2019-11-08 09:52:11 +00:00
emanuele-f
a4be8e169f Add missing l/rpush and other redis stats 2019-11-07 17:15:16 +01:00
Luca
71532321b5 Implemented redis stats 2019-11-04 17:58:12 +01:00
emanuele-f
0d04eb2d5c Stop writing points if InfluxDB export is failing.
The dropped points are accounted and shown in the gui. Dropped points alert are generated as usual.

Fixes #2998
2019-10-24 16:09:01 +02:00
Simone Mainardi
2e67a69cb7 Implements redis health and keys used monitoring 2019-08-30 16:19:33 +02:00
Simone Mainardi
6ae30f0604 Initial implementation of the Redis monitoring probe 2019-08-28 19:30:52 +02:00
Simone Mainardi
9863cfd0ba Reworks InfluxDB export to better handle retries 2019-06-24 17:48:53 +02:00
emanuele-f
c00b350ed6 Migrate Redis cache to c++ map 2019-06-05 12:17:40 +02:00
Luca Deri
38c0341106 Fixes #2343 2019-02-11 18:57:46 +01:00
Luca Deri
bedff2c8e2 Updated (C) 2019-01-07 19:28:49 +01:00
Simone Mainardi
0fb24ef64e Fixes missing purgeIdle for inactive dynamic interfaces 2018-12-20 18:57:48 +01:00
Alfredo Cardigliano
a3a2b222de keeping track of extractions status, added getExtractionStatus lua api 2018-10-16 11:58:05 +02:00
Simone Mainardi
f30e042cfc Implements data cleanup for pcap interfaces
Implements #2092
2018-10-11 18:10:30 +02:00
Simone Mainardi
a4d2597fee Fixes HostPools JSON Parse errors by deserializing in the heap 2018-10-10 18:06:44 +02:00
Simone Mainardi
ddf49ef106 Implements remote-to-remote host alerts
Implements #2057
2018-10-10 12:16:59 +02:00
emanuele-f
4370df81e3 Remove unused HTTPBL 2018-09-27 16:14:46 +02:00
Simone Mainardi
413667f326 Uses Redis STRLEN to compute the size of deserialized local hosts and macs
Fixes #2006
2018-09-13 17:15:29 +02:00
Luca Deri
6d47e659f1 Reworked alerts
Added informative event when ntopng starts/stops
Fixed packet capture bug on ODX (and other BSD flavous)
Renamed #ifdef linux to #ifdef __linux__ to ease portabiity across architectures
2018-04-13 18:10:19 +02:00
emanuele-f
23d7a2676a Rework alerts export to provide more endpoint control 2018-04-12 18:10:45 +02:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
Simone Mainardi
705425eb0c Fixes for Redis socket connections 2018-03-07 14:38:55 +01:00
emanuele-f
140005907a Fix redis replace of existing keys 2018-01-18 22:50:09 +01:00
Simone Mainardi
43265da8b0 Makes all ntopng.pref keys persistent to file 2018-01-16 18:47:50 +01:00
Luca Deri
41b2fe440b Added check for redis version 2017-12-14 23:29:37 +01:00
Luca Deri
29b15ec6bc Implemented Redis dump/restore
Fixes for changed nDPI API
2017-09-20 00:08:16 +02:00
Simone Mainardi
190bb2fe97 Fixes possible deadlocks
A new redis instance is spawned for the trace of events. This
prevents possible deadlocks.
2017-09-15 11:49:13 +02:00
emanuele-f
42ef95548f Add a method to reset redis database 2017-09-05 13:04:46 +02:00
Simone Mainardi
7e954d636a Implements persistent preferences
User-preferences that are meant to have a life cycle that goes beyond
the single ntopng execution are now saved to a json file.
2017-07-06 19:08:20 +02:00
Bogdan Perian
90743b953a Logstash flow export extension 2017-03-25 21:09:07 +02:00
emanuele-f
cd40d43db7 Search host by custom name 2017-03-23 17:02:22 +01:00
Josh Soref
78e78c018c Fixes spellings and typos
Thank goes to
Josh Soref <jsoref@users.noreply.github.com>
2017-03-06 17:54:48 +01:00
Simone Mainardi
8bffd575f5 Fixes re-addition of a deleted user 2017-01-20 11:20:00 +01:00
emanuele-f
82f3f55104 Add redis set bindings 2017-01-17 12:56:57 +01:00
Simone Mainardi
df3a99decc Implement Host Pools 2017-01-17 11:34:57 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00