aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 56815ff3b..8688fb2a4 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -823,6 +823,19 @@ extern "C" {
char* path);
/**
+ * Load files (whose name is <protocolid>_<label>.<extension>) stored
+ * in a directory and binds each IP/network to the specified protocol.
+ * This function is used to bind IP addresses to protocols
+ *
+ * @par ndpi_mod = the detection module
+ * @par path = the path of the file
+ * @return 0 if the file is loaded correctly;
+ * -1 else
+ */
+ int ndpi_load_protocols_dir(struct ndpi_detection_module_struct *ndpi_str,
+ char* path);
+
+ /**
* Read a file and load the list of risky domains
*
* @par ndpi_mod = the detection module