Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ui
tap-iax2-analysis.h
Go to the documentation of this file.
1
/* tap-iax2-analysis.h
2
* IAX2 analysis addition for Wireshark
3
*
4
* based on rtp_analysis.c
5
* Copyright 2003, Alcatel Business Systems
6
* By Lars Ruoff <lars.ruoff@gmx.net>
7
*
8
* based on tap_rtp.c
9
* Copyright 2003, Iskratel, Ltd, Kranj
10
* By Miha Jemec <m.jemec@iskratel.si>
11
*
12
* Wireshark - Network traffic analyzer
13
* By Gerald Combs <gerald@wireshark.org>
14
* Copyright 1998 Gerald Combs
15
*
16
* SPDX-License-Identifier: GPL-2.0-or-later
17
*/
18
19
#ifndef __TAP_IAX2_ANALYSIS_H__
20
#define __TAP_IAX2_ANALYSIS_H__
21
22
#include <epan/address.h>
23
#include <
epan/packet_info.h
>
24
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
/* __cplusplus */
33
34
/****************************************************************************/
35
/* structure that holds the information about the forward and reversed direction */
36
typedef
struct
_iax2_bw_history_item
{
37
double
time;
38
guint32 bytes;
39
}
iax2_bw_history_item
;
40
41
#define BUFF_BW 300
42
43
typedef
struct
_tap_iax2_stat_t
{
44
gboolean first_packet;
/* do not use in code that is called after rtp_packet_analyse */
45
/* use (flags & STAT_FLAG_FIRST) instead */
46
/* all of the following fields will be initialized after
47
rtp_packet_analyse has been called */
48
guint32 flags;
/* see STAT_FLAG-defines below */
49
guint16 seq_num;
50
guint32 timestamp;
51
guint32 delta_timestamp;
52
double
bandwidth;
53
iax2_bw_history_item
bw_history[BUFF_BW];
54
guint16 bw_start_index;
55
guint16 bw_index;
56
guint32 total_bytes;
57
double
delta;
58
double
jitter;
59
double
diff;
60
double
time;
61
double
start_time;
62
double
max_delta;
63
double
max_jitter;
64
double
mean_jitter;
65
guint32 max_nr;
66
guint16 start_seq_nr;
67
guint16 stop_seq_nr;
68
guint32 total_nr;
69
guint32 sequence;
70
gboolean under;
/* Unused? */
71
gint cycles;
/* Unused? */
72
guint16 pt;
73
int
reg_pt;
74
}
tap_iax2_stat_t
;
75
76
#define PT_UNDEFINED -1
77
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
87
88
/* function for analysing an IAX2 packet. Called from iax2_analysis. */
89
extern
void
iax2_packet_analyse(
tap_iax2_stat_t
*statinfo,
90
packet_info
*pinfo,
91
const
struct
_iax2_info_t
*iax2info);
92
93
#ifdef __cplusplus
94
}
95
#endif
/* __cplusplus */
96
97
#endif
/* __TAP_IAX2_ANALYSIS_H__ */
98
99
/*
100
* Editor modelines - http://www.wireshark.org/tools/modelines.html
101
*
102
* Local variables:
103
* c-basic-offset: 4
104
* tab-width: 8
105
* indent-tabs-mode: nil
106
* End:
107
*
108
* vi: set shiftwidth=4 tabstop=8 expandtab:
109
* :indentSize=4:tabSize=8:noTabs=true:
110
*/
_packet_info
Definition:
packet_info.h:44
_tap_iax2_stat_t
Definition:
tap-iax2-analysis.h:43
_iax2_bw_history_item
Definition:
tap-iax2-analysis.h:36
packet_info.h
_iax2_info_t
Definition:
packet-iax2.h:228
Generated by
1.8.11