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
This commit is contained in:
Luca
2018-08-30 11:10:30 +02:00
parent 0a33e439bd
commit e4f01976a6
31 changed files with 372 additions and 364 deletions
+2 -1
View File
@@ -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);
/*