Added -e option to ndpiReader for searchign human readeable strings lenght

Default human readeable strings lenght is not 5 chars (used to be 8)
This commit is contained in:
Luca Deri
2019-07-24 00:25:00 +02:00
parent 63173e7360
commit b715467da6
44 changed files with 315 additions and 299 deletions
+3 -2
View File
@@ -75,7 +75,7 @@
#include "reader_util.h"
extern u_int8_t enable_protocol_guess;
extern u_int8_t verbose;
extern u_int8_t verbose, human_readeable_string_len;
/* ***************************************************** */
@@ -668,7 +668,8 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
if(!skip) {
char outbuf[64] = { '\0' };
if(ndpi_has_human_readeable_string(workflow->ndpi_struct, (char*)packet, header->caplen, 8,
if(ndpi_has_human_readeable_string(workflow->ndpi_struct, (char*)packet, header->caplen,
human_readeable_string_len,
flow->human_readeable_string_buffer,
sizeof(flow->human_readeable_string_buffer)) == 1)
flow->has_human_readeable_strings = 1;