aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-09-26 22:08:21 +0200
committerLuca Deri <deri@ntop.org>2019-09-26 22:08:21 +0200
commit7de9fd7170ab66e18580e536b32fd7de9849032a (patch)
treed62933047ab18063eed414bddd2a8e4510d2c886 /example/reader_util.c
parent0e9918464bb4e734cec0ef370ffc927926e2f810 (diff)
Updated instagram check
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 51701d533..67d349040 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -718,7 +718,12 @@ static struct ndpi_flow_info *get_ndpi_flow_info(struct ndpi_workflow * workflow
flow.src_ip = iph->saddr, flow.dst_ip = iph->daddr;
flow.src_port = htons(*sport), flow.dst_port = htons(*dport);
flow.hashval = hashval = flow.protocol + flow.vlan_id + flow.src_ip + flow.dst_ip + flow.src_port + flow.dst_port;
- /* printf("hashval=%u [%u][%u][%u:%u][%u:%u]\n", hashval, flow.protocol, flow.vlan_id, flow.src_ip, flow.src_port, flow.dst_ip, flow.dst_port); */
+
+#if 0
+ printf("hashval=%u [%u][%u][%u:%u][%u:%u]\n", hashval, flow.protocol, flow.vlan_id,
+ flow.src_ip, flow.src_port, flow.dst_ip, flow.dst_port);
+#endif
+
idx = hashval % workflow->prefs.num_roots;
ret = ndpi_tfind(&flow, &workflow->ndpi_flows_root[idx], ndpi_workflow_node_cmp);