Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-rtcp.h
1 /* packet-rtcp.h
2  *
3  * Routines for RTCP dissection
4  * RTCP = Real-time Transport Control Protocol
5  *
6  * Copyright 2000, Philips Electronics N.V.
7  * Written by Andreas Sikkema <andreas.sikkema@philips.com>
8  *
9  * Wireshark - Network traffic analyzer
10  * By Gerald Combs <gerald@wireshark.org>
11  * Copyright 1998 Gerald Combs
12  *
13  * SPDX-License-Identifier: GPL-2.0-or-later
14  */
15 
16 #include "ws_symbol_export.h"
17 
18 /* Info to save in RTCP conversation / packet-info.
19  Note that this structure applies to the destination end of
20  an RTP session */
21 #define MAX_RTCP_SETUP_METHOD_SIZE 10
23 {
24  /* Setup info is relevant to traffic whose dest is the conversation address */
25  guchar setup_method_set;
26  gchar setup_method[MAX_RTCP_SETUP_METHOD_SIZE + 1];
27  guint32 setup_frame_number;
28 
29  /* Info used for roundtrip calculations */
30  guchar last_received_set;
31  guint32 last_received_frame_number;
32  nstime_t last_received_timestamp;
33  guint32 last_received_ts;
34 
35  /* Stored result of calculation */
36  guchar lsr_matched;
37  guint32 calculated_delay_used_frame;
38  gint calculated_delay_report_gap;
39  gint32 calculated_delay;
40 
41  /* SRTCP context */
42  struct srtp_info *srtcp_info;
43 };
44 
45 
46 /* Add an RTCP conversation with the given details */
47 WS_DLL_PUBLIC
48 void rtcp_add_address(packet_info *pinfo,
49  address *addr, int port,
50  int other_port,
51  const gchar *setup_method, guint32 setup_frame_number);
52 
53 /* Add an SRTP conversation with the given details */
54 WS_DLL_PUBLIC
55 void srtcp_add_address(packet_info *pinfo,
56  address *addr, int port,
57  int other_port,
58  const gchar *setup_method, guint32 setup_frame_number,
59  struct srtp_info *srtcp_info);
Definition: address.h:56
Definition: packet_info.h:44
Definition: packet-rtcp.h:23
Definition: nstime.h:26
Definition: packet-rtp.h:95