No Description

Vitaly Lavrov 56393f4e40 Fix ndpi-netfilter/INSTALL 7 months ago
doc e98108a8be Updated guide courtesy of Sudeepta Bhuyan (#62) 3 years ago
example a9bd1a4ca0 Enable debug messages 7 months ago
m4 2e5ceac844 Initial import from SVN 3 years ago
mstring 4b10824388 First public version 3 years ago
ndpi-netfilter 56393f4e40 Fix ndpi-netfilter/INSTALL 7 months ago
packages 49983c07b8 Updated formula for 1.7 release 3 years ago
src 8b7fcb531d Fix prototype errors 7 months ago
tests a3d66b0777 Fixes #83. Critical fix: due to an invalid endianess conversion some protocol were not properly indetified 3 years ago
.gitignore 2e173aca6d Making host_protocol_list[] from .yaml config files 7 months ago
.travis.yml 43bf9df219 Improved testing application 3 years ago
COPYING 2e5ceac844 Initial import from SVN 3 years ago
ChangeLog 2e5ceac844 Initial import from SVN 3 years ago
INSTALL 4b10824388 First public version 3 years ago
Makefile.am 2e5ceac844 Initial import from SVN 3 years ago
README 4b10824388 First public version 3 years ago
README.debug_message a9bd1a4ca0 Enable debug messages 7 months ago
README.md 9bb99ed01d Added acknowldgement section 3 years ago
README.nDPI d3c979aa57 Added readme containing package prerequisites 3 years ago
README.protocols 2e5ceac844 Initial import from SVN 3 years ago
autogen.sh a9bd1a4ca0 Enable debug messages 7 months ago
compile 7fc13cd1cc backport https://github.com/ntop/nDPI/pull/173 2 years ago
configure.ac a9bd1a4ca0 Enable debug messages 7 months ago
lib 2e5ceac844 Initial import from SVN 3 years ago
libndpi.pc.in 2e5ceac844 Initial import from SVN 3 years ago
libndpi.sym f3bb7fb9c2 Added misisng symbols 3 years ago

README

This directory contains a modified version of OpenDPI which
includes ntop extensions. I have tried to push them into the
OpenDPI source tree but nobody in answering emails so I have
decided to create my own source tree

==========

In order to compile this library do

# ./autogen.sh
# ./configure
# make

Please note that the pre-requisites for compilation include:
- GNU tools (autogen, automake, autoconf, libtool)
- GNU C compiler (gcc)

==========

The entire procedure of adding new protocols in detail:

1. Add new protocol together with its unique ID to:
src/include/ndpi_protocols_osdpi.h

2. Create a new protocol in:
src/lib/protocols/

3. Variables to be kept for the duration of the entire flow (as state variables) needs to be placed in:
/include/ndpi_structs.h
in ndpi_flow_tcp_struct (for TCP only), ndpi_flow_udp_struct (for UDP only), or ndpi_flow_struct (for both).

4. Add a new entry for the search function for the new protocol in:
src/include/ndpi_protocols.h

5. Choose (do not change anything) a selection bitmask from:
src/include/ndpi_define.h

6. Add a new entry in ndpi_set_protocol_detection_bitmask2 in:
src/lib/ndpi_main.c

7. Set protocol default ports in ndpi_init_protocol_defaults in:
src/lib/ndpi_main.c

8. Add the new protocol file to:
src/lib/Makefile.am

9. ./autogen.sh
10. ./configure
11. make

==========

If you want to distribute a source tar file of nDPI do:

# make dist

--------------------------
April 2015 - ntop