aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2022-12-09 14:26:53 +0100
committerLuca Deri <deri@ntop.org>2022-12-09 14:26:53 +0100
commitfc7b070030cc33029fc16a71ecd6bbe140bd105c (patch)
tree74b6cc36a68b8428b3eba724fc1d0d7a0cc99cfc /example/reader_util.c
parent63f349319f00abd29af03ebefc969caf17fa65e9 (diff)
Added RTP stream type in flow metadata
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 276215eff..5b85c4784 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1228,8 +1228,12 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
ndpi_snprintf(flow->http.request_content_type, sizeof(flow->http.request_content_type), "%s", flow->ndpi_flow->http.request_content_type ? flow->ndpi_flow->http.request_content_type : "");
}
}
+ /* RTP */
+ else if(is_ndpi_proto(flow, NDPI_PROTOCOL_RTP)) {
+ flow->info_type = INFO_RTP;
+ flow->rtp.stream_type = flow->ndpi_flow->protos.rtp.stream_type;
/* COLLECTD */
- else if(is_ndpi_proto(flow, NDPI_PROTOCOL_COLLECTD)) {
+ } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_COLLECTD)) {
flow->info_type = INFO_GENERIC;
if(flow->ndpi_flow->protos.collectd.client_username[0] != '\0')
ndpi_snprintf(flow->info, sizeof(flow->info), "Username: %s",