aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authoremanuele-f <black.silver@hotmail.it>2016-10-22 22:22:15 +0200
committeremanuele-f <black.silver@hotmail.it>2016-10-22 22:22:15 +0200
commit7d0397a8fb7bc6cc0841d84c48eab0e08f6e567a (patch)
treef7a88a76687bac840f762bf88993fe0abef13c04 /src/include/ndpi_api.h
parent94c134318bc2e2b36f44cdb9e20efedf9ad99060 (diff)
Add protocol category ids
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 2cea8386b..e08fafe1d 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -431,6 +431,23 @@ ndpi_protocol ndpi_l4_detection_process_packet(struct ndpi_detection_module_stru
*/
char* ndpi_protocol2name(struct ndpi_detection_module_struct *ndpi_mod, ndpi_protocol proto, char *buf, u_int buf_len);
+ /**
+ * Get protocol category as string
+ *
+ * @par category = the category associated to the protocol
+ * @return the string name of the category
+ *
+ */
+ const char* ndpi_category_str(ndpi_protocol_category_t category);
+
+ /**
+ * Get protocol category
+ *
+ * @par ndpi_mod = the detection module
+ * @par proto = the struct ndpi_protocol contain the protocols name
+ * @return the protocol category
+ */
+ ndpi_protocol_category_t ndpi_get_proto_category(struct ndpi_detection_module_struct *ndpi_mod, ndpi_protocol proto);
/**
* Get the protocol name associated to the ID