Added ndpi_bitmap64 support
This commit is contained in:
+15
-1
@@ -1801,11 +1801,12 @@ extern "C" {
|
||||
/* ******************************* */
|
||||
|
||||
u_int32_t ndpi_quick_hash(unsigned char *str, u_int str_len);
|
||||
u_int64_t ndpi_quick_hash64(char *str, u_int str_len);
|
||||
u_int32_t ndpi_hash_string(char *str);
|
||||
u_int32_t ndpi_rev_hash_string(char *str);
|
||||
u_int32_t ndpi_hash_string_len(char *str, u_int len);
|
||||
u_int32_t ndpi_murmur_hash(char *str, u_int str_len);
|
||||
|
||||
|
||||
/* ******************************* */
|
||||
|
||||
int ndpi_des_init(struct ndpi_des_struct *des, double alpha, double beta, float significance);
|
||||
@@ -2029,6 +2030,19 @@ extern "C" {
|
||||
void ndpi_bitmap_iterator_free(ndpi_bitmap* b);
|
||||
bool ndpi_bitmap_iterator_next(ndpi_bitmap_iterator* i, u_int32_t *value);
|
||||
|
||||
/* ******************************* */
|
||||
|
||||
/*
|
||||
Bitmap with 64 bit values based
|
||||
on https://github.com/FastFilter/xor_singleheader/tree/master
|
||||
*/
|
||||
|
||||
ndpi_bitmap64* ndpi_bitmap64_alloc_size(u_int32_t size);
|
||||
void ndpi_bitmap64_free(ndpi_bitmap64* b);
|
||||
void ndpi_bitmap64_set(ndpi_bitmap64* b, u_int64_t value);
|
||||
bool ndpi_bitmap64_isset(ndpi_bitmap64* b, u_int64_t value);
|
||||
u_int32_t ndpi_bitmap64_size(ndpi_bitmap64 *b);
|
||||
|
||||
/* ******************************* */
|
||||
/*
|
||||
Bloom-filter on steroids based on ndpi_bitmap
|
||||
|
||||
@@ -1176,6 +1176,7 @@ typedef struct ndpi_proto {
|
||||
#define CUSTOM_CATEGORY_LABEL_LEN 32
|
||||
|
||||
typedef void ndpi_bitmap;
|
||||
typedef void ndpi_bitmap64;
|
||||
typedef void ndpi_bitmap_iterator;
|
||||
typedef void ndpi_filter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user