diff options
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/mining.c | 4 | ||||
-rw-r--r-- | src/lib/protocols/smb.c | 4 | ||||
-rw-r--r-- | src/lib/protocols/tls.c | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/protocols/mining.c b/src/lib/protocols/mining.c index c12203adb..eb5e651d9 100644 --- a/src/lib/protocols/mining.c +++ b/src/lib/protocols/mining.c @@ -67,7 +67,7 @@ static void ndpi_search_mining_udp(struct ndpi_detection_module_struct *ndpi_str } } - ndpi_exclude_protocol(ndpi_struct, flow, NDPI_PROTOCOL_MINING, __FILE__, __FUNCTION__, __LINE__); + NDPI_EXCLUDE_PROTO(ndpi_struct, flow); } /* ************************************************************************** */ @@ -159,7 +159,7 @@ static void ndpi_search_mining_tcp(struct ndpi_detection_module_struct *ndpi_str } } - ndpi_exclude_protocol(ndpi_struct, flow, NDPI_PROTOCOL_MINING, __FILE__, __FUNCTION__, __LINE__); + NDPI_EXCLUDE_PROTO(ndpi_struct, flow); } /* ************************************************************************** */ diff --git a/src/lib/protocols/smb.c b/src/lib/protocols/smb.c index c84196343..2633fc9b7 100644 --- a/src/lib/protocols/smb.c +++ b/src/lib/protocols/smb.c @@ -63,8 +63,8 @@ void ndpi_search_smb_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc } } - ndpi_exclude_protocol(ndpi_struct, flow, NDPI_PROTOCOL_SMBV1, __FILE__, __FUNCTION__, __LINE__); - ndpi_exclude_protocol(ndpi_struct, flow, NDPI_PROTOCOL_SMBV23, __FILE__, __FUNCTION__, __LINE__); + NDPI_EXCLUDE_PROTO_EXT(ndpi_struct, flow, NDPI_PROTOCOL_SMBV1); + NDPI_EXCLUDE_PROTO_EXT(ndpi_struct, flow, NDPI_PROTOCOL_SMBV23); } diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 11cc3f131..e827e97d1 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -1187,7 +1187,9 @@ static int ndpi_search_tls_udp(struct ndpi_detection_module_struct *ndpi_struct, packet->payload_packet_len = p_len; /* Restore */ if(no_dtls || change_cipher_found) { - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_PROTO_EXT(ndpi_struct, flow, NDPI_PROTOCOL_DTLS); + flow->check_extra_packets = 0; + flow->extra_packets_func = NULL; return(0); /* That's all */ } else { return(1); /* Keep working */ |