diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-07-02 17:03:48 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-07-02 19:13:26 +0200 |
commit | e0e5708d1401522c39c137b14d6b4ea9ac7177b1 (patch) | |
tree | f5ac7ad327e693a7cb5d3d6e1e4b79ca224fd333 /example | |
parent | 7c5c811eb0a58150045dccff612574820b02a628 (diff) |
Improved TFTP. Dissect Read/Write Request filenames.improved/tftp-filename-dissection
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/reader_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index eb0ba1b5b..a81f87f6b 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1118,6 +1118,13 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl flow->ftp_imap_pop_smtp.auth_failed = flow->ndpi_flow->l4.tcp.ftp_imap_pop_smtp.auth_failed; } + /* TFTP */ + else if(is_ndpi_proto(flow, NDPI_PROTOCOL_TFTP)) { + flow->info_type = INFO_GENERIC; + if(flow->ndpi_flow->protos.tftp.filename[0] != '\0') + ndpi_snprintf(flow->info, sizeof(flow->info), "Filename: %s", + flow->ndpi_flow->protos.tftp.filename); + } /* KERBEROS */ else if(is_ndpi_proto(flow, NDPI_PROTOCOL_KERBEROS)) { flow->info_type = INFO_KERBEROS; |