diff options
author | Luca Deri <deri@ntop.org> | 2023-06-14 23:44:57 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-06-14 23:44:57 +0200 |
commit | d0609ea601f6e0e9fac7cfe622d07e41f0129e89 (patch) | |
tree | 7c94c0dabb6d119ee37ee451a72f0791ec5ef93f /example/ndpiReader.c | |
parent | 66bee475ae1b1f4b1b4104555b7bb4d38c3e20b6 (diff) |
Implemented Zoom/Teams stream type detection
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index f7482ca65..5eb47f741 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1522,6 +1522,30 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa ndpi_get_proto_name(ndpi_thread_info[thread_id].workflow->ndpi_struct, flow->detected_protocol.protocol_by_ip)); + if(flow->multimedia_flow_type != ndpi_multimedia_unknown_flow) { + const char *content; + + switch(flow->multimedia_flow_type) { + case ndpi_multimedia_audio_flow: + content = "Audio"; + break; + + case ndpi_multimedia_video_flow: + content = "Video"; + break; + + case ndpi_multimedia_screen_sharing_flow: + content = "Screen Sharing"; + break; + + default: + content = "???"; + break; + } + + fprintf(out, "[Stream Content: %s]", content); + } + fprintf(out, "[%s]", ndpi_is_encrypted_proto(ndpi_thread_info[thread_id].workflow->ndpi_struct, flow->detected_protocol) ? "Encrypted" : "ClearText"); |