3 * Routines for RTP dissection
4 * RTP = Real time Transport Protocol
6 * $Id: packet-rtp.h,v 1.10 2003/11/20 23:34:30 guy Exp $
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 guint info_payload_offset; /* start of payload relative to info_data */
40 guint info_payload_len; /* length of payload (incl padding) */
41 const guint8* info_data; /* pointer to raw rtp data */
43 * info_data: pointer to raw rtp data = header + payload incl. padding.
44 * That should be safe because the "epan_dissect_t" constructed for the packet
45 * has not yet been freed when the taps are called.
46 * (destroying the "epan_dissect_t" will end up freeing all the tvbuffs
47 * and hence invalidating pointers to their data).
48 * See "add_packet_to_packet_list()" for details.
52 void rtp_add_address ( packet_info *pinfo, const unsigned char* ip_addr, int prt );
53 void proto_register_rtp( void );