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