Added new ndpi_detection_giveup() API call to call before giving up for a given flow

Code cleanup
This commit is contained in:
Luca Deri
2016-03-04 19:15:13 +01:00
parent 73833e0ef0
commit 462368f959
4 changed files with 52 additions and 54 deletions
+7
View File
@@ -116,7 +116,14 @@ extern "C" {
void
ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *ndpi_struct,
const NDPI_PROTOCOL_BITMASK * detection_bitmask);
/**
* This function has to be called before we give up with detection for a given flow
*/
ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow);
/**
* This function will processes one packet and returns the ID of the detected protocol.
* This is the main packet processing function.
*