aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-05-07 23:05:31 +0200
committerLuca Deri <deri@ntop.org>2024-05-07 23:05:31 +0200
commit5f8ad0527d20567c40311d0b04bf71ccdc1e5f2c (patch)
tree91a40aa459bbc84fe6be6c9d812062a69f5f2603 /src/include
parent3d2b611ea678da93fbefb5c9d40b1d062b8e490e (diff)
Reworked code and added two new API calls
- int ndpi_load_ipv4_ptree_file(ndpi_ptree_t *tree, const char *path, u_int16_t protocol_id); - int ndpi_load_ipv6_ptree_file(ndpi_ptree_t *tree, const char *path, u_int16_t protocol_id);
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_api.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 9aa26d572..5fbd064fc 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -1164,6 +1164,9 @@ extern "C" {
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_int64_t user_data);
int ndpi_ptree_match_addr(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, u_int64_t *user_data);
+ int ndpi_load_ipv4_ptree_file(ndpi_ptree_t *tree, const char *path, u_int16_t protocol_id);
+ int ndpi_load_ipv6_ptree_file(ndpi_ptree_t *tree, const char *path, u_int16_t protocol_id);
+
void ndpi_ptree_destroy(ndpi_ptree_t *tree);
/* General purpose utilities */