diff options
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"); |