From cbd7136b3480774a10f18744d33d3694ffee221b Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 9 Jun 2025 09:00:17 +0200 Subject: Remove `NDPI_PROTOCOL_BITMASK`; add a new generic bitmask data structure (#2871) The main difference is that the memory is allocated at runtime Typical usercase: ``` struct ndpi_bitmask b; ndpi_bitmask_alloc(&b, ndpi_get_num_internal_protocols()); ndpi_bitmask_set(&b, $BIT); ndpi_bitmask_is_set(&b, $BIT); [...] ndpi_bitmask_dealloc(&b); ``` See #2136 --- src/include/ndpi_main.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/include/ndpi_main.h') diff --git a/src/include/ndpi_main.h b/src/include/ndpi_main.h index 2506e0195..d589eb04d 100644 --- a/src/include/ndpi_main.h +++ b/src/include/ndpi_main.h @@ -46,8 +46,6 @@ extern "C" { void ndpi_twalk(const void *, void (*)(const void *, ndpi_VISIT, int, void*), void *user_data); void ndpi_tdestroy(void *vrootp, void (*freefct)(void *)); - int NDPI_BITMASK_COMPARE(NDPI_PROTOCOL_BITMASK a, NDPI_PROTOCOL_BITMASK b); - u_int16_t ntohs_ndpi_bytestream_to_number(const u_int8_t * str, u_int16_t max_chars_to_read, u_int16_t * bytes_read); -- cgit v1.2.3