diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-05-11 09:21:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 09:21:13 +0200 |
commit | b116456fc5c10b3fe196da4b071faec4abbfec31 (patch) | |
tree | a49c77aaa586782b62b20ac1fbebcd968169e549 /src/lib/ndpi_main.c | |
parent | a813121e0a7021cdbfd64630960b330a23b1a4d2 (diff) |
Viber: add detection of voip calls and avoid false positives (#2434)
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 2752aa55f..e85f07718 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2304,6 +2304,10 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "iQIYI", NDPI_PROTOCOL_CATEGORY_STREAMING, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); + ndpi_set_proto_defaults(ndpi_str, 0 /* encrypted */, 1 /* app proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_VIBER_VOIP, + "ViberVoip", NDPI_PROTOCOL_CATEGORY_VOIP, + ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main.c" |