From 2740a4f4e3d56f992b37e1fa273b6e0f3490868e Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 2 Aug 2024 15:06:08 +0200 Subject: Update all IP lists (#2515) The `suffix_id` is simply an incremental index (see `ndpi_load_domain_suffixes`), so its value might changes every time we update the public suffix list. --- example/ndpiReader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 0fa66889b..5acaa99a0 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -6100,9 +6100,9 @@ void encodeDomainsUnitTest() { assert(ndpi_load_domain_suffixes(ndpi_str, (char*)lists_path) == 0); - ndpi_get_host_domain_suffix(ndpi_str, "lcb.it", &suffix_id); assert(suffix_id == 1117); - ndpi_get_host_domain_suffix(ndpi_str, "www.ntop.org", &suffix_id); assert(suffix_id == 4503); - ndpi_get_host_domain_suffix(ndpi_str, "www.bbc.co.uk", &suffix_id); assert(suffix_id == 5242); + ndpi_get_host_domain_suffix(ndpi_str, "lcb.it", &suffix_id); + ndpi_get_host_domain_suffix(ndpi_str, "www.ntop.org", &suffix_id); + ndpi_get_host_domain_suffix(ndpi_str, "www.bbc.co.uk", &suffix_id); str = (char*)"www.ntop.org"; assert(ndpi_encode_domain(ndpi_str, str, out, sizeof(out)) == 8); str = (char*)"www.bbc.co.uk"; assert(ndpi_encode_domain(ndpi_str, str, out, sizeof(out)) == 8); -- cgit v1.2.3