5 * Routines for RTCP dissection
6 * RTCP = Real-time Transport Control Protocol
8 * Copyright 2000, Philips Electronics N.V.
9 * Written by Andreas Sikkema <andreas.sikkema@philips.com>
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 1998 Gerald Combs
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 /* Info to save in RTCP conversation / packet-info.
31 Note that this structure applies to the destination end of
33 #define MAX_RTCP_SETUP_METHOD_SIZE 7
34 struct _rtcp_conversation_info
36 /* Setup info is relevant to traffic whose dest is the conversation address */
37 guchar setup_method_set;
38 gchar setup_method[MAX_RTCP_SETUP_METHOD_SIZE + 1];
39 guint32 setup_frame_number;
41 /* Info used for roundtrip calculations */
42 guchar last_received_set;
43 guint32 last_received_frame_number;
44 nstime_t last_received_timestamp;
45 guint32 last_received_ts;
47 /* Stored result of calculation */
49 guint32 calculated_delay_used_frame;
50 gint calculated_delay_report_gap;
51 gint32 calculated_delay;
54 struct srtp_info *srtcp_info;
58 /* Add an RTCP conversation with the given details */
59 void rtcp_add_address(packet_info *pinfo,
60 address *addr, int port,
62 const gchar *setup_method, guint32 setup_frame_number);
64 /* Add an SRTP conversation with the given details */
65 void srtcp_add_address(packet_info *pinfo,
66 address *addr, int port,
68 const gchar *setup_method, guint32 setup_frame_number,
69 struct srtp_info *srtcp_info);