diff options
author | Chiara Maggi <83759140+ChiaraMaggi@users.noreply.github.com> | 2023-07-11 22:45:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 22:45:19 +0200 |
commit | 0b0f255cc2b4ef18b9c1b51cf71e86de5b2c462b (patch) | |
tree | 38ac6f5ad37af500d0618109cae75bbb3a87f827 /example/reader_util.c | |
parent | 950f5cc4e3ddd9bc0f8881950082283aa381c805 (diff) |
added feature to extract filename from http attachment (#2037)
* added feature to extract filename from http attachment
* fixed some issues
* added check for filename format
* added check for filename format
* remove an unnecessary print
* changed the size from 952 to 960
* modified some test result files
* small changes string size
* comment removed and mallocs checked
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 906d6dd43..1f53bd3b5 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1382,6 +1382,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl ndpi_snprintf(flow->http.server, sizeof(flow->http.server), "%s", flow->ndpi_flow->http.server ? flow->ndpi_flow->http.server : ""); ndpi_snprintf(flow->http.request_content_type, sizeof(flow->http.request_content_type), "%s", flow->ndpi_flow->http.request_content_type ? flow->ndpi_flow->http.request_content_type : ""); ndpi_snprintf(flow->http.nat_ip, sizeof(flow->http.nat_ip), "%s", flow->ndpi_flow->http.nat_ip ? flow->ndpi_flow->http.nat_ip : ""); + ndpi_snprintf(flow->http.filename, sizeof(flow->http.filename), "%s", flow->ndpi_flow->http.filename ? flow->ndpi_flow->http.filename : ""); } ndpi_snprintf(flow->http.user_agent, |