Added unidirectional traffic flow risk

This commit is contained in:
Luca Deri
2022-06-20 00:22:13 +02:00
parent c287eb835b
commit ab09b8ce2e
211 changed files with 6362 additions and 6311 deletions
+2 -1
View File
@@ -1434,6 +1434,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
}
ndpi_data_add_value(flow->pktlen_s_to_c, rawsize);
flow->dst2src_packets++, flow->dst2src_bytes += rawsize, flow->dst2src_goodput_bytes += payload_len;
flow->risk &= ~(1UL << NDPI_UNIDIRECTIONAL_TRAFFIC); /* Clear bit */
memcpy(&flow->dst2src_last_pkt_time, &when, sizeof(when));
#ifdef DIRECTION_BINS
@@ -1579,7 +1580,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
}
}
}
#if 0
if(flow->risk != 0) {
FILE *r = fopen("/tmp/e", "a");