Added missing ndpi_protocol2id() prototype
Fixed error when crearing symlink in Makefile
This commit is contained in:
+14
-1
@@ -420,7 +420,7 @@ extern "C" {
|
|||||||
char *bigram_to_match);
|
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 ndpi_mod = the detection module
|
||||||
* @par proto = the struct ndpi_protocol contain the protocols name
|
* @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,
|
char* ndpi_protocol2name(struct ndpi_detection_module_struct *ndpi_mod,
|
||||||
ndpi_protocol proto, char *buf, u_int buf_len);
|
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
|
* Find out if a given category is custom/user-defined
|
||||||
*
|
*
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
|
|||||||
|
|
||||||
$(NDPI_LIB_SHARED): $(OBJECTS)
|
$(NDPI_LIB_SHARED): $(OBJECTS)
|
||||||
$(CC) -shared -fPIC -o $@ $(OBJECTS)
|
$(CC) -shared -fPIC -o $@ $(OBJECTS)
|
||||||
ln -Fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
|
ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
|
||||||
|
|
||||||
%.o: %.c $(HEADERS) Makefile
|
%.o: %.c $(HEADERS) Makefile
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|||||||
Reference in New Issue
Block a user