summaryrefslogtreecommitdiff
path: root/ui/gtk/iax2_analysis.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-09-03 11:46:20 -0700
committerGerald Combs <gerald@wireshark.org>2015-09-03 21:48:48 +0000
commite4d9ce18d8008e29c824d6de89b04eb486532755 (patch)
treeef20e949a410782d6d319d9b0e692dea38bcd665 /ui/gtk/iax2_analysis.h
parent04913778d899939cefbcfa47de50e9c9a1aa0447 (diff)
downloadwireshark-e4d9ce18d8008e29c824d6de89b04eb486532755.tar.gz
Move IAX2 analysis to the ui directory.
Rename ui/gtk/iax2_analysis.h to ui/tap-iax2-analysis.h. Move iax2_packet_analyse to ui/tap-iax2-analysis.c. Rename rtp_analysis.h to tap-rtp-analysis.h to match IAX2. Change-Id: Ice7e9ad0d7bf62d631850089c880ec09a3e101dd Reviewed-on: https://code.wireshark.org/review/10375 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/gtk/iax2_analysis.h')
-rw-r--r--ui/gtk/iax2_analysis.h117
1 files changed, 0 insertions, 117 deletions
diff --git a/ui/gtk/iax2_analysis.h b/ui/gtk/iax2_analysis.h
deleted file mode 100644
index c7bc10ce70..0000000000
--- a/ui/gtk/iax2_analysis.h
+++ /dev/null
@@ -1,117 +0,0 @@
-/* iax2_analysis.h
- * IAX2 analysis addition for Wireshark
- *
- * based on rtp_analysis.c
- * Copyright 2003, Alcatel Business Systems
- * By Lars Ruoff <lars.ruoff@gmx.net>
- *
- * based on tap_rtp.c
- * Copyright 2003, Iskratel, Ltd, Kranj
- * By Miha Jemec <m.jemec@iskratel.si>
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef __IAX2_ANALYSIS_H__
-#define __IAX2_ANALYSIS_H__
-
-#include <glib.h>
-#include <epan/address.h>
-#include <epan/packet_info.h>
-
-/** @file
- * ???
- * @todo what's this?
- */
-
-void iax2_analysis(
- address *ip_src_fwd,
- guint16 port_src_fwd,
- address *ip_dst_fwd,
- guint16 port_dst_fwd,
- address *ip_src_rev,
- guint16 port_src_rev,
- address *ip_dst_rev,
- guint16 port_dst_rev
- );
-
-/****************************************************************************/
-/* structure that holds the information about the forward and reversed direction */
-typedef struct _iax2_bw_history_item {
- double time;
- guint32 bytes;
-} iax2_bw_history_item;
-
-#define BUFF_BW 300
-
-typedef struct _tap_iax2_stat_t {
- gboolean first_packet; /* do not use in code that is called after rtp_packet_analyse */
- /* use (flags & STAT_FLAG_FIRST) instead */
- /* all of the following fields will be initialized after
- rtp_packet_analyse has been called */
- guint32 flags; /* see STAT_FLAG-defines below */
- guint16 seq_num;
- guint32 timestamp;
- guint32 delta_timestamp;
- double bandwidth;
- iax2_bw_history_item bw_history[BUFF_BW];
- guint16 bw_start_index;
- guint16 bw_index;
- guint32 total_bytes;
- double delta;
- double jitter;
- double diff;
- double time;
- double start_time;
- double max_delta;
- double max_jitter;
- double mean_jitter;
- guint32 max_nr;
- guint16 start_seq_nr;
- guint16 stop_seq_nr;
- guint32 total_nr;
- guint32 sequence;
- gboolean under;
- gint cycles;
- guint16 pt;
- int reg_pt;
-} tap_iax2_stat_t;
-
-#define PT_UNDEFINED -1
-
-/* status flags for the flags parameter in tap_iax2_stat_t */
-#define STAT_FLAG_FIRST 0x001
-#define STAT_FLAG_MARKER 0x002
-#define STAT_FLAG_WRONG_SEQ 0x004
-#define STAT_FLAG_PT_CHANGE 0x008
-#define STAT_FLAG_PT_CN 0x010
-#define STAT_FLAG_FOLLOW_PT_CN 0x020
-#define STAT_FLAG_REG_PT_CHANGE 0x040
-#define STAT_FLAG_WRONG_TIMESTAMP 0x080
-
-/* forward */
-struct _rtp_info;
-
-/* function for analysing an RTP packet. Called from rtp_analysis and rtp_streams */
-extern int iax2_packet_analyse(tap_iax2_stat_t *statinfo,
- packet_info *pinfo,
- const struct _iax2_info_t *iax2info);
-
-
-#endif /* __IAX2_ANALYSIS_H__ */