From 5db40f7598fa45d87cb7f7964d90f0bc2e31798f Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 23 Jun 2025 16:03:44 +0200 Subject: Classify Tracking/ADS/Analytics traffic only via category (#2900) See 3a243bb40 for similar work about porn and LLM --- src/lib/ndpi_main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index a36243e75..2858085ca 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2909,6 +2909,11 @@ static void init_protocol_defaults(struct ndpi_detection_module_struct *ndpi_str ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */, 0); + ndpi_set_proto_defaults(ndpi_str, 1 /* cleartext */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_FREE_107, + "FREE_107", NDPI_PROTOCOL_CATEGORY_NETWORK, NDPI_PROTOCOL_QOE_CATEGORY_UNSPECIFIED, + ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */, + 0); #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main.c" -- cgit v1.2.3