aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mgcp/packet-mgcp.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-03-06 09:01:47 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-03-06 09:01:47 +0000
commite00fb8c41365618d603fb0c8943540098ea42e5d (patch)
treead2df5060759258d225affe6746f23afe26bd23d /plugins/mgcp/packet-mgcp.h
parentb1a9c6e00ff713bcbfeb14a1b1215b6d386c6428 (diff)
From Lars Ronald :
MGCP request/response matching and MGCPSTAT RTT calculation. For those with MGCP captures, try -z mgcp,rtd[,filter] svn path=/trunk/; revision=7294
Diffstat (limited to 'plugins/mgcp/packet-mgcp.h')
-rwxr-xr-xplugins/mgcp/packet-mgcp.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/mgcp/packet-mgcp.h b/plugins/mgcp/packet-mgcp.h
new file mode 100755
index 0000000000..b7dbf3a339
--- /dev/null
+++ b/plugins/mgcp/packet-mgcp.h
@@ -0,0 +1,53 @@
+/* packet-mgcp.h
+ * Routines for mgcp packet disassembly
+ * RFC 2705
+ *
+ * $Id: packet-mgcp.h,v 1.1 2003/03/06 09:01:47 sahlberg Exp $
+ *
+ * Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu>
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1999 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+ /* A simple MGCP type that is occasionally handy */
+typedef enum _mgcp_type {
+ MGCP_REQUEST,
+ MGCP_RESPONSE,
+ MGCP_OTHERS
+} mgcp_type_t;
+
+/* Container for tapping relevant data */
+typedef struct _mgcp_info_t {
+ mgcp_type_t mgcp_type;
+ char code[5];
+ guint32 transid;
+ nstime_t req_time;
+ gboolean is_duplicate;
+ gboolean request_available;
+} mgcp_info_t;
+
+/* Item of request list */
+typedef struct _mgcp_call_t {
+ guint32 transid;
+ char code[5];
+ guint32 req_num; /* frame number request seen */
+ guint32 rsp_num; /* frame number response seen */
+ nstime_t req_time;
+ gboolean responded;
+} mgcp_call_t;