Added missing ndpi_protocol2id() prototype

Fixed error when crearing symlink in Makefile
This commit is contained in:
Luca Deri
2018-09-19 11:11:15 +02:00
parent d1ca778f60
commit ba72865f23
2 changed files with 15 additions and 2 deletions
+14 -1
View File
@@ -420,7 +420,7 @@ extern "C" {
char *bigram_to_match);
/**
* Write the protocol name in the buffer -buf- as master_protocol.protocol
* Write the protocol name in the buffer -buf- as master_protocol.protocol (string)
*
* @par ndpi_mod = the detection module
* @par proto = the struct ndpi_protocol contain the protocols name
@@ -432,6 +432,19 @@ extern "C" {
char* ndpi_protocol2name(struct ndpi_detection_module_struct *ndpi_mod,
ndpi_protocol proto, char *buf, u_int buf_len);
/**
* Write the protocol name in the buffer -buf- as master_protocol.protocol (number)
*
* @par ndpi_mod = the detection module
* @par proto = the struct ndpi_protocol contain the protocols name
* @par buf = the buffer to write the name of the protocols
* @par buf_len = the length of the buffer
* @return the buffer contains the master_protocol and protocol name
*
*/
char* ndpi_protocol2id(struct ndpi_detection_module_struct *ndpi_mod,
ndpi_protocol proto, char *buf, u_int buf_len);
/**
* Find out if a given category is custom/user-defined
*