aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorVitaly Lavrov <vel21ripn@gmail.com>2018-02-07 16:05:51 +0300
committerVitaly Lavrov <vel21ripn@gmail.com>2018-02-07 16:31:35 +0300
commit0624afd422b7fbdd2b481a299ac9bf62fa9ec706 (patch)
treeee08225837108d2d5f34f73cbbb1ca971ee73fe9 /src/lib/protocols
parentea74d87fd8b386228cd222b7f880b3c96d9b5a67 (diff)
Added option --enable-debug-messages.
The configurator option "--enable-debug-messages" is added to enable debug information output (define NDPI_ENABLE_DEBUG_MESSAGES=1). Mandatory inclusion of the file ndpi_config.h in all the compiled files.
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--[-rwxr-xr-x]src/lib/protocols/checkmk.c8
-rw-r--r--src/lib/protocols/non_tcp_udp.c4
-rw-r--r--src/lib/protocols/openft.c2
3 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/protocols/checkmk.c b/src/lib/protocols/checkmk.c
index 50a92c8d5..81ac543b6 100755..100644
--- a/src/lib/protocols/checkmk.c
+++ b/src/lib/protocols/checkmk.c
@@ -21,11 +21,15 @@
*
*
*/
-
-#include "ndpi_protocols.h"
+#include "ndpi_protocol_ids.h"
#ifdef NDPI_PROTOCOL_CHECKMK
+#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_CHECKMK
+
+#include "ndpi_api.h"
+
+
static void ndpi_int_checkmk_add_connection(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow)
{
diff --git a/src/lib/protocols/non_tcp_udp.c b/src/lib/protocols/non_tcp_udp.c
index fa3163e74..a2e0d81f5 100644
--- a/src/lib/protocols/non_tcp_udp.c
+++ b/src/lib/protocols/non_tcp_udp.c
@@ -23,10 +23,12 @@
*/
-#include "ndpi_protocols.h"
+#include "ndpi_protocol_ids.h"
#if defined(NDPI_PROTOCOL_IP_IPSEC) || defined(NDPI_PROTOCOL_IP_GRE) || defined(NDPI_PROTOCOL_IP_ICMP) || defined(NDPI_PROTOCOL_IP_IGMP) || defined(NDPI_PROTOCOL_IP_EGP) || defined(NDPI_PROTOCOL_IP_SCTP) || defined(NDPI_PROTOCOL_IP_OSPF) || defined(NDPI_PROTOCOL_IP_IP_IN_IP)
+#include "ndpi_api.h"
+
#define set_protocol_and_bmask(nprot) \
{ \
if (NDPI_COMPARE_PROTOCOL_TO_BITMASK(ndpi_struct->detection_bitmask,nprot) != 0) \
diff --git a/src/lib/protocols/openft.c b/src/lib/protocols/openft.c
index 4a86a067f..d0b50c8a2 100644
--- a/src/lib/protocols/openft.c
+++ b/src/lib/protocols/openft.c
@@ -28,7 +28,7 @@
#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_OPENFT
-#include "ndpi_protocols.h"
+#include "ndpi_api.h"
static void ndpi_int_openft_add_connection(struct ndpi_detection_module_struct
*ndpi_struct, struct ndpi_flow_struct *flow)