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.
*
+1 -1
View File
@@ -861,7 +861,7 @@ struct ndpi_flow_struct {
u_int16_t protocol_stack_info;
/* init parameter, internal used to set up timestamp,... */
u_int16_t guessed_protocol_id, guessed_host_proto_id;
u_int16_t guessed_protocol_id, guessed_host_protocol_id;
u_int8_t protocol_id_already_guessed:1, host_already_guessed:1, init_finished:1, setup_packet_direction:1, packet_direction:1;