Various fixes in bins implementation
Added -b flag in ndpiReader to test bins
This commit is contained in:
@@ -1070,6 +1070,7 @@ extern "C" {
|
||||
|
||||
int ndpi_init_bin(struct ndpi_bin *b, enum ndpi_bin_family f, u_int8_t num_bins);
|
||||
void ndpi_free_bin(struct ndpi_bin *b);
|
||||
struct ndpi_bin* ndpi_clone_bin(struct ndpi_bin *b);
|
||||
void ndpi_inc_bin(struct ndpi_bin *b, u_int8_t slot_id, u_int32_t val);
|
||||
void ndpi_set_bin(struct ndpi_bin *b, u_int8_t slot_id, u_int32_t value);
|
||||
u_int32_t ndpi_get_bin_value(struct ndpi_bin *b, u_int8_t slot_id);
|
||||
|
||||
@@ -1510,9 +1510,8 @@ enum ndpi_bin_family {
|
||||
};
|
||||
|
||||
struct ndpi_bin {
|
||||
u_int8_t num_bins;
|
||||
u_int8_t num_bins, is_empty;
|
||||
enum ndpi_bin_family family;
|
||||
u_int32_t num_incs;
|
||||
|
||||
union {
|
||||
u_int8_t *bins8; /* num_bins bins */
|
||||
|
||||
Reference in New Issue
Block a user