Add ndpi_hll_reset() API call

Fixes bug in ndpi_data_window_average() with zero points
This commit is contained in:
Luca Deri
2020-07-15 10:30:45 +02:00
parent 91d132ea3d
commit 9f3e3e8456
3 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -1059,7 +1059,8 @@ extern "C" {
/* Memory lifecycle */
int ndpi_hll_init(struct ndpi_hll *hll, u_int8_t bits);
void ndpi_hll_destroy(struct ndpi_hll *hll);
void ndpi_hll_reset(struct ndpi_hll *hll);
/* Add values */
void ndpi_hll_add(struct ndpi_hll *hll, const char *data, size_t data_len);
void ndpi_hll_add_number(struct ndpi_hll *hll, u_int32_t value) ;