aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-10-15 23:06:41 +0200
committerLuca Deri <deri@ntop.org>2019-10-15 23:06:41 +0200
commit02783bd7c66f8392029699b46e140c84e2746b5e (patch)
tree951bcac67f4193cbcf9335c26c57fdbed953d200 /src/include/ndpi_api.h
parentd5c918d2586d7985b9f326d776171f8ad99003aa (diff)
parent6b044335cdf389fe6b93c9b0a6831d97897578f4 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index a1613458f..b36302de7 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -846,6 +846,12 @@ extern "C" {
u_int16_t src_port, u_int16_t dst_port,
ndpi_serializer *serializer);
+ /* ptree (trie) API */
+ ndpi_ptree_t* ndpi_ptree_create();
+ 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);
+ void ndpi_ptree_destroy(ndpi_ptree_t *tree);
+
/* Serializer */
int ndpi_init_serializer_ll(ndpi_serializer *serializer, ndpi_serialization_format fmt,
u_int32_t buffer_size);