aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-08-26 16:47:11 +0200
committerLuca Deri <deri@ntop.org>2024-08-26 16:47:11 +0200
commitc8f8d87bf91a26cfa23bbb0270c1d312e87b5841 (patch)
tree6b3e1248bd09d13577880edf96350e3881ff2a76 /src/include
parent9263d4dd873c4e2068e392a692b20609b1ec5a9a (diff)
Comments
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_api.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 45c96e194..9a2515ac5 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -690,10 +690,10 @@ extern "C" {
char* ndpi_get_proto_breed_name(ndpi_protocol_breed_t breed_id);
/**
- * Return the name of the protocol given its ID
+ * Return the name of the protocol given its ID.
*
* @par ndpi_mod = the detection module
- * @par name = the protocol name
+ * @par name = the protocol name. You can specify TLS or YouYube but not TLS.YouTube (se ndpi_get_protocol_by_name in this case)
* @return the ID of the protocol
*
*/
@@ -710,16 +710,14 @@ extern "C" {
extern char* ndpi_get_proto_by_id(struct ndpi_detection_module_struct *ndpi_mod, u_int id);
/**
- * Return the name of the protocol given its ID
+ * Return the name of the protocol given its ID. You can specify TLS.YouTube or just TLS
*
* @par ndpi_mod = the detection module
* @par id = the protocol id
* @return the name of the protocol
*
- */
-
- extern ndpi_master_app_protocol ndpi_get_protocol_by_name(struct ndpi_detection_module_struct *ndpi_str, const char *name);
-
+ */
+ extern ndpi_master_app_protocol ndpi_get_protocol_by_name(struct ndpi_detection_module_struct *ndpi_str, const char *name);
/**
* Return the ID of the category