diff options
author | Luca <deri@ntop.org> | 2022-09-29 18:15:37 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2022-09-29 18:15:37 +0200 |
commit | fbf30d1aadb8c475f43084a8e71aa77fd203068e (patch) | |
tree | 85b9e31bd5e6f7b50aabf986057093e44b5b6a75 /src/lib/ndpi_main.c | |
parent | a27538b764c85084980eef40cc7751c02a4af216 (diff) |
Fixed invalid unidirectional traffic alert for unidirectional protocols (e.g. sFlow)
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 13 |
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 |