diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-08-22 16:30:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 16:30:29 +0200 |
commit | 519ba7a9d5d97c7bcc2c4270617b8d11afc45d8e (patch) | |
tree | 86d33ea644de44046f487ed3e60534ddd9f11890 /example | |
parent | fef199ad450d451d88d143d395dfcfd7906deefc (diff) | |
parent | b23cfd6b8444ec44dcc1b349ed0ee0659df8447d (diff) |
Merge pull request #989 from IvanNardi/quic
Improve QUIC detection
Diffstat (limited to 'example')
-rw-r--r-- | example/Makefile.in | 2 | ||||
-rw-r--r-- | example/ndpiReader.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/example/Makefile.in b/example/Makefile.in index df7885166..32e36677d 100644 --- a/example/Makefile.in +++ b/example/Makefile.in @@ -3,7 +3,7 @@ CXX=@CXX@ SRCHOME=../src CFLAGS=-g -fPIC -DPIC -I$(SRCHOME)/include @CFLAGS@ LIBNDPI=$(SRCHOME)/lib/libndpi.a -LDFLAGS=$(LIBNDPI) @PCAP_LIB@ @ADDITIONAL_LIBS@ -lpthread -lm @LDFLAGS@ +LDFLAGS=$(LIBNDPI) @PCAP_LIB@ @LIBS@ @ADDITIONAL_LIBS@ -lpthread -lm @LDFLAGS@ HEADERS=intrusion_detection.h reader_util.h $(SRCHOME)/include/ndpi_api.h \ $(SRCHOME)/include/ndpi_typedefs.h $(SRCHOME)/include/ndpi_protocol_ids.h OBJS=ndpiReader.o reader_util.o intrusion_detection.o diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 5202c8b78..ed56c2114 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3699,6 +3699,10 @@ int orginal_main(int argc, char **argv) { "------------------------------------------------------------\n\n"); printf("Using nDPI (%s) [%d thread(s)]\n", ndpi_revision(), num_threads); + + const char *gcrypt_ver = ndpi_get_gcrypt_version(); + if(gcrypt_ver) + printf("Using libgcrypt version %s\n", gcrypt_ver); } signal(SIGINT, sigproc); |