2 * IAX2 analysis addition for Wireshark
4 * based on rtp_analysis.c
5 * Copyright 2003, Alcatel Business Systems
6 * By Lars Ruoff <lars.ruoff@gmx.net>
9 * Copyright 2003, Iskratel, Ltd, Kranj
10 * By Miha Jemec <m.jemec@iskratel.si>
12 * Wireshark - Network traffic analyzer
13 * By Gerald Combs <gerald@wireshark.org>
14 * Copyright 1998 Gerald Combs
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 #ifndef __TAP_IAX2_ANALYSIS_H__
32 #define __TAP_IAX2_ANALYSIS_H__
34 #include <epan/address.h>
35 #include <epan/packet_info.h>
44 #endif /* __cplusplus */
46 /****************************************************************************/
47 /* structure that holds the information about the forward and reversed direction */
48 typedef struct _iax2_bw_history_item {
51 } iax2_bw_history_item;
55 typedef struct _tap_iax2_stat_t {
56 gboolean first_packet; /* do not use in code that is called after rtp_packet_analyse */
57 /* use (flags & STAT_FLAG_FIRST) instead */
58 /* all of the following fields will be initialized after
59 rtp_packet_analyse has been called */
60 guint32 flags; /* see STAT_FLAG-defines below */
63 guint32 delta_timestamp;
65 iax2_bw_history_item bw_history[BUFF_BW];
66 guint16 bw_start_index;
82 gboolean under; /* Unused? */
83 gint cycles; /* Unused? */
88 #define PT_UNDEFINED -1
90 /* status flags for the flags parameter in tap_iax2_stat_t */
91 #define STAT_FLAG_FIRST 0x001
92 #define STAT_FLAG_MARKER 0x002
93 #define STAT_FLAG_WRONG_SEQ 0x004
94 #define STAT_FLAG_PT_CHANGE 0x008
95 #define STAT_FLAG_PT_CN 0x010
96 #define STAT_FLAG_FOLLOW_PT_CN 0x020
97 #define STAT_FLAG_REG_PT_CHANGE 0x040
98 #define STAT_FLAG_WRONG_TIMESTAMP 0x080
100 /* function for analysing an IAX2 packet. Called from iax2_analysis. */
101 extern void iax2_packet_analyse(tap_iax2_stat_t *statinfo,
103 const struct _iax2_info_t *iax2info);
107 #endif /* __cplusplus */
109 #endif /* __TAP_IAX2_ANALYSIS_H__ */
112 * Editor modelines - http://www.wireshark.org/tools/modelines.html
117 * indent-tabs-mode: nil
120 * vi: set shiftwidth=4 tabstop=8 expandtab:
121 * :indentSize=4:tabSize=8:noTabs=true: