Function ndpi_hash_add_entry

Function Documentation

int ndpi_hash_add_entry(ndpi_str_hash **h, char *key, u_int8_t key_len, u_int16_t value)

Add an entry to the hashmap.

h = pointer to the hash map [in, out]
key = character string (no ‘\0’ required) [in]
key_len = length of the character string @key [in]
value = value to add [in]
Return
0 if the entry was added, 1 otherwise