Split ptree user data in 32 and 64 bit entries

This commit is contained in:
Luca Deri
2020-12-30 12:12:33 +01:00
parent ab037e2c82
commit dc401f8a74
3 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -936,7 +936,7 @@ extern "C" {
/* ptree (trie) API */
ndpi_ptree_t* ndpi_ptree_create(void);
int ndpi_ptree_insert(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, u_int8_t bits, u_int32_t user_data);
int ndpi_ptree_insert(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, u_int8_t bits, u_int64_t user_data);
int ndpi_ptree_match_addr(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, u_int32_t *user_data);
void ndpi_ptree_destroy(ndpi_ptree_t *tree);