diff options
Diffstat (limited to 'src/include/ndpi_typedefs.h')
-rw-r--r-- | src/include/ndpi_typedefs.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 2f47a28b5..309351abf 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1608,19 +1608,12 @@ struct ndpi_bin { /* **************************************** */ -struct ndpi_str_hash_info { - char *key; /* Key */ - u_int8_t key_len; - u_int8_t value; /* Value */ - struct ndpi_str_hash_info *next; -}; - -typedef struct { - u_int32_t num_buckets, max_num_entries; - struct ndpi_str_hash_info **buckets; +typedef struct ndpi_str_hash { + unsigned int hash; + void *value; + u_int8_t private_data[0]; } ndpi_str_hash; - /* **************************************** */ #define HW_HISTORY_LEN 4 |