aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-07-29 22:36:27 +0200
committerLuca Deri <deri@ntop.org>2020-07-29 22:36:27 +0200
commita828ac01918575b4436828c1ba5154e1674dfc7f (patch)
tree406ec97a7b5694399da6a6e2d008d995fbf13e54 /example/ndpiReader.c
parentc4b19fd6c5d7bd5649be4f15a974742d064eb89b (diff)
Tiny changes for TLS block lenght dissection
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index b0d1a9122..c525346fa 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1949,6 +1949,10 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
ndpi_load_categories_file(ndpi_thread_info[thread_id].workflow->ndpi_struct, _customCategoryFilePath);
ndpi_finalize_initalization(ndpi_thread_info[thread_id].workflow->ndpi_struct);
+
+#ifdef USE_TLS_LEN
+ ndpi_set_detection_preferences(ndpi_thread_info[thread_id].workflow->ndpi_struct, ndpi_pref_enable_tls_block_dissection, 1);
+#endif
}
/* *********************************************** */
@@ -2460,7 +2464,7 @@ static void printFlowsStats() {
if(verbose > 1) {
#ifndef DIRECTION_BINS
struct ndpi_bin *bins = (struct ndpi_bin*)ndpi_malloc(sizeof(struct ndpi_bin)*num_flows);
- u_int16_t *cluster_ids = (u_int16_t*)ndpi_malloc(sizeof(u_int16_t)*num_flows);;
+ u_int16_t *cluster_ids = (u_int16_t*)ndpi_malloc(sizeof(u_int16_t)*num_flows);
#endif
for(i=0; i<num_flows; i++) {