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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user