2 * MEGACO statistics handler functions used by tshark and wireshark
4 * Copyright 2008, Ericsson AB
5 * By Balint Reczey <balint.reczey@ericsson.com>
7 * most functions are copied from ui/gtk/rtp_stream.c and ui/gtk/rtp_analysis.c
8 * Copyright 2003, Alcatel Business Systems
9 * By Lars Ruoff <lars.ruoff@gmx.net>
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 1998 Gerald Combs
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
30 #ifndef TAP_MEGACO_COMMON_H
31 #define TAP_MEGACO_COMMON_H
33 #define NUM_TIMESTATS 12
35 #define GCP_CMD_REPLY_CASE \
36 case GCP_CMD_ADD_REPLY: \
37 case GCP_CMD_MOVE_REPLY: \
38 case GCP_CMD_MOD_REPLY: \
39 case GCP_CMD_SUB_REPLY: \
40 case GCP_CMD_AUDITCAP_REPLY: \
41 case GCP_CMD_AUDITVAL_REPLY: \
42 case GCP_CMD_NOTIFY_REPLY: \
43 case GCP_CMD_SVCCHG_REPLY: \
44 case GCP_CMD_TOPOLOGY_REPLY: \
47 #define GCP_CMD_REQ_CASE \
48 case GCP_CMD_ADD_REQ: \
49 case GCP_CMD_MOVE_REQ: \
50 case GCP_CMD_MOD_REQ: \
51 case GCP_CMD_SUB_REQ: \
52 case GCP_CMD_AUDITCAP_REQ: \
53 case GCP_CMD_AUDITVAL_REQ: \
54 case GCP_CMD_NOTIFY_REQ: \
55 case GCP_CMD_SVCCHG_REQ: \
56 case GCP_CMD_TOPOLOGY_REQ: \
57 case GCP_CMD_CTX_ATTR_AUDIT_REQ: \
58 case GCP_CMD_OTHER_REQ:
60 /* used to keep track of the statistics for an entire program interface */
61 typedef struct _megacostat_t {
63 timestat_t rtd[NUM_TIMESTATS];
71 GtkWidget *scrolled_window;
76 static const value_string megaco_message_type[] = {
91 int megacostat_packet(void *pms, packet_info *pinfo, epan_dissect_t *edt _U_, const void *pmi);
94 * Editor modelines - http://www.wireshark.org/tools/modelines.html
102 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
103 * :indentSize=8:tabSize=8:noTabs=false:
106 #endif /*TAP_MEGACO_COMMON_H*/