aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/Makefile.in9
-rw-r--r--example/reader_util.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/example/Makefile.in b/example/Makefile.in
index 225e5681c..486087521 100644
--- a/example/Makefile.in
+++ b/example/Makefile.in
@@ -1,8 +1,11 @@
CC=@CC@
CXX=@CXX@
-CFLAGS=-g -I../src/include @CFLAGS@
-LIBNDPI=../src/lib/libndpi.a
+SRCHOME=../src
+CFLAGS=-g -I$(SRCHOME)/include @CFLAGS@
+LIBNDPI=$(SRCHOME)/lib/libndpi.a
LDFLAGS=$(LIBNDPI) @PCAP_LIB@ -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
PREFIX?=@prefix@
@@ -27,7 +30,7 @@ dpdk:
make -f Makefile.dpdk
check:
- cppcheck --template='{file}:{line}:{severity}:{message}' --quiet --enable=all --force -I../src/include *.c
+ cppcheck --template='{file}:{line}:{severity}:{message}' --quiet --enable=all --force -I$(SRCHOME)/include *.c
clean:
/bin/rm -f *.o ndpiReader ndpiReader.dpdk
diff --git a/example/reader_util.h b/example/reader_util.h
index 55c260a54..c3d2caa72 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -188,7 +188,7 @@ typedef struct ndpi_flow_info {
struct ndpi_analyze_struct *iat_c_to_s, *iat_s_to_c, *iat_flow,
*pktlen_c_to_s, *pktlen_s_to_c;
- char info[96];
+ char info[160];
char host_server_name[256];
char bittorent_hash[41];
char dhcp_fingerprint[48];