aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-05-17 16:38:02 +0200
committerLuca Deri <deri@ntop.org>2024-05-17 16:38:02 +0200
commitc63446e59220efd3b133bccbbd44ed97c86c78f1 (patch)
tree1566b243405aa95bf084dc1ee24792baa9abd3a6 /src/include/ndpi_api.h
parent33d3d254acf20fcdb1db106cdf8161e73b9e747a (diff)
Cleaned up API
Removed - 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); Added (it supports both IPv4 and v6) + int ndpi_load_ptree_file(ndpi_ptree_t *tree, const char *path, u_int16_t protocol_id);
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 3132e139b..ca365b8fe 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -1164,9 +1164,7 @@ 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);
-
+ int ndpi_load_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 */