Added ndpi_reset_data_analysis() API call

This commit is contained in:
Luca Deri
2020-07-17 13:16:01 +02:00
parent 6e1dcba9dd
commit 64fb40d21e
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -75,6 +75,14 @@ void ndpi_free_data_analysis(struct ndpi_analyze_struct *d) {
/* ********************************************************************************* */
void ndpi_reset_data_analysis(struct ndpi_analyze_struct *d) {
memset(d, 0, sizeof(struct ndpi_analyze_struct));
memset(d->values, 0, sizeof(u_int32_t)*d->num_values_array_len);
d->num_data_entries = 0;
}
/* ********************************************************************************* */
/*
Add a new point to analyze
*/