aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorRenan de Souza <renan.souza@setinet.com.br>2019-10-25 08:57:49 -0300
committerRenan de Souza <renan.souza@setinet.com.br>2019-10-25 08:57:49 -0300
commit56db916833493ca0042ce1b5de1bf29366680c7b (patch)
treeeb720198f5c8909624956683f26c9b64d7660ba2 /example/reader_util.c
parent653c2092536466cf8d62bc73e73f12ecf97ed9fc (diff)
parent12cf0c47639a965d156ebd3a2a7721cca1331f23 (diff)
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 8f879b0b6..e7ec81d3c 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1210,25 +1210,29 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
u_int enough_packets =
(((proto == IPPROTO_UDP) && ((flow->src2dst_packets + flow->dst2src_packets) > max_num_udp_dissected_pkts))
|| ((proto == IPPROTO_TCP) && ((flow->src2dst_packets + flow->dst2src_packets) > max_num_tcp_dissected_pkts))) ? 1 : 0;
-
+
+#if 0
+ printf("%s()\n", __FUNCTION__);
+#endif
+
flow->detected_protocol = ndpi_detection_process_packet(workflow->ndpi_struct, ndpi_flow,
iph ? (uint8_t *)iph : (uint8_t *)iph6,
ipsize, time, src, dst);
if(enough_packets || (flow->detected_protocol.app_protocol != NDPI_PROTOCOL_UNKNOWN)) {
if((!enough_packets)
- // TODO: remove the line below
- && (flow->detected_protocol.master_protocol == NDPI_PROTOCOL_TLS)
&& ndpi_extra_dissection_possible(workflow->ndpi_struct, ndpi_flow))
; /* Wait for certificate fingerprint */
else {
/* New protocol detected or give up */
flow->detection_completed = 1;
+#if 0
/* Check if we should keep checking extra packets */
if(ndpi_flow && ndpi_flow->check_extra_packets)
flow->check_extra_packets = 1;
-
+#endif
+
if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN) {
u_int8_t proto_guessed;