aboutsummaryrefslogtreecommitdiff
path: root/nDPId.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-07-17 19:32:41 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-07-17 19:32:41 +0200
commit7217b90cd1c88daf44f02c9c408ebf707cbdaec4 (patch)
treeecc75a570df4366e9bdb06477892dbf11a414092 /nDPId.c
parent74a9f7d86bfc2e538e6633665a72fa4dab8c652a (diff)
nDPId: `-v' give information about libnDPI linkage
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId.c')
-rw-r--r--nDPId.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/nDPId.c b/nDPId.c
index aa6872598..c95c92276 100644
--- a/nDPId.c
+++ b/nDPId.c
@@ -4947,11 +4947,15 @@ static void print_usage(char const * const arg0)
static void nDPId_print_deps_version(FILE * const out)
{
fprintf(out,
- "----------------------------------\n"
+ "------------------------------------------------------\n"
+#ifdef LIBNDPI_STATIC
+ "nDPI version: %s (statically linked)\n"
+#else
"nDPI version: %s\n"
+#endif
" API version: %u\n"
"pcap version: %s\n"
- "----------------------------------\n",
+ "------------------------------------------------------\n",
ndpi_revision(),
ndpi_get_api_version(),
pcap_lib_version() + strlen("libpcap version "));