1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 13:22:36 +01:00
Commit Graph

258 Commits

Author SHA1 Message Date
Pavel Odintsov
be6af07f55 If we use small ban time we should reduce ban_list_cleanup wake up timeout to ban_time / 2. 2015-03-09 17:35:06 +03:00
Pavel Odintsov
51ff074b3f Remove old log message about 'I need few seconds for collecting data' 2015-03-03 17:17:24 +03:00
Pavel Odintsov
e1be44ec6c Add code for very fast top10 list generation 2015-02-21 17:23:22 +03:00
Pavel Odintsov
07f0317ab6 Fix issue with memory corruption 2015-02-18 22:31:55 +03:00
Pavel Odintsov
6c67dd103f We add sanity checks for negative index in subnet array. Closes #94 2015-02-14 14:01:43 +03:00
Pavel Odintsov
dac570295d Biggest refactoring ever have just finished! Core PF_RING moved to plugin 2015-02-03 22:55:44 +03:00
Pavel Odintsov
cd67aa4c49 Add number of packets and sampling ratio to packet printer 2015-02-03 17:02:54 +03:00
Pavel Odintsov
6a47db2547 Remove useless logging to console 2015-02-03 16:31:28 +03:00
Pavel Odintsov
7d2d20a285 Add newline for error 2015-02-01 16:02:30 +03:00
Pavel Odintsov
0c457206e8 Fix APi changes in PF_RING.Fixes: #107 2015-01-30 23:12:12 +03:00
Pavel Odintsov
d6bb41bedc Provide ability to skip outgoing or incoming traffic precessing competely. Closes: #63 2015-01-28 10:49:12 +03:00
Pavel Odintsov
927bbe22d0 Fix pow and type overload issue:
/usr/local/src/fastnetmon/fastnetmon.cpp:940: error: call of overloaded 'pow(int, int)' is ambiguous
/usr/include/math.h:210: note: candidates are: double pow(double, double)
/usr/include/c++/4.2/cmath:373: note:                 long double std::pow(long double, int)
/usr/include/c++/4.2/cmath:369: note:                 float std::pow(float, int)
/usr/include/c++/4.2/cmath:365: note:                 double std::pow(double, int)
/usr/include/c++/4.2/cmath:361: note:                 long double std::pow(long double, long double)
/usr/include/c++/4.2/cmath:357: note:                 float std::pow(float, float)
2015-01-27 23:00:44 +03:00
Pavel Odintsov
48fbdd5781 Do not use using namespace std anymore 2015-01-27 22:29:51 +03:00
Pavel Odintsov
daf2f1d820 We implemented complete PCAP support in separate plugin. Please be aware! It's very slow! Closes #100 2015-01-27 12:56:16 +03:00
Pavel Odintsov
d3e2ff1d58 Because we use sflow/netflow we should switch to average counetrs completely. Closes #67 2015-01-26 16:10:25 +03:00
Pavel Odintsov
ec393a51c2 Add stub code for creating new plugins 2015-01-26 12:10:35 +03:00
Pavel Odintsov
dad0d7f89e And one typo :( 2015-01-26 11:19:34 +03:00
Pavel Odintsov
e7c926be2d Fix typo in variable name 2015-01-26 11:16:58 +03:00
Pavel Odintsov
42f87c3555 Unify code for processing sflow/mirror and netflow on unified way 2015-01-26 11:09:03 +03:00
Pavel Odintsov
3134a71682 Introduce beta version of netflow plugin 2015-01-23 19:49:37 +03:00
Pavel Odintsov
55a35b7b33 Some fixes for netflow integration in main tool 2015-01-23 19:37:23 +03:00
Pavel Odintsov
c22168f059 Fix align 2015-01-23 18:27:49 +03:00
Pavel Odintsov
f62c19d80b Add debug for catching issue 'We tried to access outsize allocated vector' 2015-01-23 12:54:41 +03:00
Pavel Odintsov
beacb61cf0 Sanity check for befor call of __sync_fetch_and_add 2015-01-22 19:24:36 +03:00
Pavel Odintsov
4b6d1f69c7 Do not complay about PF_RING problems when it disabled; Closes #91 2015-01-22 18:55:59 +03:00
Pavel Odintsov
5715e4e41b Add logging for plugins; Closes #91 2015-01-22 18:51:04 +03:00
Pavel Odintsov
b7b65f06cc Add ability for compile on FreeBSD (and another non Linux systems) 2015-01-10 01:43:23 +03:00
Pavel Odintsov
03992f5a19 Add logging of call of external script 2014-12-26 11:57:30 +03:00
Pavel Odintsov
98082a46d7 Separate fastnetmon into two tools: lient and server 2014-12-22 18:39:46 +03:00
Pavel Odintsov
db4e929d30 Add ability to disable curses interface 2014-12-22 17:00:41 +03:00
Pavel Odintsov
bb63906558 Enable dump of programm screen into file for separating client and server side 2014-12-21 14:52:22 +03:00
Pavel Odintsov
fac08d5df8 Add check for ZC license 2014-12-21 01:03:00 +03:00
Pavel Odintsov
98c954bd7d Add ability to notify user about demo ZC license 2014-12-21 00:27:26 +03:00
Pavel Odintsov
288e669e2f Replace monkey code to brand new pfring_get_max_packet_size from PF_RING 6.0.3 2014-12-20 22:28:18 +03:00
Pavel Odintsov
df37f691dc add comments 2014-12-19 18:55:43 +03:00
Pavel Odintsov
caa348276e Add mutex for ban_list_details for collection packets in multiple threads; Switch from switch to multiple if for nicer code; Fix division by zero in PF_RING ZC counters; Disable flow collection when flow tracking disabled; 2014-12-19 18:50:00 +03:00
Pavel Odintsov
4669272e2d Add detailed stats for PF_RING ZC mode 2014-12-19 17:35:38 +03:00
Pavel Odintsov
03cbbbdb94 Fix gcc varning about type conversion 2014-12-19 16:14:54 +03:00
Pavel Odintsov
db79ff2a14 Add ability to enable/disable ZC mode with configuation key 2014-12-19 15:56:54 +03:00
Pavel Odintsov
2e51e37b13 Replace patricia_search_best by direct call of patricia_search_best2 2014-12-19 15:48:58 +03:00
Pavel Odintsov
46ccdca272 Fix ugly memory leak in regex parser; Introduce error log level for all 'not ok' messages 2014-12-19 11:43:22 +03:00
Pavel Odintsov
0ab7054fdf Switch to thread safe __sync_fetch_and_add instead increment 2014-12-18 18:30:10 +03:00
Pavel Odintsov
2d6d497cfa Migration to 64bit counters; Fix very ugly big with check_period; Add shift for 500ms for draw thread; 2014-12-16 17:20:04 +03:00
Pavel Odintsov
4e50e76614 Stats refactoring; Add speed recalculation time; 2014-12-16 14:59:24 +03:00
Pavel Odintsov
288e7ebeee Thank to clang! I will never find this bug without it 2014-12-16 14:08:50 +03:00
Pavel Odintsov
ea65c8504b Fix ugly bug with memory corruption 2014-12-16 13:56:08 +03:00
Pavel Odintsov
083a52ffc6 Introduce complete PF_RING ZC API with balancer; Remove mutexes for total counters; Optimize ban table lookup code; 2014-12-16 04:22:51 +03:00
Pavel Odintsov
548947c69f Wokring PF_RING ZC Native API 2014-12-15 22:08:39 +03:00
Pavel Odintsov
350c0f9961 Add stub for PF_RING native ZC API 2014-12-15 19:24:51 +03:00
Pavel Odintsov
a5a576b2fa Add ability to check number of CPU cores 2014-12-13 16:06:03 +03:00