aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2018-08-30 11:10:30 +0200
committerLuca <deri@ntop.org>2018-08-30 11:10:30 +0200
commite4f01976a66f1943bde7b253b62430d36c6d9e74 (patch)
tree6291c279aedb3ec2d624233a5535faf5b4433d4b /src/include
parent0a33e439bde47d58391b14028ebcb50936926b78 (diff)
Added missing categorization when giveup/guess is called
Added optimization for TCP flows that do not start with a SYN packet: early giveup is performed Code cleanup
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_typedefs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index a3ed39c2d..0e069ae77 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -989,7 +989,6 @@ struct ndpi_flow_struct {
/* init parameter, internal used to set up timestamp,... */
u_int16_t guessed_protocol_id, guessed_host_protocol_id, guessed_category;
-
u_int8_t protocol_id_already_guessed:1, host_already_guessed:1, init_finished:1, setup_packet_direction:1, packet_direction:1, check_extra_packets:1;
/*
@@ -1000,6 +999,8 @@ struct ndpi_flow_struct {
u_int8_t max_extra_packets_to_check;
u_int8_t num_extra_packets_checked;
+ u_int8_t num_processed_pkts; /* <= WARNING it can wrap but we do expect people to giveup earlier */
+
int (*extra_packets_func) (struct ndpi_detection_module_struct *, struct ndpi_flow_struct *flow);
/*