From fc7b070030cc33029fc16a71ecd6bbe140bd105c Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Fri, 9 Dec 2022 14:26:53 +0100 Subject: Added RTP stream type in flow metadata --- src/include/ndpi_typedefs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index fb996f9a5..8c73723b2 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1278,6 +1278,13 @@ struct ndpi_risk_information { char *info; }; +enum ndpi_rtp_stream_type { + rtp_unknown = 0, + rtp_audio, + rtp_video, + rtp_audio_video, +}; + struct ndpi_flow_struct { u_int16_t detected_protocol_stack[NDPI_PROTOCOL_SIZE]; @@ -1387,6 +1394,10 @@ struct ndpi_flow_struct { ndpi_ip_addr_t rsp_addr; /* The first address in a DNS response packet */ } dns; + struct { + enum ndpi_rtp_stream_type stream_type; + } rtp; + struct { u_int8_t request_code; u_int8_t version; -- cgit v1.2.3