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 * SPDX-License-Identifier: GPL-2.0-or-later
19 #ifndef __TAP_IAX2_ANALYSIS_H__
20 #define __TAP_IAX2_ANALYSIS_H__
22 #include <epan/address.h>
23 #include <epan/packet_info.h>
32 #endif /* __cplusplus */
34 /****************************************************************************/
35 /* structure that holds the information about the forward and reversed direction */
36 typedef struct _iax2_bw_history_item {
39 } iax2_bw_history_item;
43 typedef struct _tap_iax2_stat_t {
44 gboolean first_packet; /* do not use in code that is called after iax2_packet_analyse */
45 /* use (flags & STAT_FLAG_FIRST) instead */
46 /* all of the following fields will be initialized after
47 iax2_packet_analyse has been called */
48 guint32 flags; /* see STAT_FLAG-defines below */
51 guint32 delta_timestamp;
53 iax2_bw_history_item bw_history[BUFF_BW];
54 guint16 bw_start_index;
70 gboolean under; /* Unused? */
71 gint cycles; /* Unused? */
76 #define PT_UNDEFINED -1
78 /* status flags for the flags parameter in tap_iax2_stat_t */
79 #define STAT_FLAG_FIRST 0x001
80 #define STAT_FLAG_MARKER 0x002
81 #define STAT_FLAG_WRONG_SEQ 0x004
82 #define STAT_FLAG_PT_CHANGE 0x008
83 #define STAT_FLAG_PT_CN 0x010
84 #define STAT_FLAG_FOLLOW_PT_CN 0x020
85 #define STAT_FLAG_REG_PT_CHANGE 0x040
86 #define STAT_FLAG_WRONG_TIMESTAMP 0x080
88 /* function for analysing an IAX2 packet. Called from iax2_analysis. */
89 extern void iax2_packet_analyse(tap_iax2_stat_t *statinfo,
91 const struct _iax2_info_t *iax2info);
95 #endif /* __cplusplus */
97 #endif /* __TAP_IAX2_ANALYSIS_H__ */
100 * Editor modelines - http://www.wireshark.org/tools/modelines.html
105 * indent-tabs-mode: nil
108 * vi: set shiftwidth=4 tabstop=8 expandtab:
109 * :indentSize=4:tabSize=8:noTabs=true: