aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-03-14 20:48:21 +0100
committerLuca Deri <deri@ntop.org>2021-03-14 20:48:21 +0100
commit565a7bfce3902f83acf1c9f2a19f7931534a31e2 (patch)
tree614a39f8b11dd1d33ddd92ea3fefe8b9fd6d14fc
parente58527536dea58cb7cf9627421e16a885f311712 (diff)
Reworked extendal dependency across testing tools
-rw-r--r--example/ndpiReader.c4
-rw-r--r--example/reader_util.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index b5df4b133..eef895ec2 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -80,7 +80,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_ja3_plus = 0;
+u_int8_t human_readeable_string_len = 5;
u_int8_t max_num_udp_dissected_pkts = 24 /* 8 is enough for most protocols, Signal and SnapchatCall require 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;
@@ -98,7 +98,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_int8_t enable_doh_dot_detection, enable_ja3_plus;
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 95c6b04ad..36c178176 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -89,6 +89,8 @@ extern u_int8_t max_num_udp_dissected_pkts /* 24 */, max_num_tcp_dissected_pkts
static u_int32_t flow_id = 0;
u_int8_t enable_doh_dot_detection = 0;
+u_int8_t enable_ja3_plus = 0;
+
/* ****************************************************** */
struct flow_id_stats {
@@ -402,10 +404,8 @@ static int parse_debug_proto(struct ndpi_detection_module_struct *ndpi_mod, char
/* ***************************************************** */
extern char *_debug_protocols;
-extern u_int8_t enable_ja3_plus;
static int _debug_protocols_ok = 0;
-
struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * prefs,
pcap_t * pcap_handle) {
struct ndpi_detection_module_struct * module;