aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-10-27 08:40:00 +0100
committerLuca Deri <deri@ntop.org>2020-10-27 08:40:00 +0100
commit48d640583a58de62ed1a500e2e98b19a9ffce1ef (patch)
tree50597afe6f0f70f01f0855a0b5eecf8fa2725206
parent948a9060378a2a33f5701947386492ff10cb2de6 (diff)
Moved global in reader_util.c
-rw-r--r--example/ndpiReader.c3
-rw-r--r--example/reader_util.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index ac82fb45c..fe81c2265 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -76,7 +76,7 @@ u_int8_t enable_protocol_guess = 1, enable_payload_analyzer = 0, num_bin_cluster
u_int8_t verbose = 0, enable_joy_stats = 0;
int nDPI_LogLevel = 0;
char *_debug_protocols = NULL;
-u_int8_t human_readeable_string_len = 5, enable_doh_dot_detection = 0;
+u_int8_t human_readeable_string_len = 5;
u_int8_t max_num_udp_dissected_pkts = 16 /* 8 is enough for most protocols, Signal requires more */, max_num_tcp_dissected_pkts = 80 /* due to telnet */;
static u_int32_t pcap_analysis_duration = (u_int32_t)-1;
static u_int16_t decode_tunnels = 0;
@@ -94,6 +94,7 @@ static time_t capture_until = 0;
static u_int32_t num_flows;
static struct ndpi_detection_module_struct *ndpi_info_mod = NULL;
+extern u_int8_t enable_doh_dot_detection;
extern u_int32_t max_num_packets_per_flow, max_packet_payload_dissection, max_num_reported_top_payloads;
extern u_int16_t min_pattern_len, max_pattern_len;
extern void ndpi_self_check_host_match(); /* Self check function */
diff --git a/example/reader_util.c b/example/reader_util.c
index 3a8faed03..8c42afe85 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -86,9 +86,9 @@
extern u_int8_t enable_protocol_guess, enable_joy_stats, enable_payload_analyzer;
extern u_int8_t verbose, human_readeable_string_len;
extern u_int8_t max_num_udp_dissected_pkts /* 8 */, max_num_tcp_dissected_pkts /* 10 */;
-extern u_int8_t enable_doh_dot_detection;
static u_int32_t flow_id = 0;
+u_int8_t enable_doh_dot_detection = 0;
/* ****************************************************** */
struct flow_id_stats {