Values stored in patricia tree are now 32 bit (they used to be 16 bit) long
This commit is contained in:
@@ -922,8 +922,8 @@ 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, uint user_data);
|
||||
int ndpi_ptree_match_addr(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, uint *user_data);
|
||||
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_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);
|
||||
|
||||
/* DGA */
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ union patricia_node_value_t {
|
||||
|
||||
/* User-defined values */
|
||||
struct {
|
||||
u_int16_t user_value, additional_user_value;
|
||||
u_int32_t user_value, additional_user_value;
|
||||
} uv;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user