Add protocol disabling feature (#1808)

The application may enable only some protocols.
Disabling a protocol means:
*) don't register/use the protocol dissector code (if any)
*) disable classification by-port for such a protocol
*) disable string matchings for domains/certificates involving this protocol
*) disable subprotocol registration (if any)

This feature can be tested with `ndpiReader -B list_of_protocols_to_disable`.

Custom protocols are always enabled.

Technically speaking, this commit doesn't introduce any API/ABI
incompatibility. However, calling `ndpi_set_protocol_detection_bitmask2()`
is now mandatory, just after having called `ndpi_init_detection_module()`.

Most of the diffs (and all the diffs in `/src/lib/protocols/`) are due to
the removing of some function parameters.

Fix the low level macro `NDPI_LOG`. This issue hasn't been detected
sooner simply because almost all the code uses only the helpers `NDPI_LOG_*`
This commit is contained in:
Ivan Nardi
2022-12-18 08:10:57 +00:00
committed by GitHub
parent fb0a73c0c7
commit ad6bfbad4d
195 changed files with 882 additions and 836 deletions
+20 -6
View File
@@ -95,6 +95,7 @@ u_int8_t enable_protocol_guess = 1, enable_payload_analyzer = 0, num_bin_cluster
u_int8_t verbose = 0, enable_flow_stats = 0; u_int8_t verbose = 0, enable_flow_stats = 0;
int nDPI_LogLevel = 0; int nDPI_LogLevel = 0;
char *_debug_protocols = NULL; char *_debug_protocols = NULL;
char *_disabled_protocols = NULL;
static u_int8_t stats_flag = 0; static u_int8_t stats_flag = 0;
ndpi_init_prefs init_prefs = ndpi_no_prefs; ndpi_init_prefs init_prefs = ndpi_no_prefs;
u_int8_t human_readeable_string_len = 5; u_int8_t human_readeable_string_len = 5;
@@ -252,6 +253,7 @@ static int dpdk_port_id = 0, dpdk_run_capture = 1;
void test_lib(); /* Forward */ void test_lib(); /* Forward */
extern void ndpi_report_payload_stats(); extern void ndpi_report_payload_stats();
extern int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, int inverted_logic);
/* ********************************** */ /* ********************************** */
@@ -449,7 +451,7 @@ static void help(u_int long_help) {
" [-p <protos>][-l <loops> [-q][-d][-h][-H][-D][-e <len>][-E][-t][-v <level>]\n" " [-p <protos>][-l <loops> [-q][-d][-h][-H][-D][-e <len>][-E][-t][-v <level>]\n"
" [-n <threads>][-w <file>][-c <file>][-C <file>][-j <file>][-x <file>]\n" " [-n <threads>][-w <file>][-c <file>][-C <file>][-j <file>][-x <file>]\n"
" [-r <file>][-j <file>][-S <file>][-T <num>][-U <num>] [-x <domain>][-z]\n" " [-r <file>][-j <file>][-S <file>][-T <num>][-U <num>] [-x <domain>][-z]\n"
" [-a <mode>]\n\n" " [-a <mode>][-B proto_list]\n\n"
"Usage:\n" "Usage:\n"
" -i <file.pcap|device> | Specify a pcap file/playlist to read packets from or a\n" " -i <file.pcap|device> | Specify a pcap file/playlist to read packets from or a\n"
" | device for live capture (comma-separated list)\n" " | device for live capture (comma-separated list)\n"
@@ -504,6 +506,7 @@ static void help(u_int long_help) {
" -u all|proto|num[,...] | Enable logging only for such protocol(s)\n" " -u all|proto|num[,...] | Enable logging only for such protocol(s)\n"
" | If this flag is present multiple times (directly, or via '-V'),\n" " | If this flag is present multiple times (directly, or via '-V'),\n"
" | only the last instance will be considered\n" " | only the last instance will be considered\n"
" -B all|proto|num[,...] | Disable such protocol(s). By defaul all protocols are enabled\n"
" -T <num> | Max number of TCP processed packets before giving up [default: %u]\n" " -T <num> | Max number of TCP processed packets before giving up [default: %u]\n"
" -U <num> | Max number of UDP processed packets before giving up [default: %u]\n" " -U <num> | Max number of UDP processed packets before giving up [default: %u]\n"
" -D | Enable DoH traffic analysis based on content (no DPI)\n" " -D | Enable DoH traffic analysis based on content (no DPI)\n"
@@ -814,7 +817,7 @@ static void parseOptions(int argc, char **argv) {
} }
#endif #endif
while((opt = getopt_long(argc, argv, "a:Ab:e:Ec:C:dDf:g:i:Ij:k:K:S:hHp:pP:l:r:s:tu:v:V:n:rp:x:w:zq0123:456:7:89:m:MT:U:", while((opt = getopt_long(argc, argv, "a:Ab:B:e:Ec:C:dDf:g:i:Ij:k:K:S:hHp:pP:l:r:s:tu:v:V:n:rp:x:w:zq0123:456:7:89:m:MT:U:",
longopts, &option_idx)) != EOF) { longopts, &option_idx)) != EOF) {
#ifdef DEBUG_TRACE #ifdef DEBUG_TRACE
if(trace) fprintf(trace, " #### Handling option -%c [%s] #### \n", opt, optarg ? optarg : ""); if(trace) fprintf(trace, " #### Handling option -%c [%s] #### \n", opt, optarg ? optarg : "");
@@ -941,6 +944,11 @@ static void parseOptions(int argc, char **argv) {
_debug_protocols = ndpi_strdup(optarg); _debug_protocols = ndpi_strdup(optarg);
break; break;
case 'B':
ndpi_free(_disabled_protocols);
_disabled_protocols = ndpi_strdup(optarg);
break;
case 'h': case 'h':
help(0); help(0);
break; break;
@@ -2408,7 +2416,7 @@ static void debug_printf(u_int32_t protocol, void *id_struct,
* @brief Setup for detection begin * @brief Setup for detection begin
*/ */
static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) { static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
NDPI_PROTOCOL_BITMASK all; NDPI_PROTOCOL_BITMASK enabled_bitmask;
struct ndpi_workflow_prefs prefs; struct ndpi_workflow_prefs prefs;
memset(&prefs, 0, sizeof(prefs)); memset(&prefs, 0, sizeof(prefs));
@@ -2427,9 +2435,14 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
on_protocol_discovered, on_protocol_discovered,
(void *)(uintptr_t)thread_id); (void *)(uintptr_t)thread_id);
// enable all protocols /* Protocols to enable/disable. Default: everything is enabled */
NDPI_BITMASK_SET_ALL(all); NDPI_BITMASK_SET_ALL(enabled_bitmask);
ndpi_set_protocol_detection_bitmask2(ndpi_thread_info[thread_id].workflow->ndpi_struct, &all); if(_disabled_protocols != NULL) {
if(parse_proto_name_list(_disabled_protocols, &enabled_bitmask, 1))
exit(-1);
}
ndpi_set_protocol_detection_bitmask2(ndpi_thread_info[thread_id].workflow->ndpi_struct, &enabled_bitmask);
// clear memory for results // clear memory for results
memset(ndpi_thread_info[thread_id].workflow->stats.protocol_counter, 0, memset(ndpi_thread_info[thread_id].workflow->stats.protocol_counter, 0,
@@ -5190,6 +5203,7 @@ void zscoreUnitTest() {
ndpi_free_bin(&malloc_bins); ndpi_free_bin(&malloc_bins);
if(csv_fp) fclose(csv_fp); if(csv_fp) fclose(csv_fp);
ndpi_free(_debug_protocols); ndpi_free(_debug_protocols);
ndpi_free(_disabled_protocols);
#ifdef DEBUG_TRACE #ifdef DEBUG_TRACE
if(trace) fclose(trace); if(trace) fclose(trace);
+30 -12
View File
@@ -373,50 +373,67 @@ static uint16_t ndpi_get_proto_id(struct ndpi_detection_module_struct *ndpi_mod,
/* ***************************************************** */ /* ***************************************************** */
static NDPI_PROTOCOL_BITMASK debug_bitmask;
static char _proto_delim[] = " \t,:;"; static char _proto_delim[] = " \t,:;";
static int parse_debug_proto(struct ndpi_detection_module_struct *ndpi_mod, char *str) { int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, int inverted_logic) {
char *n; char *n;
uint16_t proto; uint16_t proto;
char op=1; char op;
struct ndpi_detection_module_struct *module;
NDPI_PROTOCOL_BITMASK all;
if(!inverted_logic)
op = 1; /* Default action: add to the bitmask */
else
op = 0; /* Default action: remove from the bitmask */
/* Use a temporary module with all protocols enabled */
module = ndpi_init_detection_module(0);
if(!module)
return 1;
NDPI_BITMASK_SET_ALL(all);
ndpi_set_protocol_detection_bitmask2(module, &all);
ndpi_finalize_initialization(module);
for(n = strtok(str,_proto_delim); n && *n; n = strtok(NULL,_proto_delim)) { for(n = strtok(str,_proto_delim); n && *n; n = strtok(NULL,_proto_delim)) {
if(*n == '-') { if(*n == '-') {
op = 0; op = !inverted_logic ? 0 : 1;
n++; n++;
} else if(*n == '+') { } else if(*n == '+') {
op = 1; op = !inverted_logic ? 1 : 0;
n++; n++;
} }
if(!strcmp(n,"all")) { if(!strcmp(n,"all")) {
if(op) if(op)
NDPI_BITMASK_SET_ALL(debug_bitmask); NDPI_BITMASK_SET_ALL(*bitmask);
else else
NDPI_BITMASK_RESET(debug_bitmask); NDPI_BITMASK_RESET(*bitmask);
continue; continue;
} }
proto = ndpi_get_proto_id(ndpi_mod, n); proto = ndpi_get_proto_id(module, n);
if(proto == NDPI_PROTOCOL_UNKNOWN && strcmp(n,"unknown") && strcmp(n,"0")) { if(proto == NDPI_PROTOCOL_UNKNOWN && strcmp(n,"unknown") && strcmp(n,"0")) {
fprintf(stderr,"Invalid protocol %s\n",n); fprintf(stderr,"Invalid protocol %s\n",n);
ndpi_exit_detection_module(module);
return 1; return 1;
} }
if(op) if(op)
NDPI_BITMASK_ADD(debug_bitmask,proto); NDPI_BITMASK_ADD(*bitmask,proto);
else else
NDPI_BITMASK_DEL(debug_bitmask,proto); NDPI_BITMASK_DEL(*bitmask,proto);
} }
ndpi_exit_detection_module(module);
return 0; return 0;
} }
/* ***************************************************** */ /* ***************************************************** */
extern char *_debug_protocols; extern char *_debug_protocols;
static int _debug_protocols_ok = 0;
struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * prefs, struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * prefs,
pcap_t * pcap_handle, int do_init_flows_root, pcap_t * pcap_handle, int do_init_flows_root,
ndpi_serialization_format serialization_format) { ndpi_serialization_format serialization_format) {
struct ndpi_detection_module_struct * module; struct ndpi_detection_module_struct * module;
struct ndpi_workflow * workflow; struct ndpi_workflow * workflow;
static NDPI_PROTOCOL_BITMASK debug_bitmask;
static int _debug_protocols_ok = 0;
set_ndpi_malloc(ndpi_malloc_wrapper), set_ndpi_free(free_wrapper); set_ndpi_malloc(ndpi_malloc_wrapper), set_ndpi_free(free_wrapper);
set_ndpi_flow_malloc(NULL), set_ndpi_flow_free(NULL); set_ndpi_flow_malloc(NULL), set_ndpi_flow_free(NULL);
@@ -443,7 +460,8 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref
ndpi_set_log_level(module, nDPI_LogLevel); ndpi_set_log_level(module, nDPI_LogLevel);
if(_debug_protocols != NULL && ! _debug_protocols_ok) { if(_debug_protocols != NULL && ! _debug_protocols_ok) {
if(parse_debug_proto(module,_debug_protocols)) NDPI_BITMASK_RESET(debug_bitmask);
if(parse_proto_name_list(_debug_protocols, &debug_bitmask, 0))
exit(-1); exit(-1);
_debug_protocols_ok = 1; _debug_protocols_ok = 1;
} }
-2
View File
@@ -242,7 +242,6 @@ extern "C" {
* *
* @par label = string for the protocol name * @par label = string for the protocol name
* @par ndpi_struct = the detection module * @par ndpi_struct = the detection module
* @par detection_bitmask = the protocol bitmask
* @par idx = the index of the callback_buffer * @par idx = the index of the callback_buffer
* @par func = function pointer of the protocol search * @par func = function pointer of the protocol search
* @par ndpi_selection_bitmask = the protocol selected bitmask * @par ndpi_selection_bitmask = the protocol selected bitmask
@@ -252,7 +251,6 @@ extern "C" {
*/ */
void ndpi_set_bitmask_protocol_detection(char *label, void ndpi_set_bitmask_protocol_detection(char *label,
struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_detection_module_struct *ndpi_struct,
const NDPI_PROTOCOL_BITMASK *detection_bitmask,
const u_int32_t idx, const u_int32_t idx,
u_int16_t ndpi_protocol_id, u_int16_t ndpi_protocol_id,
void (*func) (struct ndpi_detection_module_struct *, void (*func) (struct ndpi_detection_module_struct *,
+4 -2
View File
@@ -167,8 +167,10 @@
#define NDPI_LOG(proto, m, log_level, args...) \ #define NDPI_LOG(proto, m, log_level, args...) \
{ \ { \
struct ndpi_detection_module_struct *mod = (struct ndpi_detection_module_struct*) m; \ struct ndpi_detection_module_struct *mod = (struct ndpi_detection_module_struct*) m; \
if(mod != NULL && mod->ndpi_debug_printf != NULL) \ if(mod && mod->ndpi_log_level >= log_level) { \
(*(mod->ndpi_debug_printf))(proto, mod, log_level, __FILE__, __FUNCTION__, __LINE__, args); \ if(mod != NULL && mod->ndpi_debug_printf != NULL) \
(*(mod->ndpi_debug_printf))(proto, mod, log_level, __FILE__, __FUNCTION__, __LINE__, args); \
} \
} }
/* We must define NDPI_CURRENT_PROTO before include ndpi_main.h !!! /* We must define NDPI_CURRENT_PROTO before include ndpi_main.h !!!
+193 -193
View File
@@ -51,201 +51,201 @@ u_int ndpi_search_tcp_or_udp_raw(struct ndpi_detection_module_struct *ndpi_struc
void ndpi_search_tcp_or_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow); void ndpi_search_tcp_or_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow);
void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_afp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_afp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_aimini_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_aimini_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_applejuice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_applejuice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_armagetron_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_armagetron_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ayiya_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ayiya_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_amqp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_amqp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_bgp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_bgp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_bittorrent_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_bittorrent_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
int ndpi_search_into_bittorrent_cache(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow, int ndpi_search_into_bittorrent_cache(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow,
u_int32_t saddr, u_int16_t sport, u_int32_t daddr, u_int16_t dport); u_int32_t saddr, u_int16_t sport, u_int32_t daddr, u_int16_t dport);
void init_lisp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_lisp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_teredo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_teredo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ciscovpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ciscovpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_citrix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_citrix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_corba_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_corba_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_crossfire_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_crossfire_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dcerpc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dcerpc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dhcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dhcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dhcpv6_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dhcpv6_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_directconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_directconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dofus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dofus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_directdownloadlink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_directdownloadlink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dropbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dropbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_eaq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_eaq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_edonkey_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_edonkey_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_fasttrack_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_fasttrack_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_fiesta_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_fiesta_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_florensia_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_florensia_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ftp_control_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ftp_control_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ftp_data_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ftp_data_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_gnutella_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_gnutella_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_gtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_gtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_hsrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_hsrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_guildwars_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_guildwars_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_h323_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_h323_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_halflife2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_halflife2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_http_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_http_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_icecast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_icecast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_irc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_irc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_jabber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_jabber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_kakaotalk_voice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_kakaotalk_voice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_kerberos_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_kerberos_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_kontiki_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_kontiki_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ldap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ldap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_lotus_notes_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_lotus_notes_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mail_imap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mail_imap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mail_pop_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mail_pop_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mail_smtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mail_smtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_maplestory_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_maplestory_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_megaco_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_megaco_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mgcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mgcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mining_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mining_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mms_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mms_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_nats_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_nats_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mpegts_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mpegts_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mssql_tds_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mssql_tds_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mysql_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mysql_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_netbios_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_netbios_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_netflow_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_netflow_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_nfs_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_nfs_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_noe_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_noe_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_non_tcp_udp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_non_tcp_udp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ntp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ntp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_openft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_openft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_openvpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_openvpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_oracle_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_oracle_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_postgres_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_postgres_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ppstream_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ppstream_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_pptp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_pptp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_qq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_qq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_quake_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_quake_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_quic_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_quic_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_radius_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_radius_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_rdp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rdp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_redis_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_redis_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_rsync_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rsync_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_rtcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rtcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_rtmp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rtmp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_rtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_rtsp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rtsp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_sflow_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_sflow_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_shoutcast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_shoutcast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_sip_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_sip_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_imo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_imo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_skinny_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_skinny_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_skype_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_skype_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_smb_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_smb_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_snmp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_snmp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_socrates_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_socrates_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_sopcast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_sopcast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_socks_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_socks_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_spotify_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_spotify_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ssh_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ssh_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_tls_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_tls_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_starcraft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_starcraft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_stealthnet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_stealthnet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_steam_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_steam_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_stun_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_stun_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_syslog_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_syslog_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ssdp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ssdp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_teamspeak_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_teamspeak_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_teamviewer_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_teamviewer_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_telegram_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_telegram_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_telnet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_telnet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_tftp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_tftp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_thunder_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_thunder_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_tvuplayer_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_tvuplayer_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_usenet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_usenet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_wsd_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_wsd_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_veohtv_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_veohtv_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_vhua_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_vhua_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_viber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_viber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_vmware_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_vmware_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_vnc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_vnc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_vxlan_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_vxlan_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_warcraft3_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_warcraft3_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_whois_das_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_whois_das_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_world_of_warcraft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_world_of_warcraft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_world_of_kung_fu_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_world_of_kung_fu_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_xbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_xbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_xdmcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_xdmcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_zattoo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_zattoo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_zmq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_zmq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_stracraft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_stracraft_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ubntac2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ubntac2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_coap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_coap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mqtt_dissector (struct ndpi_detection_module_struct *ndpi_struct,u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mqtt_dissector (struct ndpi_detection_module_struct *ndpi_struct,u_int32_t *id);
void init_someip_dissector (struct ndpi_detection_module_struct *ndpi_struct,u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_someip_dissector (struct ndpi_detection_module_struct *ndpi_struct,u_int32_t *id);
void init_rx_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rx_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_git_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_git_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_hangout_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_hangout_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_drda_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_drda_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_bjnp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_bjnp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_smpp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_smpp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_tinc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_tinc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_fix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_fix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_nintendo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_nintendo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_csgo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_csgo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_checkmk_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_checkmk_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_cpha_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_cpha_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_apple_push_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_apple_push_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_amazon_video_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_amazon_video_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_whatsapp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_whatsapp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ajp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ajp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_memcached_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_memcached_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_nest_log_sink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_nest_log_sink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ookla_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ookla_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_modbus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_modbus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_capwap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_capwap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_zabbix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_zabbix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_wireguard_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_wireguard_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dnp3_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dnp3_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_104_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_104_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_s7comm_dissector(struct ndpi_detection_module_struct *ndpi_struct,u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_s7comm_dissector(struct ndpi_detection_module_struct *ndpi_struct,u_int32_t *id);
void init_websocket_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_websocket_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_soap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_soap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_dnscrypt_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_dnscrypt_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mongodb_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mongodb_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_among_us_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_among_us_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_hpvirtgrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_hpvirtgrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_genshin_impact_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_genshin_impact_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_z3950_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_z3950_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_avast_securedns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_avast_securedns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_cassandra_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_cassandra_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ethernet_ip_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ethernet_ip_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_toca_boca_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_toca_boca_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_sd_rtn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_sd_rtn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_raknet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_raknet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_xiaomi_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_xiaomi_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_mpegdash_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_mpegdash_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_rsh_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_rsh_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ipsec_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ipsec_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_collectd_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_collectd_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_i3d_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_i3d_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_riotgames_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_riotgames_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_ultrasurf_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_ultrasurf_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_threema_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_threema_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_alicloud_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_alicloud_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_avast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_avast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_softether_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_softether_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_activision_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_activision_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_discord_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_discord_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_tivoconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_tivoconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_kismet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_kismet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_fastcgi_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_fastcgi_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_natpmp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_natpmp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_syncthing_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_syncthing_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_crynet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_crynet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_line_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_line_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_munin_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_munin_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_elasticsearch_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask); void init_elasticsearch_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
/* ndpi_main.c */ /* ndpi_main.c */
extern u_int32_t ndpi_ip_port_hash_funct(u_int32_t ip, u_int16_t port); extern u_int32_t ndpi_ip_port_hash_funct(u_int32_t ip, u_int16_t port);
+243 -207
View File
@@ -446,15 +446,36 @@ void ndpi_exclude_protocol(struct ndpi_detection_module_struct *ndpi_str, struct
/* ********************************************************************************** */ /* ********************************************************************************** */
static int is_proto_enabled(struct ndpi_detection_module_struct *ndpi_str, int protoId)
{
/* Custom protocols are always enabled */
if(protoId >= NDPI_MAX_SUPPORTED_PROTOCOLS)
return 1;
if(NDPI_COMPARE_PROTOCOL_TO_BITMASK(ndpi_str->detection_bitmask, protoId) == 0)
return 0;
return 1;
}
/* ********************************************************************************** */
void ndpi_set_proto_subprotocols(struct ndpi_detection_module_struct *ndpi_str, int protoId, ...) void ndpi_set_proto_subprotocols(struct ndpi_detection_module_struct *ndpi_str, int protoId, ...)
{ {
va_list ap; va_list ap;
int current_arg = protoId; int current_arg = protoId;
size_t i = 0; size_t i = 0;
if(!is_proto_enabled(ndpi_str, protoId)) {
NDPI_LOG_DBG(ndpi_str, "[NDPI] Skip subprotocols for %d (disabled)\n", protoId);
return;
}
va_start(ap, protoId); va_start(ap, protoId);
while (current_arg != NDPI_PROTOCOL_NO_MORE_SUBPROTOCOLS) { while (current_arg != NDPI_PROTOCOL_NO_MORE_SUBPROTOCOLS) {
ndpi_str->proto_defaults[protoId].subprotocol_count++; if(!is_proto_enabled(ndpi_str, current_arg)) {
NDPI_LOG_DBG(ndpi_str, "[NDPI] Skip subprotocol %d (disabled)\n", protoId);
} else {
ndpi_str->proto_defaults[protoId].subprotocol_count++;
}
current_arg = va_arg(ap, int); current_arg = va_arg(ap, int);
} }
va_end(ap); va_end(ap);
@@ -475,10 +496,11 @@ void ndpi_set_proto_subprotocols(struct ndpi_detection_module_struct *ndpi_str,
current_arg = va_arg(ap, int); current_arg = va_arg(ap, int);
while (current_arg != NDPI_PROTOCOL_NO_MORE_SUBPROTOCOLS) { while (current_arg != NDPI_PROTOCOL_NO_MORE_SUBPROTOCOLS) {
if(ndpi_str->proto_defaults[protoId].subprotocols != NULL) { if(is_proto_enabled(ndpi_str, current_arg) &&
ndpi_str->proto_defaults[protoId].subprotocols != NULL) {
ndpi_str->proto_defaults[protoId].subprotocols[i++] = current_arg; ndpi_str->proto_defaults[protoId].subprotocols[i++] = current_arg;
current_arg = va_arg(ap, int);
} }
current_arg = va_arg(ap, int);
} }
va_end(ap); va_end(ap);
@@ -528,6 +550,11 @@ void ndpi_set_proto_defaults(struct ndpi_detection_module_struct *ndpi_str,
ndpi_str->proto_defaults[protoId].subprotocols = NULL; ndpi_str->proto_defaults[protoId].subprotocols = NULL;
ndpi_str->proto_defaults[protoId].subprotocol_count = 0; ndpi_str->proto_defaults[protoId].subprotocol_count = 0;
if(!is_proto_enabled(ndpi_str, protoId)) {
NDPI_LOG_DBG(ndpi_str, "[NDPI] Skip default ports for %s/protoId=%d: disabled\n", protoName, protoId);
return;
}
for(j = 0; j < MAX_DEFAULT_PORTS; j++) { for(j = 0; j < MAX_DEFAULT_PORTS; j++) {
if(udpDefPorts[j].port_low != 0) if(udpDefPorts[j].port_low != 0)
addDefaultPort(ndpi_str, &udpDefPorts[j], &ndpi_str->proto_defaults[protoId], 0, &ndpi_str->udpRoot, addDefaultPort(ndpi_str, &udpDefPorts[j], &ndpi_str->proto_defaults[protoId], 0, &ndpi_str->udpRoot,
@@ -792,6 +819,12 @@ void ndpi_init_protocol_match(struct ndpi_detection_module_struct *ndpi_str,
ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */);
} }
if(!is_proto_enabled(ndpi_str, match->protocol_id)) {
NDPI_LOG_DBG(ndpi_str, "[NDPI] Skip protocol match for %s/protoId=%d: disabled\n",
match->string_to_match, match->protocol_id);
return;
}
ndpi_add_host_url_subprotocol(ndpi_str, match->string_to_match, ndpi_add_host_url_subprotocol(ndpi_str, match->string_to_match,
match->protocol_id, match->protocol_category, match->protocol_id, match->protocol_category,
match->protocol_breed, match->level); match->protocol_breed, match->level);
@@ -857,6 +890,11 @@ static void init_string_based_protocols(struct ndpi_detection_module_struct *ndp
tls_certificate_match[i].protocol_id); tls_certificate_match[i].protocol_id);
#endif #endif
if(!is_proto_enabled(ndpi_str, tls_certificate_match[i].protocol_id)) {
NDPI_LOG_DBG(ndpi_str, "[NDPI] Skip tls cert match for %s/protoId=%d: disabled\n",
tls_certificate_match[i].string_to_match, tls_certificate_match[i].protocol_id);
continue;
}
/* Note: string_to_match is not malloc'ed here as ac_automata_release is /* Note: string_to_match is not malloc'ed here as ac_automata_release is
* called with free_pattern = 0 */ * called with free_pattern = 0 */
ndpi_add_string_value_to_automa(ndpi_str->tls_cert_subject_automa.ac_automa, ndpi_add_string_value_to_automa(ndpi_str->tls_cert_subject_automa.ac_automa,
@@ -2703,7 +2741,7 @@ struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs
ndpi_str->max_packets_to_process = NDPI_DEFAULT_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT; ndpi_str->max_packets_to_process = NDPI_DEFAULT_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT;
NDPI_BITMASK_RESET(ndpi_str->detection_bitmask); NDPI_BITMASK_SET_ALL(ndpi_str->detection_bitmask);
#ifdef NDPI_ENABLE_DEBUG_MESSAGES #ifdef NDPI_ENABLE_DEBUG_MESSAGES
ndpi_str->user_data = NULL; ndpi_str->user_data = NULL;
#endif #endif
@@ -2795,13 +2833,6 @@ struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs
ndpi_str->opportunistic_tls_pop_enabled = 1; ndpi_str->opportunistic_tls_pop_enabled = 1;
ndpi_str->opportunistic_tls_ftp_enabled = 1; ndpi_str->opportunistic_tls_ftp_enabled = 1;
ndpi_init_protocol_defaults(ndpi_str);
if(ndpi_callback_init(ndpi_str)) {
NDPI_LOG_ERR(ndpi_str, "[NDPI] Error allocating callbacks\n");
ndpi_free(ndpi_str);
return NULL;
}
for(i = 0; i < NUM_CUSTOM_CATEGORIES; i++) for(i = 0; i < NUM_CUSTOM_CATEGORIES; i++)
ndpi_snprintf(ndpi_str->custom_category_labels[i], CUSTOM_CATEGORY_LABEL_LEN, "User custom category %u", ndpi_snprintf(ndpi_str->custom_category_labels[i], CUSTOM_CATEGORY_LABEL_LEN, "User custom category %u",
@@ -4083,7 +4114,7 @@ int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_str, cons
/* ntop */ /* ntop */
void ndpi_set_bitmask_protocol_detection(char *label, struct ndpi_detection_module_struct *ndpi_str, void ndpi_set_bitmask_protocol_detection(char *label, struct ndpi_detection_module_struct *ndpi_str,
const NDPI_PROTOCOL_BITMASK *detection_bitmask, const u_int32_t idx, const u_int32_t idx,
u_int16_t ndpi_protocol_id, u_int16_t ndpi_protocol_id,
void (*func)(struct ndpi_detection_module_struct *, void (*func)(struct ndpi_detection_module_struct *,
struct ndpi_flow_struct *flow), struct ndpi_flow_struct *flow),
@@ -4092,7 +4123,7 @@ void ndpi_set_bitmask_protocol_detection(char *label, struct ndpi_detection_modu
/* /*
Compare specify protocol bitmask with main detection bitmask Compare specify protocol bitmask with main detection bitmask
*/ */
if(NDPI_COMPARE_PROTOCOL_TO_BITMASK(*detection_bitmask, ndpi_protocol_id) != 0) { if(is_proto_enabled(ndpi_str, ndpi_protocol_id)) {
#ifdef DEBUG #ifdef DEBUG
NDPI_LOG_DBG2(ndpi_str, NDPI_LOG_DBG2(ndpi_str,
"[NDPI] ndpi_set_bitmask_protocol_detection: %s : [callback_buffer] idx= %u, [proto_defaults] " "[NDPI] ndpi_set_bitmask_protocol_detection: %s : [callback_buffer] idx= %u, [proto_defaults] "
@@ -4132,6 +4163,8 @@ void ndpi_set_bitmask_protocol_detection(char *label, struct ndpi_detection_modu
NDPI_ADD_PROTOCOL_TO_BITMASK(ndpi_str->callback_buffer[idx].detection_bitmask, ndpi_protocol_id); NDPI_ADD_PROTOCOL_TO_BITMASK(ndpi_str->callback_buffer[idx].detection_bitmask, ndpi_protocol_id);
NDPI_SAVE_AS_BITMASK(ndpi_str->callback_buffer[idx].excluded_protocol_bitmask, ndpi_protocol_id); NDPI_SAVE_AS_BITMASK(ndpi_str->callback_buffer[idx].excluded_protocol_bitmask, ndpi_protocol_id);
} else {
NDPI_LOG_DBG(ndpi_str, "[NDPI] Protocol %s/%u disabled\n", label, ndpi_protocol_id);
} }
} }
@@ -4139,13 +4172,10 @@ void ndpi_set_bitmask_protocol_detection(char *label, struct ndpi_detection_modu
static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) { static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) {
NDPI_PROTOCOL_BITMASK detection_bitmask_local; NDPI_PROTOCOL_BITMASK *detection_bitmask = &ndpi_str->detection_bitmask;
NDPI_PROTOCOL_BITMASK *detection_bitmask = &detection_bitmask_local;
struct ndpi_call_function_struct *all_cb = NULL; struct ndpi_call_function_struct *all_cb = NULL;
u_int32_t a = 0; u_int32_t a = 0;
NDPI_ONE(detection_bitmask);
if(ndpi_str->callback_buffer) return 0; if(ndpi_str->callback_buffer) return 0;
ndpi_str->callback_buffer = ndpi_calloc(NDPI_MAX_SUPPORTED_PROTOCOLS+1,sizeof(struct ndpi_call_function_struct)); ndpi_str->callback_buffer = ndpi_calloc(NDPI_MAX_SUPPORTED_PROTOCOLS+1,sizeof(struct ndpi_call_function_struct));
@@ -4155,570 +4185,570 @@ static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) {
ndpi_str->callback_buffer_size = 0; ndpi_str->callback_buffer_size = 0;
/* HTTP */ /* HTTP */
init_http_dissector(ndpi_str, &a, detection_bitmask); init_http_dissector(ndpi_str, &a);
/* STARCRAFT */ /* STARCRAFT */
init_starcraft_dissector(ndpi_str, &a, detection_bitmask); init_starcraft_dissector(ndpi_str, &a);
/* TLS+DTLS */ /* TLS+DTLS */
init_tls_dissector(ndpi_str, &a, detection_bitmask); init_tls_dissector(ndpi_str, &a);
/* RTP */ /* RTP */
init_rtp_dissector(ndpi_str, &a, detection_bitmask); init_rtp_dissector(ndpi_str, &a);
/* RTSP */ /* RTSP */
init_rtsp_dissector(ndpi_str, &a, detection_bitmask); init_rtsp_dissector(ndpi_str, &a);
/* RDP */ /* RDP */
init_rdp_dissector(ndpi_str, &a, detection_bitmask); init_rdp_dissector(ndpi_str, &a);
/* STUN */ /* STUN */
init_stun_dissector(ndpi_str, &a, detection_bitmask); init_stun_dissector(ndpi_str, &a);
/* SIP */ /* SIP */
init_sip_dissector(ndpi_str, &a, detection_bitmask); init_sip_dissector(ndpi_str, &a);
/* IMO */ /* IMO */
init_imo_dissector(ndpi_str, &a, detection_bitmask); init_imo_dissector(ndpi_str, &a);
/* Teredo */ /* Teredo */
init_teredo_dissector(ndpi_str, &a, detection_bitmask); init_teredo_dissector(ndpi_str, &a);
/* EDONKEY */ /* EDONKEY */
init_edonkey_dissector(ndpi_str, &a, detection_bitmask); init_edonkey_dissector(ndpi_str, &a);
/* FASTTRACK */ /* FASTTRACK */
init_fasttrack_dissector(ndpi_str, &a, detection_bitmask); init_fasttrack_dissector(ndpi_str, &a);
/* GNUTELLA */ /* GNUTELLA */
init_gnutella_dissector(ndpi_str, &a, detection_bitmask); init_gnutella_dissector(ndpi_str, &a);
/* DIRECTCONNECT */ /* DIRECTCONNECT */
init_directconnect_dissector(ndpi_str, &a, detection_bitmask); init_directconnect_dissector(ndpi_str, &a);
/* NATS */ /* NATS */
init_nats_dissector(ndpi_str, &a, detection_bitmask); init_nats_dissector(ndpi_str, &a);
/* APPLEJUICE */ /* APPLEJUICE */
init_applejuice_dissector(ndpi_str, &a, detection_bitmask); init_applejuice_dissector(ndpi_str, &a);
/* SOCKS */ /* SOCKS */
init_socks_dissector(ndpi_str, &a, detection_bitmask); init_socks_dissector(ndpi_str, &a);
/* IRC */ /* IRC */
init_irc_dissector(ndpi_str, &a, detection_bitmask); init_irc_dissector(ndpi_str, &a);
/* JABBER */ /* JABBER */
init_jabber_dissector(ndpi_str, &a, detection_bitmask); init_jabber_dissector(ndpi_str, &a);
/* MAIL_POP */ /* MAIL_POP */
init_mail_pop_dissector(ndpi_str, &a, detection_bitmask); init_mail_pop_dissector(ndpi_str, &a);
/* MAIL_IMAP */ /* MAIL_IMAP */
init_mail_imap_dissector(ndpi_str, &a, detection_bitmask); init_mail_imap_dissector(ndpi_str, &a);
/* MAIL_SMTP */ /* MAIL_SMTP */
init_mail_smtp_dissector(ndpi_str, &a, detection_bitmask); init_mail_smtp_dissector(ndpi_str, &a);
/* USENET */ /* USENET */
init_usenet_dissector(ndpi_str, &a, detection_bitmask); init_usenet_dissector(ndpi_str, &a);
/* DNS */ /* DNS */
init_dns_dissector(ndpi_str, &a, detection_bitmask); init_dns_dissector(ndpi_str, &a);
/* VMWARE */ /* VMWARE */
init_vmware_dissector(ndpi_str, &a, detection_bitmask); init_vmware_dissector(ndpi_str, &a);
/* NON_TCP_UDP */ /* NON_TCP_UDP */
init_non_tcp_udp_dissector(ndpi_str, &a, detection_bitmask); init_non_tcp_udp_dissector(ndpi_str, &a);
/* SOPCAST */ /* SOPCAST */
init_sopcast_dissector(ndpi_str, &a, detection_bitmask); init_sopcast_dissector(ndpi_str, &a);
/* TVUPLAYER */ /* TVUPLAYER */
init_tvuplayer_dissector(ndpi_str, &a, detection_bitmask); init_tvuplayer_dissector(ndpi_str, &a);
/* PPSTREAM */ /* PPSTREAM */
init_ppstream_dissector(ndpi_str, &a, detection_bitmask); init_ppstream_dissector(ndpi_str, &a);
/* IAX */ /* IAX */
init_iax_dissector(ndpi_str, &a, detection_bitmask); init_iax_dissector(ndpi_str, &a);
/* Media Gateway Control Protocol */ /* Media Gateway Control Protocol */
init_mgcp_dissector(ndpi_str, &a, detection_bitmask); init_mgcp_dissector(ndpi_str, &a);
/* ZATTOO */ /* ZATTOO */
init_zattoo_dissector(ndpi_str, &a, detection_bitmask); init_zattoo_dissector(ndpi_str, &a);
/* QQ */ /* QQ */
init_qq_dissector(ndpi_str, &a, detection_bitmask); init_qq_dissector(ndpi_str, &a);
/* SSH */ /* SSH */
init_ssh_dissector(ndpi_str, &a, detection_bitmask); init_ssh_dissector(ndpi_str, &a);
/* AYIYA */ /* AYIYA */
init_ayiya_dissector(ndpi_str, &a, detection_bitmask); init_ayiya_dissector(ndpi_str, &a);
/* THUNDER */ /* THUNDER */
init_thunder_dissector(ndpi_str, &a, detection_bitmask); init_thunder_dissector(ndpi_str, &a);
/* VNC */ /* VNC */
init_vnc_dissector(ndpi_str, &a, detection_bitmask); init_vnc_dissector(ndpi_str, &a);
/* VXLAN */ /* VXLAN */
init_vxlan_dissector(ndpi_str, &a, detection_bitmask); init_vxlan_dissector(ndpi_str, &a);
/* TEAMVIEWER */ /* TEAMVIEWER */
init_teamviewer_dissector(ndpi_str, &a, detection_bitmask); init_teamviewer_dissector(ndpi_str, &a);
/* DHCP */ /* DHCP */
init_dhcp_dissector(ndpi_str, &a, detection_bitmask); init_dhcp_dissector(ndpi_str, &a);
/* STEAM */ /* STEAM */
init_steam_dissector(ndpi_str, &a, detection_bitmask); init_steam_dissector(ndpi_str, &a);
/* HALFLIFE2 */ /* HALFLIFE2 */
init_halflife2_dissector(ndpi_str, &a, detection_bitmask); init_halflife2_dissector(ndpi_str, &a);
/* XBOX */ /* XBOX */
init_xbox_dissector(ndpi_str, &a, detection_bitmask); init_xbox_dissector(ndpi_str, &a);
/* SMB */ /* SMB */
init_smb_dissector(ndpi_str, &a, detection_bitmask); init_smb_dissector(ndpi_str, &a);
/* MINING */ /* MINING */
init_mining_dissector(ndpi_str, &a, detection_bitmask); init_mining_dissector(ndpi_str, &a);
/* TELNET */ /* TELNET */
init_telnet_dissector(ndpi_str, &a, detection_bitmask); init_telnet_dissector(ndpi_str, &a);
/* NTP */ /* NTP */
init_ntp_dissector(ndpi_str, &a, detection_bitmask); init_ntp_dissector(ndpi_str, &a);
/* NFS */ /* NFS */
init_nfs_dissector(ndpi_str, &a, detection_bitmask); init_nfs_dissector(ndpi_str, &a);
/* SSDP */ /* SSDP */
init_ssdp_dissector(ndpi_str, &a, detection_bitmask); init_ssdp_dissector(ndpi_str, &a);
/* WORLD_OF_WARCRAFT */ /* WORLD_OF_WARCRAFT */
init_world_of_warcraft_dissector(ndpi_str, &a, detection_bitmask); init_world_of_warcraft_dissector(ndpi_str, &a);
/* POSTGRES */ /* POSTGRES */
init_postgres_dissector(ndpi_str, &a, detection_bitmask); init_postgres_dissector(ndpi_str, &a);
/* MYSQL */ /* MYSQL */
init_mysql_dissector(ndpi_str, &a, detection_bitmask); init_mysql_dissector(ndpi_str, &a);
/* BGP */ /* BGP */
init_bgp_dissector(ndpi_str, &a, detection_bitmask); init_bgp_dissector(ndpi_str, &a);
/* SNMP */ /* SNMP */
init_snmp_dissector(ndpi_str, &a, detection_bitmask); init_snmp_dissector(ndpi_str, &a);
/* KONTIKI */ /* KONTIKI */
init_kontiki_dissector(ndpi_str, &a, detection_bitmask); init_kontiki_dissector(ndpi_str, &a);
/* ICECAST */ /* ICECAST */
init_icecast_dissector(ndpi_str, &a, detection_bitmask); init_icecast_dissector(ndpi_str, &a);
/* SHOUTCAST */ /* SHOUTCAST */
init_shoutcast_dissector(ndpi_str, &a, detection_bitmask); init_shoutcast_dissector(ndpi_str, &a);
/* KERBEROS */ /* KERBEROS */
init_kerberos_dissector(ndpi_str, &a, detection_bitmask); init_kerberos_dissector(ndpi_str, &a);
/* OPENFT */ /* OPENFT */
init_openft_dissector(ndpi_str, &a, detection_bitmask); init_openft_dissector(ndpi_str, &a);
/* SYSLOG */ /* SYSLOG */
init_syslog_dissector(ndpi_str, &a, detection_bitmask); init_syslog_dissector(ndpi_str, &a);
/* DIRECT_DOWNLOAD_LINK */ /* DIRECT_DOWNLOAD_LINK */
init_directdownloadlink_dissector(ndpi_str, &a, detection_bitmask); init_directdownloadlink_dissector(ndpi_str, &a);
/* NETBIOS */ /* NETBIOS */
init_netbios_dissector(ndpi_str, &a, detection_bitmask); init_netbios_dissector(ndpi_str, &a);
/* IPP */ /* IPP */
init_ipp_dissector(ndpi_str, &a, detection_bitmask); init_ipp_dissector(ndpi_str, &a);
/* LDAP */ /* LDAP */
init_ldap_dissector(ndpi_str, &a, detection_bitmask); init_ldap_dissector(ndpi_str, &a);
/* WARCRAFT3 */ /* WARCRAFT3 */
init_warcraft3_dissector(ndpi_str, &a, detection_bitmask); init_warcraft3_dissector(ndpi_str, &a);
/* XDMCP */ /* XDMCP */
init_xdmcp_dissector(ndpi_str, &a, detection_bitmask); init_xdmcp_dissector(ndpi_str, &a);
/* TFTP */ /* TFTP */
init_tftp_dissector(ndpi_str, &a, detection_bitmask); init_tftp_dissector(ndpi_str, &a);
/* MSSQL_TDS */ /* MSSQL_TDS */
init_mssql_tds_dissector(ndpi_str, &a, detection_bitmask); init_mssql_tds_dissector(ndpi_str, &a);
/* PPTP */ /* PPTP */
init_pptp_dissector(ndpi_str, &a, detection_bitmask); init_pptp_dissector(ndpi_str, &a);
/* STEALTHNET */ /* STEALTHNET */
init_stealthnet_dissector(ndpi_str, &a, detection_bitmask); init_stealthnet_dissector(ndpi_str, &a);
/* DHCPV6 */ /* DHCPV6 */
init_dhcpv6_dissector(ndpi_str, &a, detection_bitmask); init_dhcpv6_dissector(ndpi_str, &a);
/* AFP */ /* AFP */
init_afp_dissector(ndpi_str, &a, detection_bitmask); init_afp_dissector(ndpi_str, &a);
/* check_mk */ /* check_mk */
init_checkmk_dissector(ndpi_str, &a, detection_bitmask); init_checkmk_dissector(ndpi_str, &a);
/* cpha */ /* cpha */
init_cpha_dissector(ndpi_str, &a, detection_bitmask); init_cpha_dissector(ndpi_str, &a);
/* AIMINI */ /* AIMINI */
init_aimini_dissector(ndpi_str, &a, detection_bitmask); init_aimini_dissector(ndpi_str, &a);
/* FLORENSIA */ /* FLORENSIA */
init_florensia_dissector(ndpi_str, &a, detection_bitmask); init_florensia_dissector(ndpi_str, &a);
/* MAPLESTORY */ /* MAPLESTORY */
init_maplestory_dissector(ndpi_str, &a, detection_bitmask); init_maplestory_dissector(ndpi_str, &a);
/* DOFUS */ /* DOFUS */
init_dofus_dissector(ndpi_str, &a, detection_bitmask); init_dofus_dissector(ndpi_str, &a);
/* WORLD_OF_KUNG_FU */ /* WORLD_OF_KUNG_FU */
init_world_of_kung_fu_dissector(ndpi_str, &a, detection_bitmask); init_world_of_kung_fu_dissector(ndpi_str, &a);
/* FIESTA */ /* FIESTA */
init_fiesta_dissector(ndpi_str, &a, detection_bitmask); init_fiesta_dissector(ndpi_str, &a);
/* CROSSIFIRE */ /* CROSSIFIRE */
init_crossfire_dissector(ndpi_str, &a, detection_bitmask); init_crossfire_dissector(ndpi_str, &a);
/* GUILDWARS */ /* GUILDWARS */
init_guildwars_dissector(ndpi_str, &a, detection_bitmask); init_guildwars_dissector(ndpi_str, &a);
/* ARMAGETRON */ /* ARMAGETRON */
init_armagetron_dissector(ndpi_str, &a, detection_bitmask); init_armagetron_dissector(ndpi_str, &a);
/* DROPBOX */ /* DROPBOX */
init_dropbox_dissector(ndpi_str, &a, detection_bitmask); init_dropbox_dissector(ndpi_str, &a);
/* SPOTIFY */ /* SPOTIFY */
init_spotify_dissector(ndpi_str, &a, detection_bitmask); init_spotify_dissector(ndpi_str, &a);
/* RADIUS */ /* RADIUS */
init_radius_dissector(ndpi_str, &a, detection_bitmask); init_radius_dissector(ndpi_str, &a);
/* CITRIX */ /* CITRIX */
init_citrix_dissector(ndpi_str, &a, detection_bitmask); init_citrix_dissector(ndpi_str, &a);
/* LOTUS_NOTES */ /* LOTUS_NOTES */
init_lotus_notes_dissector(ndpi_str, &a, detection_bitmask); init_lotus_notes_dissector(ndpi_str, &a);
/* GTP */ /* GTP */
init_gtp_dissector(ndpi_str, &a, detection_bitmask); init_gtp_dissector(ndpi_str, &a);
/* HSRP */ /* HSRP */
init_hsrp_dissector(ndpi_str, &a, detection_bitmask); init_hsrp_dissector(ndpi_str, &a);
/* DCERPC */ /* DCERPC */
init_dcerpc_dissector(ndpi_str, &a, detection_bitmask); init_dcerpc_dissector(ndpi_str, &a);
/* NETFLOW */ /* NETFLOW */
init_netflow_dissector(ndpi_str, &a, detection_bitmask); init_netflow_dissector(ndpi_str, &a);
/* SFLOW */ /* SFLOW */
init_sflow_dissector(ndpi_str, &a, detection_bitmask); init_sflow_dissector(ndpi_str, &a);
/* H323 */ /* H323 */
init_h323_dissector(ndpi_str, &a, detection_bitmask); init_h323_dissector(ndpi_str, &a);
/* OPENVPN */ /* OPENVPN */
init_openvpn_dissector(ndpi_str, &a, detection_bitmask); init_openvpn_dissector(ndpi_str, &a);
/* NOE */ /* NOE */
init_noe_dissector(ndpi_str, &a, detection_bitmask); init_noe_dissector(ndpi_str, &a);
/* CISCOVPN */ /* CISCOVPN */
init_ciscovpn_dissector(ndpi_str, &a, detection_bitmask); init_ciscovpn_dissector(ndpi_str, &a);
/* TEAMSPEAK */ /* TEAMSPEAK */
init_teamspeak_dissector(ndpi_str, &a, detection_bitmask); init_teamspeak_dissector(ndpi_str, &a);
/* SKINNY */ /* SKINNY */
init_skinny_dissector(ndpi_str, &a, detection_bitmask); init_skinny_dissector(ndpi_str, &a);
/* RTCP */ /* RTCP */
init_rtcp_dissector(ndpi_str, &a, detection_bitmask); init_rtcp_dissector(ndpi_str, &a);
/* RSYNC */ /* RSYNC */
init_rsync_dissector(ndpi_str, &a, detection_bitmask); init_rsync_dissector(ndpi_str, &a);
/* WHOIS_DAS */ /* WHOIS_DAS */
init_whois_das_dissector(ndpi_str, &a, detection_bitmask); init_whois_das_dissector(ndpi_str, &a);
/* ORACLE */ /* ORACLE */
init_oracle_dissector(ndpi_str, &a, detection_bitmask); init_oracle_dissector(ndpi_str, &a);
/* CORBA */ /* CORBA */
init_corba_dissector(ndpi_str, &a, detection_bitmask); init_corba_dissector(ndpi_str, &a);
/* RTMP */ /* RTMP */
init_rtmp_dissector(ndpi_str, &a, detection_bitmask); init_rtmp_dissector(ndpi_str, &a);
/* FTP_CONTROL */ /* FTP_CONTROL */
init_ftp_control_dissector(ndpi_str, &a, detection_bitmask); init_ftp_control_dissector(ndpi_str, &a);
/* FTP_DATA */ /* FTP_DATA */
init_ftp_data_dissector(ndpi_str, &a, detection_bitmask); init_ftp_data_dissector(ndpi_str, &a);
/* MEGACO */ /* MEGACO */
init_megaco_dissector(ndpi_str, &a, detection_bitmask); init_megaco_dissector(ndpi_str, &a);
/* REDIS */ /* REDIS */
init_redis_dissector(ndpi_str, &a, detection_bitmask); init_redis_dissector(ndpi_str, &a);
/* VHUA */ /* VHUA */
init_vhua_dissector(ndpi_str, &a, detection_bitmask); init_vhua_dissector(ndpi_str, &a);
/* ZMQ */ /* ZMQ */
init_zmq_dissector(ndpi_str, &a, detection_bitmask); init_zmq_dissector(ndpi_str, &a);
/* TELEGRAM */ /* TELEGRAM */
init_telegram_dissector(ndpi_str, &a, detection_bitmask); init_telegram_dissector(ndpi_str, &a);
/* QUIC */ /* QUIC */
init_quic_dissector(ndpi_str, &a, detection_bitmask); init_quic_dissector(ndpi_str, &a);
/* DIAMETER */ /* DIAMETER */
init_diameter_dissector(ndpi_str, &a, detection_bitmask); init_diameter_dissector(ndpi_str, &a);
/* APPLE_PUSH */ /* APPLE_PUSH */
init_apple_push_dissector(ndpi_str, &a, detection_bitmask); init_apple_push_dissector(ndpi_str, &a);
/* EAQ */ /* EAQ */
init_eaq_dissector(ndpi_str, &a, detection_bitmask); init_eaq_dissector(ndpi_str, &a);
/* KAKAOTALK_VOICE */ /* KAKAOTALK_VOICE */
init_kakaotalk_voice_dissector(ndpi_str, &a, detection_bitmask); init_kakaotalk_voice_dissector(ndpi_str, &a);
/* MPEGTS */ /* MPEGTS */
init_mpegts_dissector(ndpi_str, &a, detection_bitmask); init_mpegts_dissector(ndpi_str, &a);
/* UBNTAC2 */ /* UBNTAC2 */
init_ubntac2_dissector(ndpi_str, &a, detection_bitmask); init_ubntac2_dissector(ndpi_str, &a);
/* COAP */ /* COAP */
init_coap_dissector(ndpi_str, &a, detection_bitmask); init_coap_dissector(ndpi_str, &a);
/* MQTT */ /* MQTT */
init_mqtt_dissector(ndpi_str, &a, detection_bitmask); init_mqtt_dissector(ndpi_str, &a);
/* SOME/IP */ /* SOME/IP */
init_someip_dissector(ndpi_str, &a, detection_bitmask); init_someip_dissector(ndpi_str, &a);
/* RX */ /* RX */
init_rx_dissector(ndpi_str, &a, detection_bitmask); init_rx_dissector(ndpi_str, &a);
/* GIT */ /* GIT */
init_git_dissector(ndpi_str, &a, detection_bitmask); init_git_dissector(ndpi_str, &a);
/* HANGOUT */ /* HANGOUT */
init_hangout_dissector(ndpi_str, &a, detection_bitmask); init_hangout_dissector(ndpi_str, &a);
/* DRDA */ /* DRDA */
init_drda_dissector(ndpi_str, &a, detection_bitmask); init_drda_dissector(ndpi_str, &a);
/* BJNP */ /* BJNP */
init_bjnp_dissector(ndpi_str, &a, detection_bitmask); init_bjnp_dissector(ndpi_str, &a);
/* SMPP */ /* SMPP */
init_smpp_dissector(ndpi_str, &a, detection_bitmask); init_smpp_dissector(ndpi_str, &a);
/* TINC */ /* TINC */
init_tinc_dissector(ndpi_str, &a, detection_bitmask); init_tinc_dissector(ndpi_str, &a);
/* FIX */ /* FIX */
init_fix_dissector(ndpi_str, &a, detection_bitmask); init_fix_dissector(ndpi_str, &a);
/* NINTENDO */ /* NINTENDO */
init_nintendo_dissector(ndpi_str, &a, detection_bitmask); init_nintendo_dissector(ndpi_str, &a);
/* MODBUS */ /* MODBUS */
init_modbus_dissector(ndpi_str, &a, detection_bitmask); init_modbus_dissector(ndpi_str, &a);
/* CAPWAP */ /* CAPWAP */
init_capwap_dissector(ndpi_str, &a, detection_bitmask); init_capwap_dissector(ndpi_str, &a);
/* ZABBIX */ /* ZABBIX */
init_zabbix_dissector(ndpi_str, &a, detection_bitmask); init_zabbix_dissector(ndpi_str, &a);
/*** Put false-positive sensitive protocols at the end ***/ /*** Put false-positive sensitive protocols at the end ***/
/* VIBER */ /* VIBER */
init_viber_dissector(ndpi_str, &a, detection_bitmask); init_viber_dissector(ndpi_str, &a);
/* SKYPE */ /* SKYPE */
init_skype_dissector(ndpi_str, &a, detection_bitmask); init_skype_dissector(ndpi_str, &a);
/* BITTORRENT */ /* BITTORRENT */
init_bittorrent_dissector(ndpi_str, &a, detection_bitmask); init_bittorrent_dissector(ndpi_str, &a);
/* WHATSAPP */ /* WHATSAPP */
init_whatsapp_dissector(ndpi_str, &a, detection_bitmask); init_whatsapp_dissector(ndpi_str, &a);
/* OOKLA */ /* OOKLA */
init_ookla_dissector(ndpi_str, &a, detection_bitmask); init_ookla_dissector(ndpi_str, &a);
/* AMQP */ /* AMQP */
init_amqp_dissector(ndpi_str, &a, detection_bitmask); init_amqp_dissector(ndpi_str, &a);
/* CSGO */ /* CSGO */
init_csgo_dissector(ndpi_str, &a, detection_bitmask); init_csgo_dissector(ndpi_str, &a);
/* LISP */ /* LISP */
init_lisp_dissector(ndpi_str, &a, detection_bitmask); init_lisp_dissector(ndpi_str, &a);
/* AJP */ /* AJP */
init_ajp_dissector(ndpi_str, &a, detection_bitmask); init_ajp_dissector(ndpi_str, &a);
/* Memcached */ /* Memcached */
init_memcached_dissector(ndpi_str, &a, detection_bitmask); init_memcached_dissector(ndpi_str, &a);
/* Nest Log Sink */ /* Nest Log Sink */
init_nest_log_sink_dissector(ndpi_str, &a, detection_bitmask); init_nest_log_sink_dissector(ndpi_str, &a);
/* WireGuard VPN */ /* WireGuard VPN */
init_wireguard_dissector(ndpi_str, &a, detection_bitmask); init_wireguard_dissector(ndpi_str, &a);
/* Amazon_Video */ /* Amazon_Video */
init_amazon_video_dissector(ndpi_str, &a, detection_bitmask); init_amazon_video_dissector(ndpi_str, &a);
/* S7 comm */ /* S7 comm */
init_s7comm_dissector(ndpi_str, &a, detection_bitmask); init_s7comm_dissector(ndpi_str, &a);
/* IEC 60870-5-104 */ /* IEC 60870-5-104 */
init_104_dissector(ndpi_str, &a, detection_bitmask); init_104_dissector(ndpi_str, &a);
/* DNP3 */ /* DNP3 */
init_dnp3_dissector(ndpi_str, &a, detection_bitmask); init_dnp3_dissector(ndpi_str, &a);
/* WEBSOCKET */ /* WEBSOCKET */
init_websocket_dissector(ndpi_str, &a, detection_bitmask); init_websocket_dissector(ndpi_str, &a);
/* SOAP */ /* SOAP */
init_soap_dissector(ndpi_str, &a, detection_bitmask); init_soap_dissector(ndpi_str, &a);
/* DNScrypt */ /* DNScrypt */
init_dnscrypt_dissector(ndpi_str, &a, detection_bitmask); init_dnscrypt_dissector(ndpi_str, &a);
/* MongoDB */ /* MongoDB */
init_mongodb_dissector(ndpi_str, &a, detection_bitmask); init_mongodb_dissector(ndpi_str, &a);
/* AmongUS */ /* AmongUS */
init_among_us_dissector(ndpi_str, &a, detection_bitmask); init_among_us_dissector(ndpi_str, &a);
/* HP Virtual Machine Group Management */ /* HP Virtual Machine Group Management */
init_hpvirtgrp_dissector(ndpi_str, &a, detection_bitmask); init_hpvirtgrp_dissector(ndpi_str, &a);
/* Genshin Impact */ /* Genshin Impact */
init_genshin_impact_dissector(ndpi_str, &a, detection_bitmask); init_genshin_impact_dissector(ndpi_str, &a);
/* Z39.50 international standard client–server, application layer communications protocol */ /* Z39.50 international standard client–server, application layer communications protocol */
init_z3950_dissector(ndpi_str, &a, detection_bitmask); init_z3950_dissector(ndpi_str, &a);
/* AVAST SecureDNS */ /* AVAST SecureDNS */
init_avast_securedns_dissector(ndpi_str, &a, detection_bitmask); init_avast_securedns_dissector(ndpi_str, &a);
/* Cassandra */ /* Cassandra */
init_cassandra_dissector(ndpi_str, &a, detection_bitmask); init_cassandra_dissector(ndpi_str, &a);
/* EthernetIP */ /* EthernetIP */
init_ethernet_ip_dissector(ndpi_str, &a, detection_bitmask); init_ethernet_ip_dissector(ndpi_str, &a);
/* WSD */ /* WSD */
init_wsd_dissector(ndpi_str, &a, detection_bitmask); init_wsd_dissector(ndpi_str, &a);
/* TocaBoca */ /* TocaBoca */
init_toca_boca_dissector(ndpi_str, &a, detection_bitmask); init_toca_boca_dissector(ndpi_str, &a);
/* SD-RTN Software Defined Real-time Network */ /* SD-RTN Software Defined Real-time Network */
init_sd_rtn_dissector(ndpi_str, &a, detection_bitmask); init_sd_rtn_dissector(ndpi_str, &a);
/* RakNet */ /* RakNet */
init_raknet_dissector(ndpi_str, &a, detection_bitmask); init_raknet_dissector(ndpi_str, &a);
/* Xiaomi */ /* Xiaomi */
init_xiaomi_dissector(ndpi_str, &a, detection_bitmask); init_xiaomi_dissector(ndpi_str, &a);
/* MpegDash */ /* MpegDash */
init_mpegdash_dissector(ndpi_str, &a, detection_bitmask); init_mpegdash_dissector(ndpi_str, &a);
/* RSH */ /* RSH */
init_rsh_dissector(ndpi_str, &a, detection_bitmask); init_rsh_dissector(ndpi_str, &a);
/* IPsec */ /* IPsec */
init_ipsec_dissector(ndpi_str, &a, detection_bitmask); init_ipsec_dissector(ndpi_str, &a);
/* collectd */ /* collectd */
init_collectd_dissector(ndpi_str, &a, detection_bitmask); init_collectd_dissector(ndpi_str, &a);
/* i3D */ /* i3D */
init_i3d_dissector(ndpi_str, &a, detection_bitmask); init_i3d_dissector(ndpi_str, &a);
/* RiotGames */ /* RiotGames */
init_riotgames_dissector(ndpi_str, &a, detection_bitmask); init_riotgames_dissector(ndpi_str, &a);
/* UltraSurf */ /* UltraSurf */
init_ultrasurf_dissector(ndpi_str, &a, detection_bitmask); init_ultrasurf_dissector(ndpi_str, &a);
/* Threema */ /* Threema */
init_threema_dissector(ndpi_str, &a, detection_bitmask); init_threema_dissector(ndpi_str, &a);
/* AliCloud */ /* AliCloud */
init_alicloud_dissector(ndpi_str, &a, detection_bitmask); init_alicloud_dissector(ndpi_str, &a);
/* AVAST */ /* AVAST */
init_avast_dissector(ndpi_str, &a, detection_bitmask); init_avast_dissector(ndpi_str, &a);
/* Softether */ /* Softether */
init_softether_dissector(ndpi_str, &a, detection_bitmask); init_softether_dissector(ndpi_str, &a);
/* Activision */ /* Activision */
init_activision_dissector(ndpi_str, &a, detection_bitmask); init_activision_dissector(ndpi_str, &a);
/* Discord */ /* Discord */
init_discord_dissector(ndpi_str, &a, detection_bitmask); init_discord_dissector(ndpi_str, &a);
/* TiVoConnect */ /* TiVoConnect */
init_tivoconnect_dissector(ndpi_str, &a, detection_bitmask); init_tivoconnect_dissector(ndpi_str, &a);
/* Kismet */ /* Kismet */
init_kismet_dissector(ndpi_str, &a, detection_bitmask); init_kismet_dissector(ndpi_str, &a);
/* FastCGI */ /* FastCGI */
init_fastcgi_dissector(ndpi_str, &a, detection_bitmask); init_fastcgi_dissector(ndpi_str, &a);
/* NATPMP */ /* NATPMP */
init_natpmp_dissector(ndpi_str, &a, detection_bitmask); init_natpmp_dissector(ndpi_str, &a);
/* Syncthing */ /* Syncthing */
init_syncthing_dissector(ndpi_str, &a, detection_bitmask); init_syncthing_dissector(ndpi_str, &a);
/* CryNetwork */ /* CryNetwork */
init_crynet_dissector(ndpi_str, &a, detection_bitmask); init_crynet_dissector(ndpi_str, &a);
/* Line voip */ /* Line voip */
init_line_dissector(ndpi_str, &a, detection_bitmask); init_line_dissector(ndpi_str, &a);
/* Munin */ /* Munin */
init_munin_dissector(ndpi_str, &a, detection_bitmask); init_munin_dissector(ndpi_str, &a);
/* Elasticsearch */ /* Elasticsearch */
init_elasticsearch_dissector(ndpi_str, &a, detection_bitmask); init_elasticsearch_dissector(ndpi_str, &a);
#ifdef CUSTOM_NDPI_PROTOCOLS #ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/custom_ndpi_main_init.c" #include "../../../nDPI-custom/custom_ndpi_main_init.c"
@@ -4727,7 +4757,6 @@ static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) {
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
ndpi_str->callback_buffer_size = a; ndpi_str->callback_buffer_size = a;
NDPI_BITMASK_SET(ndpi_str->detection_bitmask, detection_bitmask_local);
/* Resize callback_buffer */ /* Resize callback_buffer */
all_cb = ndpi_calloc(a+1,sizeof(struct ndpi_call_function_struct)); all_cb = ndpi_calloc(a+1,sizeof(struct ndpi_call_function_struct));
@@ -5125,8 +5154,15 @@ void ndpi_free_flow_data(struct ndpi_flow_struct* flow) {
void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *ndpi_str, void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *ndpi_str,
const NDPI_PROTOCOL_BITMASK *dbm) { const NDPI_PROTOCOL_BITMASK *dbm) {
ndpi_enabled_callbacks_init(ndpi_str,dbm,0);
NDPI_BITMASK_SET(ndpi_str->detection_bitmask, *dbm); NDPI_BITMASK_SET(ndpi_str->detection_bitmask, *dbm);
ndpi_init_protocol_defaults(ndpi_str);
ndpi_enabled_callbacks_init(ndpi_str,dbm,0);
if(ndpi_callback_init(ndpi_str)) {
NDPI_LOG_ERR(ndpi_str, "[NDPI] Error allocating callbacks\n");
}
} }
/* ************************************************ */ /* ************************************************ */
+2 -2
View File
@@ -98,9 +98,9 @@ void ndpi_search_activision(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_activision_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_activision_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Activision", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Activision", ndpi_struct, *id,
NDPI_PROTOCOL_ACTIVISION, NDPI_PROTOCOL_ACTIVISION,
ndpi_search_activision, ndpi_search_activision,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -87,9 +87,9 @@ void ndpi_search_afp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
} }
void init_afp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_afp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("AFP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("AFP", ndpi_struct, *id,
NDPI_PROTOCOL_AFP, NDPI_PROTOCOL_AFP,
ndpi_search_afp, ndpi_search_afp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -257,9 +257,9 @@ void ndpi_search_aimini(struct ndpi_detection_module_struct *ndpi_struct, struct
} }
void init_aimini_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_aimini_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Aimini", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Aimini", ndpi_struct, *id,
NDPI_PROTOCOL_AIMINI, NDPI_PROTOCOL_AIMINI,
ndpi_search_aimini, ndpi_search_aimini,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -126,9 +126,9 @@ void ndpi_search_ajp(struct ndpi_detection_module_struct *ndpi_struct,
void init_ajp_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_ajp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("AJP", ndpi_struct, detection_bitmask, ndpi_set_bitmask_protocol_detection("AJP", ndpi_struct,
*id, NDPI_PROTOCOL_AJP, ndpi_search_ajp, *id, NDPI_PROTOCOL_AJP, ndpi_search_ajp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, SAVE_DETECTION_BITMASK_AS_UNKNOWN,
+2 -2
View File
@@ -68,9 +68,9 @@ void ndpi_search_alicloud(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_alicloud_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_alicloud_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("AliCloud", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("AliCloud", ndpi_struct, *id,
NDPI_PROTOCOL_ALICLOUD, NDPI_PROTOCOL_ALICLOUD,
ndpi_search_alicloud, ndpi_search_alicloud,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -67,8 +67,8 @@ void ndpi_search_amazon_video(struct ndpi_detection_module_struct *ndpi_struct,
void init_amazon_video_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_amazon_video_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("AMAZON_VIDEO", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("AMAZON_VIDEO", ndpi_struct, *id,
NDPI_PROTOCOL_AMAZON_VIDEO, NDPI_PROTOCOL_AMAZON_VIDEO,
ndpi_search_amazon_video, ndpi_search_amazon_video,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -46,11 +46,10 @@ void ndpi_search_among_us(struct ndpi_detection_module_struct *ndpi_struct,
} }
} }
void init_among_us_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_among_us_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection( ndpi_set_bitmask_protocol_detection(
"AmongUs", ndpi_struct, detection_bitmask, *id, "AmongUs", ndpi_struct, *id,
NDPI_PROTOCOL_AMONG_US, ndpi_search_among_us, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_PROTOCOL_AMONG_US, ndpi_search_among_us, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK); SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK);
*id += 1; *id += 1;
+2 -2
View File
@@ -72,8 +72,8 @@ void ndpi_search_amqp(struct ndpi_detection_module_struct *ndpi_struct, struct n
} }
void init_amqp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { void init_amqp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("AMQP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("AMQP", ndpi_struct, *id,
NDPI_PROTOCOL_AMQP, NDPI_PROTOCOL_AMQP,
ndpi_search_amqp, ndpi_search_amqp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -95,9 +95,9 @@ void ndpi_search_apple_push(struct ndpi_detection_module_struct *ndpi_struct, st
} }
void init_apple_push_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_apple_push_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("APPLE_PUSH", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("APPLE_PUSH", ndpi_struct, *id,
NDPI_PROTOCOL_APPLE_PUSH, NDPI_PROTOCOL_APPLE_PUSH,
ndpi_search_apple_push, ndpi_search_apple_push,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -54,9 +54,9 @@ void ndpi_search_applejuice_tcp(struct ndpi_detection_module_struct *ndpi_struct
} }
void init_applejuice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_applejuice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("AppleJuice", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("AppleJuice", ndpi_struct, *id,
NDPI_PROTOCOL_APPLEJUICE, NDPI_PROTOCOL_APPLEJUICE,
ndpi_search_applejuice_tcp, ndpi_search_applejuice_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -96,9 +96,9 @@ void ndpi_search_armagetron_udp(struct ndpi_detection_module_struct *ndpi_struct
void init_armagetron_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_armagetron_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Armagetron", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Armagetron", ndpi_struct, *id,
NDPI_PROTOCOL_ARMAGETRON, NDPI_PROTOCOL_ARMAGETRON,
ndpi_search_armagetron_udp, ndpi_search_armagetron_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -52,11 +52,10 @@ static void ndpi_search_avast(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_EXCLUDE_PROTO(ndpi_struct, flow); NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
} }
void init_avast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_avast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection("AVAST", ndpi_set_bitmask_protocol_detection("AVAST",
ndpi_struct, detection_bitmask, *id, ndpi_struct, *id,
NDPI_PROTOCOL_AVAST, NDPI_PROTOCOL_AVAST,
ndpi_search_avast, ndpi_search_avast,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -53,11 +53,10 @@ static void ndpi_search_avast_securedns(struct ndpi_detection_module_struct *ndp
NDPI_EXCLUDE_PROTO(ndpi_struct, flow); NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
} }
void init_avast_securedns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_avast_securedns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection("AVAST SecureDNS", ndpi_set_bitmask_protocol_detection("AVAST SecureDNS",
ndpi_struct, detection_bitmask, *id, ndpi_struct, *id,
NDPI_PROTOCOL_AVAST_SECUREDNS, NDPI_PROTOCOL_AVAST_SECUREDNS,
ndpi_search_avast_securedns, ndpi_search_avast_securedns,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -74,9 +74,9 @@ void ndpi_search_ayiya(struct ndpi_detection_module_struct *ndpi_struct, struct
} }
void init_ayiya_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_ayiya_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Ayiya", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Ayiya", ndpi_struct, *id,
NDPI_PROTOCOL_AYIYA, NDPI_PROTOCOL_AYIYA,
ndpi_search_ayiya, ndpi_search_ayiya,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -54,9 +54,9 @@ void ndpi_search_bgp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
} }
void init_bgp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_bgp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("BGP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("BGP", ndpi_struct, *id,
NDPI_PROTOCOL_BGP, NDPI_PROTOCOL_BGP,
ndpi_search_bgp, ndpi_search_bgp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -575,9 +575,9 @@ static void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_str
/* ************************************* */ /* ************************************* */
void init_bittorrent_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_bittorrent_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("BitTorrent", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("BitTorrent", ndpi_struct, *id,
NDPI_PROTOCOL_BITTORRENT, NDPI_PROTOCOL_BITTORRENT,
ndpi_search_bittorrent, ndpi_search_bittorrent,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -45,9 +45,9 @@ void ndpi_search_bjnp(struct ndpi_detection_module_struct *ndpi_struct, struct n
} }
void init_bjnp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_bjnp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("BJNP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("BJNP", ndpi_struct, *id,
NDPI_PROTOCOL_BJNP, NDPI_PROTOCOL_BJNP,
ndpi_search_bjnp, ndpi_search_bjnp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -131,9 +131,9 @@ void ndpi_search_capwap(struct ndpi_detection_module_struct *ndpi_struct, struct
void init_capwap_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_capwap_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("CAPWAP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("CAPWAP", ndpi_struct, *id,
NDPI_PROTOCOL_CAPWAP, NDPI_PROTOCOL_CAPWAP,
ndpi_search_capwap, ndpi_search_capwap,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -137,11 +137,10 @@ void ndpi_search_cassandra(struct ndpi_detection_module_struct *ndpi_struct,
void init_cassandra_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_cassandra_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, u_int32_t *id) {
NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("Cassandra", ndpi_set_bitmask_protocol_detection("Cassandra",
ndpi_struct, detection_bitmask, ndpi_struct,
*id, *id,
NDPI_PROTOCOL_CASSANDRA, NDPI_PROTOCOL_CASSANDRA,
ndpi_search_cassandra, ndpi_search_cassandra,
+2 -2
View File
@@ -70,9 +70,9 @@ void ndpi_search_checkmk(struct ndpi_detection_module_struct *ndpi_struct,
void init_checkmk_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_checkmk_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("CHECKMK", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("CHECKMK", ndpi_struct, *id,
NDPI_PROTOCOL_CHECKMK, NDPI_PROTOCOL_CHECKMK,
ndpi_search_checkmk, ndpi_search_checkmk,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -70,9 +70,9 @@ void ndpi_search_ciscovpn(struct ndpi_detection_module_struct *ndpi_struct, stru
} }
void init_ciscovpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_ciscovpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("CiscoVPN", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("CiscoVPN", ndpi_struct, *id,
NDPI_PROTOCOL_CISCOVPN, NDPI_PROTOCOL_CISCOVPN,
ndpi_search_ciscovpn, ndpi_search_ciscovpn,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -67,9 +67,9 @@ void ndpi_search_citrix(struct ndpi_detection_module_struct *ndpi_struct, struct
} }
void init_citrix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_citrix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Citrix", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Citrix", ndpi_struct, *id,
NDPI_PROTOCOL_CITRIX, NDPI_PROTOCOL_CITRIX,
ndpi_search_citrix, ndpi_search_citrix,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -147,9 +147,9 @@ void ndpi_search_coap (struct ndpi_detection_module_struct *ndpi_struct,
* Entry point for the ndpi library * Entry point for the ndpi library
*/ */
void init_coap_dissector (struct ndpi_detection_module_struct *ndpi_struct, void init_coap_dissector (struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection ("COAP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection ("COAP", ndpi_struct, *id,
NDPI_PROTOCOL_COAP, NDPI_PROTOCOL_COAP,
ndpi_search_coap, ndpi_search_coap,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -195,9 +195,9 @@ void ndpi_search_collectd(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_collectd_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_collectd_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("collectd", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("collectd", ndpi_struct, *id,
NDPI_PROTOCOL_COLLECTD, NDPI_PROTOCOL_COLLECTD,
ndpi_search_collectd, ndpi_search_collectd,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -46,9 +46,9 @@ void ndpi_search_corba(struct ndpi_detection_module_struct *ndpi_struct, struct
} }
void init_corba_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_corba_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Corba", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Corba", ndpi_struct, *id,
NDPI_PROTOCOL_CORBA, NDPI_PROTOCOL_CORBA,
ndpi_search_corba, ndpi_search_corba,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -51,9 +51,8 @@ void ndpi_search_cpha(struct ndpi_detection_module_struct *ndpi_struct, struct n
} }
void init_cpha_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_cpha_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
NDPI_PROTOCOL_BITMASK *detection_bitmask) { ndpi_set_bitmask_protocol_detection("CPHA", ndpi_struct, *id,
ndpi_set_bitmask_protocol_detection("CPHA", ndpi_struct, detection_bitmask, *id,
NDPI_PROTOCOL_CPHA, NDPI_PROTOCOL_CPHA,
ndpi_search_cpha, ndpi_search_cpha,
NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD, /* TODO: ipv6 support? */ NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD, /* TODO: ipv6 support? */
+2 -2
View File
@@ -76,9 +76,9 @@ void ndpi_search_crossfire_tcp_udp(struct ndpi_detection_module_struct *ndpi_str
} }
void init_crossfire_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_crossfire_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Crossfire", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Crossfire", ndpi_struct, *id,
NDPI_PROTOCOL_CROSSFIRE, NDPI_PROTOCOL_CROSSFIRE,
ndpi_search_crossfire_tcp_udp, ndpi_search_crossfire_tcp_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -67,9 +67,9 @@ void ndpi_search_crynet(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_crynet_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_crynet_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("CryNetwork", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("CryNetwork", ndpi_struct, *id,
NDPI_PROTOCOL_CRYNET, NDPI_PROTOCOL_CRYNET,
ndpi_search_crynet, ndpi_search_crynet,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -130,9 +130,9 @@ void ndpi_search_csgo(struct ndpi_detection_module_struct* ndpi_struct, struct n
NDPI_EXCLUDE_PROTO(ndpi_struct, flow); NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
} }
void init_csgo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_csgo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("CSGO", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("CSGO", ndpi_struct, *id,
NDPI_PROTOCOL_CSGO, NDPI_PROTOCOL_CSGO,
ndpi_search_csgo, ndpi_search_csgo,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -93,9 +93,9 @@ void ndpi_search_dcerpc(struct ndpi_detection_module_struct *ndpi_struct, struct
} }
void init_dcerpc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_dcerpc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("RPC", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("RPC", ndpi_struct, *id,
NDPI_PROTOCOL_RPC, NDPI_PROTOCOL_RPC,
ndpi_search_dcerpc, ndpi_search_dcerpc,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -191,8 +191,8 @@ void ndpi_search_dhcp_udp(struct ndpi_detection_module_struct *ndpi_struct,
void init_dhcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_dhcp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("DHCP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("DHCP", ndpi_struct, *id,
NDPI_PROTOCOL_DHCP, NDPI_PROTOCOL_DHCP,
ndpi_search_dhcp_udp, ndpi_search_dhcp_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -56,9 +56,9 @@ void ndpi_search_dhcpv6_udp(struct ndpi_detection_module_struct *ndpi_struct, st
} }
void init_dhcpv6_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_dhcpv6_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("DHCPV6", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("DHCPV6", ndpi_struct, *id,
NDPI_PROTOCOL_DHCPV6, NDPI_PROTOCOL_DHCPV6,
ndpi_search_dhcpv6_udp, ndpi_search_dhcpv6_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -104,10 +104,9 @@ void ndpi_search_diameter(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection("Diameter", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Diameter", ndpi_struct, *id,
NDPI_PROTOCOL_DIAMETER, ndpi_search_diameter, NDPI_PROTOCOL_DIAMETER, ndpi_search_diameter,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK); SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK);
+2 -2
View File
@@ -193,9 +193,9 @@ void ndpi_search_directconnect(struct ndpi_detection_module_struct
} }
void init_directconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_directconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("DirectConnect", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("DirectConnect", ndpi_struct, *id,
NDPI_PROTOCOL_DIRECTCONNECT, NDPI_PROTOCOL_DIRECTCONNECT,
ndpi_search_directconnect, ndpi_search_directconnect,
/* TODO: UDP?*/ /* TODO: UDP?*/
+2 -2
View File
@@ -712,9 +712,9 @@ void ndpi_search_direct_download_link_tcp(struct ndpi_detection_module_struct *n
} }
void init_directdownloadlink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_directdownloadlink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Direct_Download_Link", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Direct_Download_Link", ndpi_struct, *id,
NDPI_PROTOCOL_DIRECT_DOWNLOAD_LINK, NDPI_PROTOCOL_DIRECT_DOWNLOAD_LINK,
ndpi_search_direct_download_link_tcp, ndpi_search_direct_download_link_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -74,9 +74,9 @@ void ndpi_search_discord(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_discord_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_discord_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Discord", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Discord", ndpi_struct, *id,
NDPI_PROTOCOL_DISCORD, NDPI_PROTOCOL_DISCORD,
ndpi_search_discord, ndpi_search_discord,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -55,9 +55,9 @@ void ndpi_search_dnp3_tcp(struct ndpi_detection_module_struct *ndpi_struct,
/* ******************************************************** */ /* ******************************************************** */
void init_dnp3_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_dnp3_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("DNP3", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("DNP3", ndpi_struct, *id,
NDPI_PROTOCOL_DNP3, NDPI_PROTOCOL_DNP3,
ndpi_search_dnp3_tcp, ndpi_search_dnp3_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -685,8 +685,8 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st
/* *********************************************** */ /* *********************************************** */
void init_dns_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_dns_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("DNS", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("DNS", ndpi_struct, *id,
NDPI_PROTOCOL_DNS, NDPI_PROTOCOL_DNS,
ndpi_search_dns, ndpi_search_dns,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -66,11 +66,10 @@ void ndpi_search_dnscrypt(struct ndpi_detection_module_struct *ndpi_struct,
} }
} }
void init_dnscrypt_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_dnscrypt_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection( ndpi_set_bitmask_protocol_detection(
"DNScrypt", ndpi_struct, detection_bitmask, *id, "DNScrypt", ndpi_struct, *id,
NDPI_PROTOCOL_DNSCRYPT, ndpi_search_dnscrypt, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_PROTOCOL_DNSCRYPT, ndpi_search_dnscrypt, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK); SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK);
*id += 1; *id += 1;
+2 -2
View File
@@ -138,9 +138,9 @@ maybe_dofus:
} }
void init_dofus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_dofus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Dofus", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Dofus", ndpi_struct, *id,
NDPI_PROTOCOL_DOFUS, NDPI_PROTOCOL_DOFUS,
ndpi_search_dofus, ndpi_search_dofus,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -89,10 +89,9 @@ void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************************** */ /* ***************************************************************** */
void init_drda_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_drda_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection("DRDA", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("DRDA", ndpi_struct, *id,
NDPI_PROTOCOL_DRDA, NDPI_PROTOCOL_DRDA,
ndpi_search_drda, ndpi_search_drda,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -81,9 +81,9 @@ void ndpi_search_dropbox(struct ndpi_detection_module_struct *ndpi_struct, struc
} }
void init_dropbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_dropbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("DROPBOX", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("DROPBOX", ndpi_struct, *id,
NDPI_PROTOCOL_DROPBOX, NDPI_PROTOCOL_DROPBOX,
ndpi_search_dropbox, ndpi_search_dropbox,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -79,9 +79,9 @@ void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, struct nd
} }
void init_eaq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_eaq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("EAQ", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("EAQ", ndpi_struct, *id,
NDPI_PROTOCOL_EAQ, NDPI_PROTOCOL_EAQ,
ndpi_search_eaq, ndpi_search_eaq,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -208,9 +208,9 @@ void ndpi_search_edonkey(struct ndpi_detection_module_struct *ndpi_struct, struc
} }
void init_edonkey_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_edonkey_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("eDonkey", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("eDonkey", ndpi_struct, *id,
NDPI_PROTOCOL_EDONKEY, NDPI_PROTOCOL_EDONKEY,
ndpi_search_edonkey, ndpi_search_edonkey,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -71,9 +71,9 @@ void ndpi_search_elasticsearch(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************** */ /* ***************************************************** */
void init_elasticsearch_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_elasticsearch_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Elasticsearch", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Elasticsearch", ndpi_struct, *id,
NDPI_PROTOCOL_ELASTICSEARCH, NDPI_PROTOCOL_ELASTICSEARCH,
ndpi_search_elasticsearch, ndpi_search_elasticsearch,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -60,8 +60,8 @@ void ndpi_search_ethernet_ip(struct ndpi_detection_module_struct *ndpi_struct,
void init_ethernet_ip_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_ethernet_ip_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("EthernetIP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("EthernetIP", ndpi_struct, *id,
NDPI_PROTOCOL_ETHERNET_IP, NDPI_PROTOCOL_ETHERNET_IP,
ndpi_search_ethernet_ip, ndpi_search_ethernet_ip,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -243,9 +243,9 @@ static int ndpi_search_fastcgi_extra(struct ndpi_detection_module_struct * ndpi_
} }
void init_fastcgi_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_fastcgi_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("FastCGI", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("FastCGI", ndpi_struct, *id,
NDPI_PROTOCOL_FASTCGI, NDPI_PROTOCOL_FASTCGI,
ndpi_search_fastcgi, ndpi_search_fastcgi,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -82,9 +82,9 @@ void ndpi_search_fasttrack_tcp(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_fasttrack_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_fasttrack_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("FastTrack", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("FastTrack", ndpi_struct, *id,
NDPI_PROTOCOL_FASTTRACK, NDPI_PROTOCOL_FASTTRACK,
ndpi_search_fasttrack_tcp, ndpi_search_fasttrack_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -92,9 +92,9 @@ void ndpi_search_fiesta(struct ndpi_detection_module_struct *ndpi_struct, struct
} }
void init_fiesta_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_fiesta_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Fiesta", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Fiesta", ndpi_struct, *id,
NDPI_PROTOCOL_FIESTA, NDPI_PROTOCOL_FIESTA,
ndpi_search_fiesta, ndpi_search_fiesta,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -62,9 +62,9 @@ void ndpi_search_fix(struct ndpi_detection_module_struct *ndpi_struct, struct nd
} }
void init_fix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_fix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("FIX", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("FIX", ndpi_struct, *id,
NDPI_PROTOCOL_FIX, NDPI_PROTOCOL_FIX,
ndpi_search_fix, ndpi_search_fix,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -117,9 +117,9 @@ void ndpi_search_florensia(struct ndpi_detection_module_struct *ndpi_struct, str
} }
void init_florensia_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_florensia_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Florensia", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Florensia", ndpi_struct, *id,
NDPI_PROTOCOL_FLORENSIA, NDPI_PROTOCOL_FLORENSIA,
ndpi_search_florensia, ndpi_search_florensia,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -685,8 +685,8 @@ void ndpi_search_ftp_control(struct ndpi_detection_module_struct *ndpi_struct,
/* *************************************************************** */ /* *************************************************************** */
void init_ftp_control_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_ftp_control_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("FTP_CONTROL", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("FTP_CONTROL", ndpi_struct, *id,
NDPI_PROTOCOL_FTP_CONTROL, NDPI_PROTOCOL_FTP_CONTROL,
ndpi_search_ftp_control, ndpi_search_ftp_control,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -261,9 +261,9 @@ void ndpi_search_ftp_data(struct ndpi_detection_module_struct *ndpi_struct, stru
} }
void init_ftp_data_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_ftp_data_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("FTP_DATA", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("FTP_DATA", ndpi_struct, *id,
NDPI_PROTOCOL_FTP_DATA, NDPI_PROTOCOL_FTP_DATA,
ndpi_search_ftp_data, ndpi_search_ftp_data,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -72,11 +72,10 @@ static void ndpi_search_genshin_impact(struct ndpi_detection_module_struct *ndpi
/* ***************************************************************** */ /* ***************************************************************** */
void init_genshin_impact_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_genshin_impact_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection("GenshinImpact", ndpi_set_bitmask_protocol_detection("GenshinImpact",
ndpi_struct, detection_bitmask, *id, ndpi_struct, *id,
NDPI_PROTOCOL_GENSHIN_IMPACT, NDPI_PROTOCOL_GENSHIN_IMPACT,
ndpi_search_genshin_impact, ndpi_search_genshin_impact,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -73,10 +73,9 @@ void ndpi_search_git(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************************** */ /* ***************************************************************** */
void init_git_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_git_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection("Git", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Git", ndpi_struct, *id,
NDPI_PROTOCOL_GIT, NDPI_PROTOCOL_GIT,
ndpi_search_git, ndpi_search_git,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -314,9 +314,9 @@ void ndpi_search_gnutella(struct ndpi_detection_module_struct *ndpi_struct, stru
} }
void init_gnutella_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_gnutella_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Gnutella", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Gnutella", ndpi_struct, *id,
NDPI_PROTOCOL_GNUTELLA, NDPI_PROTOCOL_GNUTELLA,
ndpi_search_gnutella, ndpi_search_gnutella,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -128,9 +128,9 @@ void ndpi_search_gtp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
} }
void init_gtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_gtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("GTP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("GTP", ndpi_struct, *id,
NDPI_PROTOCOL_GTP, NDPI_PROTOCOL_GTP,
ndpi_search_gtp, ndpi_search_gtp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -65,9 +65,9 @@ void ndpi_search_guildwars_tcp(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_guildwars_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_guildwars_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Guildwars", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Guildwars", ndpi_struct, *id,
NDPI_PROTOCOL_GUILDWARS, NDPI_PROTOCOL_GUILDWARS,
ndpi_search_guildwars_tcp, ndpi_search_guildwars_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -117,9 +117,9 @@ void ndpi_search_h323(struct ndpi_detection_module_struct *ndpi_struct, struct n
NDPI_EXCLUDE_PROTO(ndpi_struct, flow); NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
} }
void init_h323_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_h323_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("H323", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("H323", ndpi_struct, *id,
NDPI_PROTOCOL_H323, NDPI_PROTOCOL_H323,
ndpi_search_h323, ndpi_search_h323,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -64,9 +64,9 @@ void ndpi_search_halflife2(struct ndpi_detection_module_struct *ndpi_struct, str
} }
void init_halflife2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_halflife2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("HalfLife2", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("HalfLife2", ndpi_struct, *id,
NDPI_PROTOCOL_HALFLIFE2, NDPI_PROTOCOL_HALFLIFE2,
ndpi_search_halflife2, ndpi_search_halflife2,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -94,9 +94,8 @@ void ndpi_search_hangout(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************************** */ /* ***************************************************************** */
void init_hangout_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_hangout_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
NDPI_PROTOCOL_BITMASK *detection_bitmask) { ndpi_set_bitmask_protocol_detection("GoogleHangout", ndpi_struct, *id,
ndpi_set_bitmask_protocol_detection("GoogleHangout", ndpi_struct, detection_bitmask, *id,
NDPI_PROTOCOL_HANGOUT_DUO, NDPI_PROTOCOL_HANGOUT_DUO,
ndpi_search_hangout, ndpi_search_hangout,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -56,11 +56,10 @@ static void ndpi_search_hpvirtgrp(struct ndpi_detection_module_struct *ndpi_stru
/* ***************************************************************** */ /* ***************************************************************** */
void init_hpvirtgrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_hpvirtgrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
NDPI_PROTOCOL_BITMASK *detection_bitmask)
{ {
ndpi_set_bitmask_protocol_detection("HP Virtual Machine Group Management", ndpi_set_bitmask_protocol_detection("HP Virtual Machine Group Management",
ndpi_struct, detection_bitmask, *id, ndpi_struct, *id,
NDPI_PROTOCOL_HPVIRTGRP, NDPI_PROTOCOL_HPVIRTGRP,
ndpi_search_hpvirtgrp, ndpi_search_hpvirtgrp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -81,8 +81,8 @@ void ndpi_search_hsrp(struct ndpi_detection_module_struct *ndpi_struct,
void init_hsrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_hsrp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("HSRP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("HSRP", ndpi_struct, *id,
NDPI_PROTOCOL_HSRP, NDPI_PROTOCOL_HSRP,
ndpi_search_hsrp, ndpi_search_hsrp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -1522,9 +1522,8 @@ char* ndpi_get_http_content_type(struct ndpi_detection_module_struct *ndpi_struc
} }
void init_http_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, void init_http_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
NDPI_PROTOCOL_BITMASK *detection_bitmask) { ndpi_set_bitmask_protocol_detection("HTTP",ndpi_struct, *id,
ndpi_set_bitmask_protocol_detection("HTTP",ndpi_struct, detection_bitmask, *id,
NDPI_PROTOCOL_HTTP, NDPI_PROTOCOL_HTTP,
ndpi_search_http_tcp, ndpi_search_http_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -75,9 +75,9 @@ void ndpi_search_i3d(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_i3d_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_i3d_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("i3D", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("i3D", ndpi_struct, *id,
NDPI_PROTOCOL_I3D, NDPI_PROTOCOL_I3D,
ndpi_search_i3d, ndpi_search_i3d,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -95,9 +95,9 @@ void ndpi_search_iax(struct ndpi_detection_module_struct *ndpi_struct, struct nd
} }
void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("IAX", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("IAX", ndpi_struct, *id,
NDPI_PROTOCOL_IAX, NDPI_PROTOCOL_IAX,
ndpi_search_iax, ndpi_search_iax,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -87,9 +87,9 @@ void ndpi_search_icecast_tcp(struct ndpi_detection_module_struct *ndpi_struct, s
} }
void init_icecast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_icecast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("IceCast", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("IceCast", ndpi_struct, *id,
NDPI_PROTOCOL_ICECAST, NDPI_PROTOCOL_ICECAST,
ndpi_search_icecast_tcp, ndpi_search_icecast_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -72,8 +72,8 @@ void ndpi_search_iec60870_tcp(struct ndpi_detection_module_struct *ndpi_struct,
void init_104_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_104_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("IEC60870", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("IEC60870", ndpi_struct, *id,
NDPI_PROTOCOL_IEC60870, NDPI_PROTOCOL_IEC60870,
ndpi_search_iec60870_tcp, ndpi_search_iec60870_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -68,8 +68,8 @@ void ndpi_search_imo(struct ndpi_detection_module_struct *ndpi_struct, struct nd
void init_imo_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_imo_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("IMO", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("IMO", ndpi_struct, *id,
NDPI_PROTOCOL_IMO, NDPI_PROTOCOL_IMO,
ndpi_search_imo, ndpi_search_imo,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -55,9 +55,9 @@ void ndpi_search_ipp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
} }
void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("IPP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("IPP", ndpi_struct, *id,
NDPI_PROTOCOL_IPP, NDPI_PROTOCOL_IPP,
ndpi_search_ipp, ndpi_search_ipp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -183,9 +183,9 @@ void ndpi_search_ipsec(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_ipsec_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_ipsec_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("IPSec", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("IPSec", ndpi_struct, *id,
NDPI_PROTOCOL_IPSEC, NDPI_PROTOCOL_IPSEC,
ndpi_search_ipsec, ndpi_search_ipsec,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -616,9 +616,9 @@ void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc
} }
void init_irc_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_irc_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("IRC", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("IRC", ndpi_struct, *id,
NDPI_PROTOCOL_IRC, NDPI_PROTOCOL_IRC,
ndpi_search_irc_tcp, ndpi_search_irc_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -139,9 +139,9 @@ void ndpi_search_jabber_tcp(struct ndpi_detection_module_struct *ndpi_struct, st
} }
void init_jabber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_jabber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Jabber", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Jabber", ndpi_struct, *id,
NDPI_PROTOCOL_JABBER, NDPI_PROTOCOL_JABBER,
ndpi_search_jabber_tcp, ndpi_search_jabber_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -65,9 +65,9 @@ void ndpi_search_kakaotalk_voice(struct ndpi_detection_module_struct *ndpi_struc
void init_kakaotalk_voice_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_kakaotalk_voice_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("KakaoTalk_Voice", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("KakaoTalk_Voice", ndpi_struct, *id,
NDPI_PROTOCOL_KAKAOTALK_VOICE, NDPI_PROTOCOL_KAKAOTALK_VOICE,
ndpi_search_kakaotalk_voice, ndpi_search_kakaotalk_voice,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -697,8 +697,8 @@ static int ndpi_search_kerberos_extra(struct ndpi_detection_module_struct *ndpi_
} }
void init_kerberos_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_kerberos_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("Kerberos", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Kerberos", ndpi_struct, *id,
NDPI_PROTOCOL_KERBEROS, NDPI_PROTOCOL_KERBEROS,
ndpi_search_kerberos, ndpi_search_kerberos,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -58,9 +58,9 @@ void ndpi_search_kismet(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_kismet_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_kismet_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("kismet", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("kismet", ndpi_struct, *id,
NDPI_PROTOCOL_KISMET, NDPI_PROTOCOL_KISMET,
ndpi_search_kismet, ndpi_search_kismet,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -65,9 +65,9 @@ void ndpi_search_kontiki(struct ndpi_detection_module_struct *ndpi_struct, struc
void init_kontiki_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_kontiki_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Kontiki", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Kontiki", ndpi_struct, *id,
NDPI_PROTOCOL_KONTIKI, NDPI_PROTOCOL_KONTIKI,
ndpi_search_kontiki, ndpi_search_kontiki,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -69,9 +69,9 @@ void ndpi_search_ldap(struct ndpi_detection_module_struct *ndpi_struct, struct n
} }
void init_ldap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_ldap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("LDAP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("LDAP", ndpi_struct, *id,
NDPI_PROTOCOL_LDAP, NDPI_PROTOCOL_LDAP,
ndpi_search_ldap, ndpi_search_ldap,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -78,9 +78,9 @@ void ndpi_search_line(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_line_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_line_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("LineCall", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("LineCall", ndpi_struct, *id,
NDPI_PROTOCOL_LINE_CALL, NDPI_PROTOCOL_LINE_CALL,
ndpi_search_line, ndpi_search_line,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -85,9 +85,9 @@ void ndpi_search_lisp(struct ndpi_detection_module_struct *ndpi_struct, struct n
} }
void init_lisp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_lisp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("LISP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("LISP", ndpi_struct, *id,
NDPI_PROTOCOL_LISP, NDPI_PROTOCOL_LISP,
ndpi_search_lisp, ndpi_search_lisp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -59,9 +59,9 @@ void ndpi_search_lotus_notes(struct ndpi_detection_module_struct *ndpi_struct, s
} }
void init_lotus_notes_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_lotus_notes_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("LotusNotes", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("LotusNotes", ndpi_struct, *id,
NDPI_PROTOCOL_LOTUS_NOTES, NDPI_PROTOCOL_LOTUS_NOTES,
ndpi_search_lotus_notes, ndpi_search_lotus_notes,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -359,9 +359,9 @@ void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_mail_imap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_mail_imap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("MAIL_IMAP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("MAIL_IMAP", ndpi_struct, *id,
NDPI_PROTOCOL_MAIL_IMAP, NDPI_PROTOCOL_MAIL_IMAP,
ndpi_search_mail_imap_tcp, ndpi_search_mail_imap_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -270,8 +270,8 @@ static void popInitExtraPacketProcessing(struct ndpi_flow_struct *flow) {
/* **************************************** */ /* **************************************** */
void init_mail_pop_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_mail_pop_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("MAIL_POP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("MAIL_POP", ndpi_struct, *id,
NDPI_PROTOCOL_MAIL_POP, NDPI_PROTOCOL_MAIL_POP,
ndpi_search_mail_pop_tcp, ndpi_search_mail_pop_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -472,8 +472,8 @@ static void smtpInitExtraPacketProcessing(struct ndpi_flow_struct *flow) {
/* **************************************** */ /* **************************************** */
void init_mail_smtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_mail_smtp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("MAIL_SMTP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("MAIL_SMTP", ndpi_struct, *id,
NDPI_PROTOCOL_MAIL_SMTP, NDPI_PROTOCOL_MAIL_SMTP,
ndpi_search_mail_smtp_tcp, ndpi_search_mail_smtp_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -81,9 +81,9 @@ void ndpi_search_maplestory(struct ndpi_detection_module_struct *ndpi_struct, st
} }
void init_maplestory_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_maplestory_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("MapleStory", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("MapleStory", ndpi_struct, *id,
NDPI_PROTOCOL_MAPLESTORY, NDPI_PROTOCOL_MAPLESTORY,
ndpi_search_maplestory, ndpi_search_maplestory,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -50,9 +50,9 @@ void ndpi_search_megaco(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_megaco_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_megaco_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Megaco", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Megaco", ndpi_struct, *id,
NDPI_PROTOCOL_MEGACO, NDPI_PROTOCOL_MEGACO,
ndpi_search_megaco, ndpi_search_megaco,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -175,10 +175,10 @@ void ndpi_search_memcached(
void init_memcached_dissector( void init_memcached_dissector(
struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("MEMCACHED", ndpi_set_bitmask_protocol_detection("MEMCACHED",
ndpi_struct, detection_bitmask, *id, ndpi_struct, *id,
NDPI_PROTOCOL_MEMCACHED, NDPI_PROTOCOL_MEMCACHED,
ndpi_search_memcached, ndpi_search_memcached,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -98,9 +98,9 @@ void ndpi_search_mgcp(struct ndpi_detection_module_struct *ndpi_struct, struct n
} }
void init_mgcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_mgcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("MGCP", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("MGCP", ndpi_struct, *id,
NDPI_PROTOCOL_MGCP, NDPI_PROTOCOL_MGCP,
ndpi_search_mgcp, ndpi_search_mgcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -185,9 +185,9 @@ void ndpi_search_mining(struct ndpi_detection_module_struct *ndpi_struct,
/* ************************************************************************** */ /* ************************************************************************** */
void init_mining_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_mining_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("Mining", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Mining", ndpi_struct, *id,
NDPI_PROTOCOL_MINING, NDPI_PROTOCOL_MINING,
ndpi_search_mining, ndpi_search_mining,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -59,9 +59,9 @@ void ndpi_search_modbus_tcp(struct ndpi_detection_module_struct *ndpi_struct,
void init_modbus_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_modbus_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("Modbus", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("Modbus", ndpi_struct, *id,
NDPI_PROTOCOL_MODBUS, NDPI_PROTOCOL_MODBUS,
ndpi_search_modbus_tcp, ndpi_search_modbus_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -138,8 +138,8 @@ void ndpi_search_mongodb(struct ndpi_detection_module_struct *ndpi_struct,
void init_mongodb_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_mongodb_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) { u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("MongoDB", ndpi_struct, detection_bitmask, ndpi_set_bitmask_protocol_detection("MongoDB", ndpi_struct,
*id, NDPI_PROTOCOL_MONGODB, ndpi_search_mongodb, *id, NDPI_PROTOCOL_MONGODB, ndpi_search_mongodb,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, SAVE_DETECTION_BITMASK_AS_UNKNOWN,
+2 -2
View File
@@ -87,9 +87,9 @@ void ndpi_search_mpegdash_http(struct ndpi_detection_module_struct *ndpi_struct,
} }
void init_mpegdash_dissector(struct ndpi_detection_module_struct *ndpi_struct, void init_mpegdash_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("MpegDash", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("MpegDash", ndpi_struct, *id,
NDPI_PROTOCOL_MPEGDASH, NDPI_PROTOCOL_MPEGDASH,
ndpi_search_mpegdash_http, ndpi_search_mpegdash_http,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -51,9 +51,9 @@ void ndpi_search_mpegts(struct ndpi_detection_module_struct *ndpi_struct, struct
} }
void init_mpegts_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) void init_mpegts_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection("MPEG_TS", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection("MPEG_TS", ndpi_struct, *id,
NDPI_PROTOCOL_MPEGTS, NDPI_PROTOCOL_MPEGTS,
ndpi_search_mpegts, ndpi_search_mpegts,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -263,9 +263,9 @@ void ndpi_search_mqtt (struct ndpi_detection_module_struct *ndpi_struct,
* Entry point for the ndpi library * Entry point for the ndpi library
*/ */
void init_mqtt_dissector (struct ndpi_detection_module_struct *ndpi_struct, void init_mqtt_dissector (struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) u_int32_t *id)
{ {
ndpi_set_bitmask_protocol_detection ("MQTT", ndpi_struct, detection_bitmask, *id, ndpi_set_bitmask_protocol_detection ("MQTT", ndpi_struct, *id,
NDPI_PROTOCOL_MQTT, NDPI_PROTOCOL_MQTT,
ndpi_search_mqtt, ndpi_search_mqtt,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,

Some files were not shown because too many files have changed in this diff Show More