diff options
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 653510e82..121c3f7f8 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -1843,6 +1843,13 @@ extern "C" { /* ******************************* */ + /* PopCount [count how many bits are set to 1] */ + + int ndpi_popcount_init(struct ndpi_popcount *h); + void ndpi_popcount_count(struct ndpi_popcount *h, const u_int8_t *buf, u_int32_t buf_len); + + /* ******************************* */ + int ndpi_init_bin(struct ndpi_bin *b, enum ndpi_bin_family f, u_int16_t num_bins); void ndpi_free_bin(struct ndpi_bin *b); struct ndpi_bin* ndpi_clone_bin(struct ndpi_bin *b); |