aboutsummaryrefslogtreecommitdiff
path: root/example/ndpi_util.h
diff options
context:
space:
mode:
authorberat <beratiz@gmail.com>2017-06-23 12:14:31 +0200
committerberat <beratiz@gmail.com>2017-06-23 12:14:31 +0200
commit7235c9a73a4da26e98a82dc639a4a1c28653ee2a (patch)
treea729f5c5ed1afe14d1348842e1b81c50feb5bbaf /example/ndpi_util.h
parent8395bdac97f1b2dfa81f8f0bf36febba7ee66d11 (diff)
Added -x flag. Produces a bpf filter based on diagnose information generated by -b flag
Diffstat (limited to 'example/ndpi_util.h')
-rw-r--r--example/ndpi_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/ndpi_util.h b/example/ndpi_util.h
index 6bed00854..0a465a3c0 100644
--- a/example/ndpi_util.h
+++ b/example/ndpi_util.h
@@ -43,6 +43,10 @@
#define AGGRESSIVE_PERCENT 95.00
#define DIR_SRC 10
#define DIR_DST 20
+#define PORT_ARRAY_SIZE 20
+#define FLOWS_PACKETS_TRESHOLD 0.9
+#define FLOWS_PERCENT_TRESHOLD 1.0
+#define INIT_VAL -1
// flow tracking
typedef struct ndpi_flow_info {