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 */
18 #ifndef __TAP_IAX2_ANALYSIS_H__
19 #define __TAP_IAX2_ANALYSIS_H__
21 #include <epan/address.h>
22 #include <epan/packet_info.h>
31 #endif /* __cplusplus */
33 /****************************************************************************/
34 /* structure that holds the information about the forward and reversed direction */
35 typedef struct _iax2_bw_history_item {
38 } iax2_bw_history_item;
42 typedef struct _tap_iax2_stat_t {
43 gboolean first_packet; /* do not use in code that is called after rtp_packet_analyse */
44 /* use (flags & STAT_FLAG_FIRST) instead */
45 /* all of the following fields will be initialized after
46 rtp_packet_analyse has been called */
47 guint32 flags; /* see STAT_FLAG-defines below */
50 guint32 delta_timestamp;
52 iax2_bw_history_item bw_history[BUFF_BW];
53 guint16 bw_start_index;
69 gboolean under; /* Unused? */
70 gint cycles; /* Unused? */
75 #define PT_UNDEFINED -1
77 /* status flags for the flags parameter in tap_iax2_stat_t */
78 #define STAT_FLAG_FIRST 0x001
79 #define STAT_FLAG_MARKER 0x002
80 #define STAT_FLAG_WRONG_SEQ 0x004
81 #define STAT_FLAG_PT_CHANGE 0x008
82 #define STAT_FLAG_PT_CN 0x010
83 #define STAT_FLAG_FOLLOW_PT_CN 0x020
84 #define STAT_FLAG_REG_PT_CHANGE 0x040
85 #define STAT_FLAG_WRONG_TIMESTAMP 0x080
87 /* function for analysing an IAX2 packet. Called from iax2_analysis. */
88 extern void iax2_packet_analyse(tap_iax2_stat_t *statinfo,
90 const struct _iax2_info_t *iax2info);
94 #endif /* __cplusplus */
96 #endif /* __TAP_IAX2_ANALYSIS_H__ */
99 * Editor modelines - http://www.wireshark.org/tools/modelines.html
104 * indent-tabs-mode: nil
107 * vi: set shiftwidth=4 tabstop=8 expandtab:
108 * :indentSize=4:tabSize=8:noTabs=true: