FIX: dropbox dissector. UPD: updated pcap file with new dropbox pkts

This commit is contained in:
Campus
2018-09-05 16:10:07 +02:00
parent 0c3989b40f
commit 225826ce83
3 changed files with 17 additions and 43 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ static void ndpi_check_dropbox(struct ndpi_detection_module_struct *ndpi_struct,
if((packet->udp->source == dropbox_port)
&& (packet->udp->dest == dropbox_port)) {
if(payload_len > 2) {
if(strncmp((const char *)packet->payload, "{\"host_int\"", 11) == 0) {
if(strstr((const char *)packet->payload, "\"host_int\"") != NULL) {
NDPI_LOG_INFO(ndpi_struct, "found dropbox\n");
ndpi_int_dropbox_add_connection(ndpi_struct, flow, 0);