Added check for avoiding long dissections
This commit is contained in:
@@ -493,6 +493,11 @@ void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_struct, st
|
||||
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
|
||||
}
|
||||
}
|
||||
|
||||
if(flow->packet_counter > 8) {
|
||||
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -67,11 +67,15 @@ void ndpi_search_jabber_tcp(struct ndpi_detection_module_struct *ndpi_struct, st
|
||||
struct ndpi_packet_struct *packet = &flow->packet;
|
||||
struct ndpi_id_struct *src = flow->src;
|
||||
struct ndpi_id_struct *dst = flow->dst;
|
||||
|
||||
u_int16_t x;
|
||||
|
||||
NDPI_LOG_DBG(ndpi_struct, "search JABBER\n");
|
||||
|
||||
if (flow->packet_counter > 5) {
|
||||
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
|
||||
return;
|
||||
}
|
||||
|
||||
/* search for jabber file transfer */
|
||||
/* this part is working asymmetrically */
|
||||
if (packet->tcp != NULL && packet->tcp->syn != 0 && packet->payload_packet_len == 0) {
|
||||
|
||||
@@ -173,6 +173,8 @@ void ndpi_search_memcached(
|
||||
|
||||
if (*matches >= MEMCACHED_MIN_MATCH)
|
||||
ndpi_int_memcached_add_connection(ndpi_struct, flow);
|
||||
else if(flow->packet_counter > 5)
|
||||
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
|
||||
}
|
||||
|
||||
void init_memcached_dissector(
|
||||
|
||||
Reference in New Issue
Block a user