nDPI/example
Nardi Ivan 56d87186f7 Fix compilation with --enable-debug-messages flag
NDPI_LOG* macros dereference ndpi_detection_module_struct object which is
private to ndpi library (via NDPI_LIB_COMPILATION define). So we can't use
them outside the library itself, i.e. in ndpiReader code
Therefore, in files in example/, convert all (rare) uses of NDPI_LOG* macros
to a new very simple macro, private to ndpiReader program. If necessary,
such macro may be improved.

According to a comment in ndpi_define.h, each dissector must define its own
NDPI_CURRENT_PROTO macro before including ndpi_api.h file
2020-06-26 12:04:02 +02:00
..
MacOS Fix the Xcode project 2019-05-15 09:56:10 +08:00
Win32 Update pcapExample.vcxproj.filters 2015-05-15 02:52:28 +02:00
categories.txt Add categories test PCAP 2019-09-27 10:15:20 +02:00
intrusion_detection.c Added checks for DGA detection 2020-06-17 19:46:37 +02:00
intrusion_detection.h Code improvements 2020-02-04 22:31:02 +01:00
Makefile.dpdk.in Added intrusion_detection.c in DPDK makefile 2019-12-16 17:56:08 +01:00
Makefile.in ndpiSimpleIntegration: added another integration example 2020-06-24 22:03:18 +02:00
mining_hosts.txt Implemented custom category loading. 2018-04-26 21:10:59 +02:00
ndpi2timeline.py Implemented nDPI timeline visualizer 2019-12-15 23:35:43 +01:00
ndpiReader.c Fixed harmless memory leak in extcap initialization 2020-06-25 18:02:03 +02:00
ndpiSimpleIntegration.c Compilation fixes for non-Linux (or outdated Linux) platforms 2020-06-25 10:25:24 +02:00
protos.txt Introduced custom protocols with IP and (optional) port support 2020-05-06 12:51:44 +02:00
reader_util.c Fix compilation with --enable-debug-messages flag 2020-06-26 12:04:02 +02:00
reader_util.h Fix compilation with --enable-debug-messages flag 2020-06-26 12:04:02 +02:00
README.DPDK Added DPDK support to ndpiReader 2018-11-10 16:10:22 +01:00
uthash.h Added port stats when verbose mode (-v) is used 2017-04-19 23:31:45 +02:00

Prerequisites
-------------

You need to install and compile DPDK in your HOME directory as explained in
See http://core.dpdk.org/doc/quick-start/ for DPDK installation and setup

Once DPDK is built make sure to create a symbolic link

$ cd
$ ln -s dpdk-18.08 DPDK

so the build process will use the DPDK directory letting you have multiple
DPDK versions available on your system


Build
-----
Everything will happen automagically but if you want to do it by hand
do: make -f Makefile.dpdk


Run Application
---------------
Supposing to capture packets from device eno1 you can start the
application as follows:

sudo ./build/ndpiReader -c 1 --vdev=net_pcap0,iface=eno1 -- -v 1

NOTE:
- ndpiReader without DPDK support sits in this directory
- ndpiReader with DPDK support can be found inside the ./build directory