Added DPDK support to ndpiReader

This commit is contained in:
Luca Deri
2018-11-10 16:10:22 +01:00
parent 6d929bf4cc
commit 71b2c19cf2
7 changed files with 242 additions and 34 deletions
+4 -1
View File
@@ -5,7 +5,7 @@ LDFLAGS=$(LIBNDPI) -lpcap -lpthread @LDFLAGS@
OBJS=ndpiReader.o ndpi_util.o
PREFIX?=/usr/local
all: ndpiReader
all: ndpiReader @DPDK_TARGET@
ndpiReader: $(OBJS) $(LIBNDPI)
$(CXX) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS)
@@ -16,6 +16,9 @@ ndpiReader: $(OBJS) $(LIBNDPI)
install:
cp ndpiReader $(DESTDIR)$(PREFIX)/bin
dpdk:
make -f Makefile.dpdk
clean:
/bin/rm -f *.o ndpiReader