diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-06-26 02:12:12 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-06-26 02:12:12 +0000 |
commit | 500d3993934d988fa5231333dd8c484513a81473 (patch) | |
tree | 6f8c32c4345dc2d7279a4d1b77e717d9ad9fbdc7 /ui/tap-megaco-common.h | |
parent | bbf6a3766e65ebc66f06f936e530e79ec2d5b31b (diff) | |
download | wireshark-500d3993934d988fa5231333dd8c484513a81473.tar.gz wireshark-500d3993934d988fa5231333dd8c484513a81473.tar.bz2 wireshark-500d3993934d988fa5231333dd8c484513a81473.zip |
Move tap-*-common.{h,c} into ui/ since that's the home for common UI functions.
svn path=/trunk/; revision=50165
Diffstat (limited to 'ui/tap-megaco-common.h')
-rw-r--r-- | ui/tap-megaco-common.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/ui/tap-megaco-common.h b/ui/tap-megaco-common.h new file mode 100644 index 0000000000..801abacd9a --- /dev/null +++ b/ui/tap-megaco-common.h @@ -0,0 +1,95 @@ +/* tap-rtp-common.h + * MEGACO statistics handler functions used by tshark and wireshark + * + * $Id$ + * + * Copyright 2008, Ericsson AB + * By Balint Reczey <balint.reczey@ericsson.com> + * + * most functions are copied from ui/gtk/rtp_stream.c and ui/gtk/rtp_analysis.c + * Copyright 2003, Alcatel Business Systems + * By Lars Ruoff <lars.ruoff@gmx.net> + * + * 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 TAP_MEGACO_COMMON_H +#define TAP_MEGACO_COMMON_H + +#define NUM_TIMESTATS 12 + +#define GCP_CMD_REPLY_CASE \ + case GCP_CMD_ADD_REPLY: \ + case GCP_CMD_MOVE_REPLY: \ + case GCP_CMD_MOD_REPLY: \ + case GCP_CMD_SUB_REPLY: \ + case GCP_CMD_AUDITCAP_REPLY: \ + case GCP_CMD_AUDITVAL_REPLY: \ + case GCP_CMD_NOTIFY_REPLY: \ + case GCP_CMD_SVCCHG_REPLY: \ + case GCP_CMD_TOPOLOGY_REPLY: \ + case GCP_CMD_REPLY: + +#define GCP_CMD_REQ_CASE \ + case GCP_CMD_ADD_REQ: \ + case GCP_CMD_MOVE_REQ: \ + case GCP_CMD_MOD_REQ: \ + case GCP_CMD_SUB_REQ: \ + case GCP_CMD_AUDITCAP_REQ: \ + case GCP_CMD_AUDITVAL_REQ: \ + case GCP_CMD_NOTIFY_REQ: \ + case GCP_CMD_SVCCHG_REQ: \ + case GCP_CMD_TOPOLOGY_REQ: \ + case GCP_CMD_CTX_ATTR_AUDIT_REQ: \ + case GCP_CMD_OTHER_REQ: + +/* used to keep track of the statistics for an entire program interface */ +typedef struct _megacostat_t { + char *filter; + timestat_t rtd[NUM_TIMESTATS]; + guint32 open_req_num; + guint32 disc_rsp_num; + guint32 req_dup_num; + guint32 rsp_dup_num; +#ifdef __GTK_H__ + GtkWidget *win; + GtkWidget *vbox; + GtkWidget *scrolled_window; + GtkTreeView *table; +#endif /*__GHTK_H__*/ +} megacostat_t; + +static const value_string megaco_message_type[] = { + { 0, "ADD "}, + { 1, "MOVE"}, + { 2, "MDFY"}, + { 3, "SUBT"}, + { 4, "AUCP"}, + { 5, "AUVL"}, + { 6, "NTFY"}, + { 7, "SVCC"}, + { 8, "TOPO"}, + { 9, "NONE"}, + { 10,"ALL "}, + { 0, NULL} +}; + +int megacostat_packet(void *pms, packet_info *pinfo, epan_dissect_t *edt _U_, const void *pmi); + +#endif /*TAP_MEGACO_COMMON_H*/ |