aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2022-07-03 14:37:05 +0200
committerGitHub <noreply@github.com>2022-07-03 14:37:05 +0200
commit1a01e8dc687df706ef775122a5bc31baa07f12d4 (patch)
tree4de80bcf557d6b4fe36feb75a9b70aa47a5572fa /example/reader_util.c
parent5ca82ad84b9622a94655cb33797dd952e81b6e9b (diff)
Improved TFTP. Dissect Read/Write Request filenames. (#1617)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c7
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;