3 * Routines for RTCP dissection
4 * RTCP = Real-time Transport Control Protocol
6 * Copyright 2000, Philips Electronics N.V.
7 * Written by Andreas Sikkema <andreas.sikkema@philips.com>
9 * Wireshark - Network traffic analyzer
10 * By Gerald Combs <gerald@wireshark.org>
11 * Copyright 1998 Gerald Combs
13 * SPDX-License-Identifier: GPL-2.0-or-later
16 #include "ws_symbol_export.h"
18 /* Info to save in RTCP conversation / packet-info.
19 Note that this structure applies to the destination end of
21 #define MAX_RTCP_SETUP_METHOD_SIZE 10
22 struct _rtcp_conversation_info
24 /* Setup info is relevant to traffic whose dest is the conversation address */
25 unsigned char setup_method_set
;
26 char setup_method
[MAX_RTCP_SETUP_METHOD_SIZE
+ 1];
27 uint32_t setup_frame_number
;
29 /* Info used for roundtrip calculations */
30 unsigned char last_received_set
;
31 uint32_t last_received_frame_number
;
32 nstime_t last_received_timestamp
;
33 uint32_t last_received_ts
;
35 /* Stored result of calculation */
36 unsigned char lsr_matched
;
37 uint32_t calculated_delay_used_frame
;
38 int calculated_delay_report_gap
;
39 int32_t calculated_delay
;
42 struct srtp_info
*srtcp_info
;
46 /* Add an RTCP conversation with the given details */
48 void rtcp_add_address(packet_info
*pinfo
,
49 address
*addr
, int port
,
51 const char *setup_method
, uint32_t setup_frame_number
);
53 /* Add an SRTP conversation with the given details */
55 void srtcp_add_address(packet_info
*pinfo
,
56 address
*addr
, int port
,
58 const char *setup_method
, uint32_t setup_frame_number
,
59 struct srtp_info
*srtcp_info
);