diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-07-07 14:43:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 14:43:32 +0200 |
commit | db707e0829d29f7aed6d2a5848706600ca8ff971 (patch) | |
tree | 18028e1c8eba670d61304ae13a49835bc48ce139 /src/include | |
parent | 540326f3ffcc3126a1db3811464046ac7e061157 (diff) | |
parent | 030f3f3d48184133a6647108c156787fb3f39b58 (diff) |
Merge pull request #932 from IvanNardi/log
Log
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_api.h.in | 1 | ||||
-rw-r--r-- | src/include/ndpi_define.h.in | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index ed94c5bf3..865ddc8dd 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -844,6 +844,7 @@ extern "C" { u_int ndpi_get_ndpi_num_custom_protocols(struct ndpi_detection_module_struct *ndpi_mod); u_int ndpi_get_ndpi_detection_module_size(void); void ndpi_set_log_level(struct ndpi_detection_module_struct *ndpi_mod, u_int l); + void ndpi_set_debug_bitmask(struct ndpi_detection_module_struct *ndpi_mod, NDPI_PROTOCOL_BITMASK debug_bitmask); /* LRU cache */ struct ndpi_lru_cache* ndpi_lru_cache_init(u_int32_t num_entries); diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in index 13989a60e..5add2e1c8 100644 --- a/src/include/ndpi_define.h.in +++ b/src/include/ndpi_define.h.in @@ -179,6 +179,8 @@ #define NDPI_JABBER_FT_TIMEOUT 5 #define NDPI_SOULSEEK_CONNECTION_IP_TICK_TIMEOUT 600 +#include "ndpi_config.h" /* To have access to NDPI_ENABLE_DEBUG_MESSAGES */ + #ifdef NDPI_ENABLE_DEBUG_MESSAGES #define NDPI_LOG(proto, m, log_level, args...) \ { \ @@ -196,7 +198,7 @@ */ #ifndef NDPI_CURRENT_PROTO - #define NDPI_CURRENT_PROTO NDPI_PROTO_UNKNOWN + #define NDPI_CURRENT_PROTO NDPI_PROTOCOL_UNKNOWN #endif #define NDPI_LOG_ERR(mod, args...) \ |