aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-08-20 15:18:19 +0200
committerGitHub <noreply@github.com>2023-08-20 15:18:19 +0200
commitcc4461f4246f9e8eca9be5796aa53ec785d1a4f0 (patch)
tree873eb5d7a031e23c8c0401fa63b17af6cb105e2f /src/include/ndpi_api.h
parent5867f43fae70b1a08b64e8635bf8183ba4d29124 (diff)
fuzz: extend coverage (#2073)
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 0a2322ffe..3d99a6c03 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -756,11 +756,14 @@ extern "C" {
* @par ndpi_mod = the detection module
* @par path = the path of the file
* @return 0 if the file is loaded correctly;
- * -1 else
+ * -1 generic error
+ * -2 memory allocation error
*
*/
int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod,
const char* path);
+ int ndpi_load_protocols_file2(struct ndpi_detection_module_struct *ndpi_mod,
+ FILE *fd);
/**
* Add an IP-address based risk mask