aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-10-20 23:06:05 +0200
committerLuca Deri <deri@ntop.org>2019-10-20 23:06:05 +0200
commit58daa5ed7d2c4fe26a5b4bdc77f117ad3b027a71 (patch)
tree293a96e7cb9dcbb9ba1a53c67a8652b9710bdd6c /example/reader_util.c
parent437e8bd7068c26d4a291fff66910ec8428080eae (diff)
Added POP3 metadata extraction
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 1ad3e85c2..dffd0128c 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -961,6 +961,13 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
flow->ndpi_flow->protos.imap.username,
flow->ndpi_flow->protos.imap.password);
}
+ /* POP */
+ else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_MAIL_POP) {
+ if(flow->ndpi_flow->protos.pop.username[0] != '\0')
+ snprintf(flow->info, sizeof(flow->info), "User: %s][Pwd: %s",
+ flow->ndpi_flow->protos.pop.username,
+ flow->ndpi_flow->protos.pop.password);
+ }
/* KERBEROS */
else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_KERBEROS) {
if(flow->ndpi_flow->protos.kerberos.cname[0] != '\0') {