diff options
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index a1f4e387b..fa7f77f33 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -1799,7 +1799,8 @@ extern "C" { u_int32_t ndpi_crc32(const void* data, size_t n_bytes); u_int32_t ndpi_nearest_power_of_two(u_int32_t x); - + u_int32_t ndpi_hash_string(char *str); + /* ******************************* */ int ndpi_des_init(struct ndpi_des_struct *des, double alpha, double beta, float significance); @@ -2059,20 +2060,6 @@ extern "C" { u_int32_t ndpi_filter_cardinality(ndpi_filter *f); /* ******************************* */ - - /* - Efficient (space and speed) probabilitic datastructure - for exact string searching with a false positive rate - of 5 * 10 ^ -8 - */ - ndpi_string_search* ndpi_string_search_alloc(); - void ndpi_string_search_free(ndpi_string_search *s); - u_int32_t ndpi_string_search_size(ndpi_string_search *s); - bool ndpi_string_search_add(ndpi_string_search *s, char *string); - bool ndpi_string_search_contains(ndpi_string_search *s, char *string); - u_int32_t ndpi_string_search_cardinality(ndpi_string_search *f); - - /* ******************************* */ /* Efficient (space and speed) probabilitic datastructure |