aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* nDPId-test: Force collector blocking mode.Toni Uhlig2022-09-25
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Refactored client distributor C API.Toni Uhlig2022-09-25
| | | | | | | | | | | * Still not perfect, but the code before was not even able to deal with JSON arrays. Use common "speaking" function names for all functions in nDPIsrvd.h * Provide a more or less generic and easy extendable JSON walk function. * Modified C examples to align with the changed C API. * c-collectd: Reduced lot's of code duplication by providing mapping tables. * nDPId: IAT array requires one slot less (first packet has always an IAT of 0). Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd.h: Fixed bug during token parsing/hashing. Do not hash array contents.Toni Uhlig2022-09-23
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Improved flown analyse event:Toni Uhlig2022-09-22
| | | | | | | | * store packet directions * merged direction based IATs * merged direction based PKTLENs Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* flow-info.py: Command line arguments --no-color, --no-statusbar (both useful ↵Toni Uhlig2022-09-22
| | | | | | | | for tests/CI) and --print-analyse-results. * run_tests.sh: Use flow-info.py for additional DIFF tests. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Merge branch 'main' of github.com:utoni/nDPIdToni Uhlig2022-09-19
|\
| * Improve READMEDamiano Verzulli2022-09-19
| | | | | | | | | | | | | | - link to already-existing JSON-schemas have been added - a graphical schema detailing flow-events timeline have been added in both PNG and source-Drawio formats. Link to PNG have been included in the README
* | nDPId: Reduced flow-updates for TCP flows to 1/4 of the timeout value.Toni Uhlig2022-09-19
|/ | | | | | | | | | | | * nDPId: Fixed broken validation tests. * nDPId: Removed TICK_RESOLUTION, not required anymore. * c-collectd: Improved total layer4 payload calculation/update handling. * c-collectd: Updated RRD Graph script according to total layer4 payload changes. * py-flow-info.py: Fixed several bugs and syntax errors. * Python scripts: Added dirname(argv[0]) as search path for nDPIsrvd.py. * nDPIsrvd&nDPId-test: Fixed missing EPOLLERR check. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Added layer4 payload length bins.Toni Uhlig2022-09-19
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* bump libnDPI to 174cd739dbb1358ab012c4779e42e0221bef835cToni Uhlig2022-09-18
| | | | | | | * ReadMe stuff * OpenWrt Makefile: set NEED_LINKING_AGAINST_LIBM=ON Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Add -Werror to OpenWrt package TARGET_CFLAGS.Toni Uhlig2022-09-17
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Provide thread sync via locking on architectures that do not support ↵Toni Uhlig2022-09-17
| | | | | | Compare&Swap. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Add OpenWrt CI via Github Actions.Toni Uhlig2022-09-17
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Fixed last pkt time.lns2022-09-14
| | | | Signed-off-by: lns <matzeton@googlemail.com>
* New flow event: 'analysis'.Toni Uhlig2022-09-13
| | | | | | | | | * The goal was to provide a separate event for extracted feature that are not required and only useful for a few (e.g. someone who wants do ML). * Increased network buffer size to 32kB (8192 * 4). * Switched timestamp precision from ms to us for *ALL* timestamps. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* OpenWrt packaging support.Toni Uhlig2022-09-13
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd-collectd: Stdout should be unbuffered.Toni Uhlig2022-09-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd-collectd: RRD Graph generation script and a basic static HTML5 ↵Toni Uhlig2022-09-12
| | | | | | website for viewing the generated image files. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Use CMake XCompile and collect host-triplet from ${CC}.Toni Uhlig2022-09-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPId: Removed thread_id nonsense as it does not provide any useful ↵Toni Uhlig2022-09-10
| | | | | | | | information and is not portable at all, not even on Linux systems .. * nDPId: Removed blocking I/O warning, which causes logspams.. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* include fixToni Uhlig2022-09-10
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Fixed compilation warnings on linux32 platforms.Toni Uhlig2022-09-10
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Do not use pthread_t as numeric value. Some systems define pthread_t as struct *Toni Uhlig2022-09-10
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd: Fixed NUL pointer deref during logging attempt.Toni Uhlig2022-09-10
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* CI: fix minimum supported libnDPI versionToni Uhlig2022-09-06
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Bump libnDPI to 37f918322c0a489b5143a987c8f1a44a6f78a6f3 and updated flow ↵Toni Uhlig2022-09-06
| | | | | | | | | json schema file. * export env vars AR / CMAKE_C_COMPILER_AR and RANLIB / CMAKE_C_COMPILER_RANLIB while building libnDPI * nDPId check API version during startup (macro vs. function call) and print a warning if they are different Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Added https://gitlab.com/verzulli/ndpid-rt-analyzer.git to examples.Toni Uhlig2022-09-06
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Merge branch 'main' of github.com:utoni/nDPIdToni Uhlig2022-09-04
|\
| * nDPId: Fixed fcntl() issue; invalid fcntl() set after a blocking-write.lns2022-08-29
| | | | | | | | | | | | | | * nDPId: imrpvoed collector socket error messages on connect/write/etc failures * reverted `netcat` parts of the README Signed-off-by: lns <matzeton@googlemail.com>
| * Add documentation about events and flow states.lns2022-08-27
| | | | | | | | Signed-off-by: lns <matzeton@googlemail.com>
| * nDPId: improved error messages if UNIX/UDP endpoint refuses ↵lns2022-08-27
| | | | | | | | | | | | connections/datagrams Signed-off-by: lns <matzeton@googlemail.com>
| * nDPId: support for custom UDP endpointsToni Uhlig2022-08-27
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
| * nDPId: improved error messages if UNIX/UDP endpoint refuses ↵lns2022-08-27
| | | | | | | | | | | | connections/datagrams Signed-off-by: lns <matzeton@googlemail.com>
| * nDPId: support for custom UDP endpointsToni Uhlig2022-08-27
| | | | | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* | Disable timestamp generation in nDPIsrvd-collectd as default.Toni Uhlig2022-09-04
|/ | | | | | * collectd's rrdtool write plugin does silently fail with those ones (dunno why) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Split `*_l4_payload_len' into `*_src_l4_payload_len' and `*_dst_l4_payload_len'.Toni Uhlig2022-08-15
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Split `flow_packets_processed' into `flow_src_packets_processed' and ↵lns2022-08-15
| | | | | | | | | `flow_dst_packets_processed'. * no use for `flow_avg_l4_payload_len' -> removed * test/run_tests.sh does not fail if git-worktree's are used Signed-off-by: lns <matzeton@googlemail.com>
* c-collectd: fixed incorrect PUTVALToni Uhlig2022-08-15
| | | | | | * get rid of types.db Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Merge pull request #2 from verzulli/mainToni2022-08-12
|\ | | | | Improved README.
| * Improve READMEDamiano Verzulli2022-08-12
|/ | | | | | | | - slightly improve the README to better enhance the streaming capability of `nDPId`, regardless of `nDPIsrvd` - add a screencast showing the install step and the `nDPId` usage, alone (with ncat as unix-socket listener) - add "build" to .gitignore
* Do not SIGSEGV if a subopt has no value.lns2022-08-08
| | | | Signed-off-by: lns <matzeton@googlemail.com>
* Replaced outdated nDPI version info with the correct one.Toni Uhlig2022-07-14
| | | | | | * add CI job to verify the lowest known-to-work-libnDPI-version Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* c-collectd: fixed possible undefined behaviorToni Uhlig2022-07-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* bump libnDPI to 7c19de49047a5731f3107ff17854e9afe839cc61Toni Uhlig2022-07-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Github Actions: Renamed branch 'master' to 'main'.Toni Uhlig2022-07-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* README updateToni Uhlig2022-07-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* bump libnDPI to 8f6a006e36eef0ae386f7e663d3ebecfad6a2dc9Toni Uhlig2022-07-01
| | | | | | | * try to use same wording wherever possible e.g. renamed workflow->total_l4_data_len to workflow->total_l4_payload_len Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* bump libnDPI to c287eb835b537ce64d9293a52ca13e670b6d3b0dToni Uhlig2022-06-19
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* py-flow-dashboard: Improved graph axis scaling.lns2022-06-16
| | | | Signed-off-by: lns <matzeton@googlemail.com>
* CMake: do not add /usr/include/ndpi to include dirs if BUILD_NDPI or ↵lns2022-06-10
| | | | | | | | | STATIC_LIBNDPI_INSTALLDIR used. * c-collectd: fixed memory leak on failure * py-flow-info.py: fancy spinners and stats counting improved Signed-off-by: lns <matzeton@googlemail.com>