diff options
author | Luca Deri <deri@ntop.org> | 2019-06-30 11:59:51 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-06-30 11:59:51 +0200 |
commit | a1ac31062df98a651f2d6fee8bd3fe66e7734f6a (patch) | |
tree | a17c500cdcbca85be932ba7d1398b7f00ec8c6c3 /example/ndpiReader.c | |
parent | 06b05e21c627f87fc4bc16830099f30cc7df860b (diff) |
Added ndpi_has_human_readeable_string for detecting human-readeable strings in buffers
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 2a2f1cbf5..6351ce034 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2474,6 +2474,8 @@ static void ndpi_process_packet(u_char *args, /* allocate an exact size buffer to check overflows */ uint8_t *packet_checked = malloc(header->caplen); + /* ndpi_has_human_readeable_string(ndpi_info_mod, (char*)packet, header->caplen, 3); */ + memcpy(packet_checked, packet, header->caplen); p = ndpi_workflow_process_packet(ndpi_thread_info[thread_id].workflow, header, packet_checked); |