aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index d515b7918..9871c6a59 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -5654,6 +5654,19 @@ static void ndpi_reconcile_protocols(struct ndpi_detection_module_struct *ndpi_s
}
break;
+ case NDPI_PROTOCOL_NETFLOW:
+ case NDPI_PROTOCOL_SFLOW:
+ case NDPI_PROTOCOL_RTP:
+ case NDPI_PROTOCOL_COLLECTD:
+ /* Remove NDPI_UNIDIRECTIONAL_TRAFFIC from unidirectional protocols */
+ ndpi_unset_risk(ndpi_str, flow, NDPI_UNIDIRECTIONAL_TRAFFIC);
+ break;
+
+ case NDPI_PROTOCOL_SYSLOG:
+ if(flow->l4_proto == IPPROTO_UDP)
+ ndpi_unset_risk(ndpi_str, flow, NDPI_UNIDIRECTIONAL_TRAFFIC);
+ break;
+
case NDPI_PROTOCOL_SKYPE_TEAMS:
case NDPI_PROTOCOL_SKYPE_TEAMS_CALL:
if(flow->is_ipv6 == 0