Simplify the report of streaming multimedia info (#2026)

The two fields `flow->flow_type` and `flow->protos.rtp.stream_type` are
pretty much identical: rename the former in `flow->flow_multimedia_type`
and remove the latter.
This commit is contained in:
Ivan Nardi
2023-06-26 12:05:16 +02:00
committed by GitHub
parent 3a1600ff26
commit 88425e0199
11 changed files with 24 additions and 95 deletions
-30
View File
@@ -1707,36 +1707,6 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa
}
}
break;
case INFO_RTP:
if(flow->rtp.stream_type != rtp_unknown) {
const char *what;
switch(flow->rtp.stream_type) {
case rtp_screen_share:
what = "screen_share";
break;
case rtp_audio:
what = "audio";
break;
case rtp_video:
what = "video";
break;
case rtp_audio_video:
what = "audio/video";
break;
default:
what = NULL;
break;
}
if(what)
fprintf(out, "[RTP Stream Type: %s]", what);
}
}
if(flow->ssh_tls.advertised_alpns)