3 * Routines for RTP dissection
4 * RTP = Real time Transport Protocol
8 * Copyright 2000, Philips Electronics N.V.
9 * Written by Andreas Sikkema <andreas.sikkema@philips.com>
11 * Ethereal - Network traffic analyzer
12 * By Gerald Combs <gerald@ethereal.com>
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.
31 gboolean info_padding_set;
32 gboolean info_marker_set;
33 unsigned int info_payload_type;
34 unsigned int info_padding_count;
36 guint32 info_timestamp;
37 guint32 info_sync_src;
38 guint info_data_len; /* length of raw rtp data as reported */
39 gboolean info_all_data_present; /* FALSE if data is cut off */
40 guint info_payload_offset; /* start of payload relative to info_data */
41 guint info_payload_len; /* length of payload (incl padding) */
42 const guint8* info_data; /* pointer to raw rtp data */
44 * info_data: pointer to raw rtp data = header + payload incl. padding.
45 * That should be safe because the "epan_dissect_t" constructed for the packet
46 * has not yet been freed when the taps are called.
47 * (destroying the "epan_dissect_t" will end up freeing all the tvbuffs
48 * and hence invalidating pointers to their data).
49 * See "add_packet_to_packet_list()" for details.
53 /* Info to save in RTP conversation / packet-info */
54 #define MAX_RTP_SETUP_METHOD_SIZE 8
55 struct _rtp_conversation_info
57 gchar method[MAX_RTP_SETUP_METHOD_SIZE];
61 /* Add an RTP conversation with the given details */
62 void rtp_add_address(packet_info *pinfo,
63 const unsigned char* ip_addr, int port,
65 gchar *setup_method, guint32 setup_frame_number);