Add a inflateEnd() call to free up the stream in the re-init block.
[obnox/wireshark/wip.git] / epan / dissectors / packet-rtcp.h
1 /* packet-rtcp.h
2  *
3  * $Id$
4  *
5  * Routines for RTCP dissection
6  * RTCP = Real-time Transport Control Protocol
7  *
8  * Copyright 2000, Philips Electronics N.V.
9  * Written by Andreas Sikkema <andreas.sikkema@philips.com>
10  *
11  * Wireshark - Network traffic analyzer
12  * By Gerald Combs <gerald@wireshark.org>
13  * Copyright 1998 Gerald Combs
14  *
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.
19  *
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.
24  *
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.
28  */
29
30 /* Info to save in RTCP conversation / packet-info.
31    Note that this structure applies to the destination end of
32    an RTP session */
33 #define MAX_RTCP_SETUP_METHOD_SIZE 7
34 struct _rtcp_conversation_info
35 {
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;
40
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;
46
47     /* Stored result of calculation */
48     guchar  lsr_matched;
49     guint32 calculated_delay_used_frame;
50     gint    calculated_delay_report_gap;
51     gint32  calculated_delay;
52
53     /* SRTCP context */
54     struct srtp_info *srtcp_info;
55 };
56
57
58 /* Add an RTCP conversation with the given details */
59 void rtcp_add_address(packet_info *pinfo,
60                       address *addr, int port,
61                       int other_port,
62                       const gchar *setup_method, guint32 setup_frame_number);
63
64 /* Add an SRTP conversation with the given details */
65 void srtcp_add_address(packet_info *pinfo,
66                       address *addr, int port,
67                       int other_port,
68                       const gchar *setup_method, guint32 setup_frame_number,
69                       struct srtp_info *srtcp_info);