diff options
author | Luca <deri@ntop.org> | 2019-04-05 12:47:58 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-04-05 12:47:58 +0200 |
commit | 4e7fa82affc876245ab7f008271a49bde80bcf9f (patch) | |
tree | 8653fd3892e119f106b5649192ef38b1be9e088a /src/lib/protocols/edonkey.c | |
parent | 5656a41f696e8073de28be5bdbd909fda108ee78 (diff) |
Fixed false positive with FTP_DATA protocol
Added coherency in application protol guess by exploiting the host server name
Various protocol optimizations
Diffstat (limited to 'src/lib/protocols/edonkey.c')
-rw-r--r-- | src/lib/protocols/edonkey.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/protocols/edonkey.c b/src/lib/protocols/edonkey.c index 547bafc5f..ca5abebad 100644 --- a/src/lib/protocols/edonkey.c +++ b/src/lib/protocols/edonkey.c @@ -177,7 +177,6 @@ static void ndpi_check_edonkey(struct ndpi_detection_module_struct *ndpi_struct, /* Encode the direction of the packet in the stage, so we will know when we need to look for the response packet. */ flow->edonkey_stage = packet->packet_direction + 1; } - } else { NDPI_LOG_DBG2(ndpi_struct, "EDONKEY stage %u: \n", flow->edonkey_stage); @@ -187,7 +186,7 @@ static void ndpi_check_edonkey(struct ndpi_detection_module_struct *ndpi_struct, } /* This is a packet in another direction. Check if we find the proper response. */ - if((payload_len == 0) || (ndpi_edonkey_payload_check(packet->payload, payload_len))) { + if(ndpi_edonkey_payload_check(packet->payload, payload_len)) { NDPI_LOG_INFO(ndpi_struct, "found EDONKEY\n"); ndpi_int_edonkey_add_connection(ndpi_struct, flow); } else { |