summaryrefslogtreecommitdiff
path: root/nDPId-test.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-09-06 14:50:46 +0200
committerToni Uhlig <matzeton@googlemail.com>2022-09-06 14:50:46 +0200
commitf9bd7d29ced8e596aeaab2258bc7f56f14521a2e (patch)
treeddd578b6edcaa2a80847433522f2f32197191622 /nDPId-test.c
parentc5c7d83c97620c9bae7939b21d46a1458291ebf6 (diff)
Bump libnDPI to 37f918322c0a489b5143a987c8f1a44a6f78a6f3 and updated flow 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>
Diffstat (limited to 'nDPId-test.c')
-rw-r--r--nDPId-test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nDPId-test.c b/nDPId-test.c
index da152f17f..48cf6e003 100644
--- a/nDPId-test.c
+++ b/nDPId-test.c
@@ -1076,6 +1076,13 @@ int main(int argc, char ** argv)
nDPId_return.total_active_flows != nDPId_return.total_idle_flows)
{
logger(1, "%s: %s", argv[0], "Memory / Flow leak detected.");
+ logger(1, "%s: Allocated / Free'd bytes: %lu / %lu", argv[0], ndpi_memory_alloc_bytes, ndpi_memory_free_bytes);
+ logger(1, "%s: Allocated / Free'd count: %lu / %lu", argv[0], ndpi_memory_alloc_count, ndpi_memory_free_count);
+ logger(1,
+ "%s: Total Active / Idle Flows: %llu / %llu",
+ argv[0],
+ nDPId_return.total_active_flows,
+ nDPId_return.total_idle_flows);
return 1;
}