aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_classify.c
Commit message (Collapse)AuthorAge
* Fix some warnings reported by CODESonar (#2227)Ivan Nardi2024-01-12
| | | | | | | | | | | | | | | | | | | Remove some unreached/duplicated code. Add error checking for `atoi()` calls. About `isdigit()` and similar functions. The warning reported is: ``` Negative Character Value help isdigit() is invoked here with an argument of signed type char, but only has defined behavior for int arguments that are either representable as unsigned char or equal to the value of macro EOF(-1). Casting the argument to unsigned char will avoid the undefined behavior. In a number of libc implementations, isdigit() is implemented using lookup tables (arrays): passing in a negative value can result in a read underrun. ``` Switching to our macros fix that. Add a check to `check_symbols.sh` to avoid using the original functions from libc.
* Implements ndpi_pearson_correlation for measuring how correlated are two seriesLuca Deri2023-12-27
|
* Added printf/fprintf replacement for some internal modules. (#1974)Toni2023-09-26
| | | | | | * logging is instead redirected to `ndpi_debug_printf` Signed-off-by: lns <matzeton@googlemail.com> Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fuzz: extend coverage (#2073)Ivan Nardi2023-08-20
|
* Set _DEFAULT_SOURCE and _GNU_SOURCE globally. (#2010)Toni2023-06-12
| | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fuzz: extend fuzzers coverage (#1952)Ivan Nardi2023-04-25
|
* Fix some errors found by oss-fuzz (#1834)Ivan Nardi2022-12-20
|
* Removed gettimeofday as win files has located in windows/src/Luca Deri2022-10-14
|
* Windows changesLuca Deri2022-10-06
|
* Fix ndpi_timeval_to_milliseconds/microseconds for platforms with tv_usec is ↵Toni2022-10-02
| | | | | | | | | an unsigned int. (#1762) * implicit conversion to an 32 bit unsigned int leads to an overflow Signed-off-by: Toni Uhlig <matzeton@googlemail.com> Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Fix broken ndpi_timeval_to_(milli|micro)seconds (>UINT_MAX). (#1720)Toni2022-09-04
| | | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com> Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Fixed msys2 build warnings and re-activated CI Mingw64 build.fix/windows-msys2Toni Uhlig2022-04-14
| | | | | | | * Removed Visual Studio leftovers. Maintaining an autotools project with VS integration requires some additional overhead. Signed-off-by: Toni Uhlig <matzeton@googlemail.com> Signed-off-by: lns <matzeton@googlemail.com>
* Fixed Mingw64 build, SonerCloud-CI and more. (#1273)Toni2021-08-18
| | | | | | | | | | | | | * Added ARM build and unit test run for SonarCloud-CI. Signed-off-by: Toni Uhlig <matzeton@googlemail.com> * Fixed Mingw64 build. * adapted to SonarCloud-CI workflow * removed broken and incomplete Windows example (tested on VS2017/VS2019) * removed unnecessary include (e.g. pthread.h for the library which does not make use of it) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Fixed shlib xcompile for x86_64-w64-mingw32Toni Uhlig2020-09-08
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* OpenBSD: Introduce pkt_timeval to deal with (bpf_)_timevalAdrian Zgorzałek2020-08-09
| | | | | | Some BSD APIs called in example/ return `struct bpf_timeval`, where nDPI APIs expect `struct timeval`. These two structs, besides having a different name, share the exact same set of fields.
* Minor fixesLuca Deri2020-01-21
|
* Win fixesLuca Deri2019-12-14
|
* Code cleanupLuca Deri2019-10-02
|
* Manual merge of pull #769Luca Deri2019-10-02
|
* Fix crash due to recent code changes when using hyperscan and mining_hosts.Ravi Kerur2019-10-02
| | | | Signed-off-by: Ravi Kerur <ravi.kerur@viasat.com>
* Restore protocol extraction to original method.Ravi Kerur2019-09-21
| | | | | | Add microseconds to time series if milliseconds returns 0. Signed-off-by: Ravi Kerur <ravi.kerur@viasat.com>
* Initial work towards traffic classificationLuca2019-08-27
|
* Warnign fixLuca Deri2019-07-24
|
* Simplified makefileLuca Deri2019-07-23
| | | | Fixed warning
* Add SPLT and BD classification to the lib.Ravi Kerur2019-07-23
Signed-off-by: Ravi Kerur <ravi.kerur@viasat.com>