2 * RTP analysis addition for ethereal
6 * Copyright 2003, Alcatel Business Systems
7 * By Lars Ruoff <lars.ruoff@gmx.net>
10 * Copyright 2003, Iskratel, Ltd, Kranj
11 * By Miha Jemec <m.jemec@iskratel.si>
13 * Ethereal - Network traffic analyzer
14 * By Gerald Combs <gerald@ethereal.com>
15 * Copyright 1998 Gerald Combs
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License
19 * as published by the Free Software Foundation; either version 2
20 * of the License, or (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 #ifndef RTP_ANALYSIS_H_INCLUDED
33 #define RTP_ANALYSIS_H_INCLUDED
36 #include <epan/address.h>
37 #include <epan/packet_info.h>
57 /****************************************************************************/
58 /* structure that holds the information about the forward and reversed direction */
59 typedef struct _bw_history_item {
66 typedef struct _tap_rtp_stat_t {
67 gboolean first_packet; /* do not use in code that is called after rtp_packet_analyse */
68 /* use (flags & STAT_FLAG_FIRST) instead */
69 /* all of the following fields will be initialized after
70 rtp_packet_analyse has been called */
71 guint32 flags; /* see STAT_FLAG-defines below */
74 guint32 delta_timestamp;
76 bw_history_item bw_history[BUFF_BW];
77 guint16 bw_start_index;
99 #define PT_UNDEFINED -1
101 /* status flags for the flags parameter in tap_rtp_stat_t */
102 #define STAT_FLAG_FIRST 0x01
103 #define STAT_FLAG_MARKER 0x02
104 #define STAT_FLAG_WRONG_SEQ 0x04
105 #define STAT_FLAG_PT_CHANGE 0x08
106 #define STAT_FLAG_PT_CN 0x10
107 #define STAT_FLAG_FOLLOW_PT_CN 0x20
108 #define STAT_FLAG_REG_PT_CHANGE 0x40
109 #define STAT_FLAG_WRONG_TIMESTAMP 0x80
114 /* function for analysing an RTP packet. Called from rtp_analysis and rtp_streams */
115 extern int rtp_packet_analyse(tap_rtp_stat_t *statinfo,
117 const struct _rtp_info *rtpinfo);
120 #endif /*RTP_ANALYSIS_H_INCLUDED*/