diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-06-23 15:29:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-23 15:29:32 +0200 |
commit | aaa528b2e8be012c7c67299af41e227d2bc4dc45 (patch) | |
tree | bcfbf128da102832f76a87e74f4ae3c70f0d66df /src/lib/ndpi_utils.c | |
parent | 0c343ead8844db6c93ea0d5fe9c8cbbc7f7373f7 (diff) |
If `NDPI_KNOWN_PROTOCOL_ON_NON_STANDARD_PORT` risk is disabled, avoid some work (#2899)
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 4e3d9f582..8844bf7d7 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -3020,7 +3020,7 @@ static u_int8_t ndpi_check_ipv6_exception(struct ndpi_detection_module_struct *n /* ********************************************************************************* */ -static int is_flowrisk_enabled(struct ndpi_detection_module_struct *ndpi_str, ndpi_risk_enum flowrisk_id) +int is_flowrisk_enabled(struct ndpi_detection_module_struct *ndpi_str, ndpi_risk_enum flowrisk_id) { if(ndpi_bitmask_is_set(&ndpi_str->cfg.flowrisk_bitmask, flowrisk_id) == 0) return 0; |