mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-01 18:57:48 +00:00
Removed API version macro check as it's inconsistent on different platforms.
* set min required nDPI version to 4.9.0 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -317,9 +317,9 @@ if(STATIC_LIBNDPI_INSTALLDIR OR BUILD_NDPI)
|
|||||||
unset(pkgcfg_lib_NDPI_ndpi CACHE)
|
unset(pkgcfg_lib_NDPI_ndpi CACHE)
|
||||||
else()
|
else()
|
||||||
if(NOT NDPI_NO_PKGCONFIG)
|
if(NOT NDPI_NO_PKGCONFIG)
|
||||||
pkg_check_modules(NDPI REQUIRED libndpi>=5.0.0)
|
pkg_check_modules(NDPI REQUIRED libndpi>=4.9.0)
|
||||||
if(NOT pkgcfg_lib_NDPI_ndpi)
|
if(NOT pkgcfg_lib_NDPI_ndpi)
|
||||||
find_package(NDPI "5.0.0" REQUIRED)
|
find_package(NDPI "4.9.0" REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
unset(STATIC_LIBNDPI_INC CACHE)
|
unset(STATIC_LIBNDPI_INC CACHE)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ The purpose of this software is not to spy on others, but to detect network anom
|
|||||||
# Abstract
|
# Abstract
|
||||||
|
|
||||||
nDPId is a set of daemons and tools to capture, process and classify network traffic.
|
nDPId is a set of daemons and tools to capture, process and classify network traffic.
|
||||||
Its minimal dependencies (besides a half-way modern C library and POSIX threads) are libnDPI (>=5.0.0 or current github dev branch) and libpcap.
|
Its minimal dependencies (besides a half-way modern C library and POSIX threads) are libnDPI (>=4.9.0 or current github dev branch) and libpcap.
|
||||||
|
|
||||||
The daemon `nDPId` is capable of multithreading for packet processing, but w/o mutexes for performance reasons.
|
The daemon `nDPId` is capable of multithreading for packet processing, but w/o mutexes for performance reasons.
|
||||||
Instead, synchronization is achieved by a packet distribution mechanism.
|
Instead, synchronization is achieved by a packet distribution mechanism.
|
||||||
|
|||||||
6
nDPId.c
6
nDPId.c
@@ -54,10 +54,10 @@
|
|||||||
#define DLT_DSA_TAG_EDSA 285
|
#define DLT_DSA_TAG_EDSA 285
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NDPI_VERSION_CHECK ((NDPI_MAJOR == 5 && NDPI_MINOR < 0) || NDPI_MAJOR < 5)
|
#define NDPI_VERSION_CHECK ((NDPI_MAJOR == 4 && NDPI_MINOR < 9) || NDPI_MAJOR < 4)
|
||||||
|
|
||||||
#if NDPI_VERSION_CHECK && NDPI_API_VERSION < 10172
|
#if NDPI_VERSION_CHECK
|
||||||
#error "nDPI >= 5.0.0 or API version >= 10172 required"
|
#error "nDPI >= 4.9.0 required"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if nDPId_MAX_READER_THREADS <= 0
|
#if nDPId_MAX_READER_THREADS <= 0
|
||||||
|
|||||||
Reference in New Issue
Block a user