Added new API calls for implementing Bloom-filter like data structures

ndpi_filter* ndpi_filter_alloc(uint32_t elements_number);
bool         ndpi_filter_add(ndpi_filter *f, uint64_t value);
bool         ndpi_filter_contains(ndpi_filter *f, uint64_t value);
void         ndpi_filter_free(ndpi_filter *f);
This commit is contained in:
Luca Deri
2023-08-11 22:49:31 +02:00
parent 5fad72ebd9
commit ec7adc212e
6 changed files with 848 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* ndpi_utils.c
* ndpi_bitmap.c
*
* Copyright (C) 2011-23 - ntop.org and contributors
*