diff options
author | Luca Deri <deri@ntop.org> | 2019-07-24 00:25:00 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-07-24 00:25:00 +0200 |
commit | b715467da621b0bb901160a14a01250e54e0b1f9 (patch) | |
tree | aa2255781dc8b84b84063c1c24e8e30179ad6d20 /example/reader_util.c | |
parent | 63173e7360d5acf6ef8f18a8d98edba48da0d7d6 (diff) |
Added -e option to ndpiReader for searchign human readeable strings lenght
Default human readeable strings lenght is not 5 chars (used to be 8)
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 9b03d1278..d0ec31930 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -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; |