aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-05-23 10:00:19 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-05-23 10:00:19 +0000
commitc01a2aa70bf7cd491a72d0d400c7b245540df2d8 (patch)
treef5f5e73022f6484cb9c104744378653eb550b2b6
parent85c7401856f07c2c460a9a4e3c4549f12549ff36 (diff)
downloadwireshark-c01a2aa70bf7cd491a72d0d400c7b245540df2d8.tar.gz
wireshark-c01a2aa70bf7cd491a72d0d400c7b245540df2d8.tar.bz2
wireshark-c01a2aa70bf7cd491a72d0d400c7b245540df2d8.zip
Added stub for MS Exchange MAPI protocol.
If anyone has a better name they are welcome to change it. Perhaps we can now remove the packet-mapi.c dissector. svn path=/trunk/; revision=5530
-rw-r--r--Makefile.am3
-rw-r--r--Makefile.nmake3
-rw-r--r--packet-dcerpc-mapi.c73
-rw-r--r--packet-dcerpc-mapi.h32
4 files changed, 109 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 8e250887ec..c2e4ff3908 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
# Makefile.am
# Automake file for Ethereal
#
-# $Id: Makefile.am,v 1.431 2002/05/16 08:49:59 sahlberg Exp $
+# $Id: Makefile.am,v 1.432 2002/05/23 10:00:19 sahlberg Exp $
#
# Ethereal - Network traffic analyzer
# By Gerald Combs <gerald@ethereal.com>
@@ -105,6 +105,7 @@ DISSECTOR_SRC = \
packet-dcerpc-dfs.c \
packet-dcerpc-epm.c \
packet-dcerpc-lsa.c \
+ packet-dcerpc-mapi.c \
packet-dcerpc-mgmt.c \
packet-dcerpc-ndr.c \
packet-dcerpc-netlogon.c \
diff --git a/Makefile.nmake b/Makefile.nmake
index 381a5ed5a0..c5508219a4 100644
--- a/Makefile.nmake
+++ b/Makefile.nmake
@@ -1,7 +1,7 @@
## Makefile for building ethereal.exe with Microsoft C and nmake
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
-# $Id: Makefile.nmake,v 1.186 2002/05/16 08:50:00 sahlberg Exp $
+# $Id: Makefile.nmake,v 1.187 2002/05/23 10:00:19 sahlberg Exp $
include config.nmake
include <win32.mak>
@@ -56,6 +56,7 @@ DISSECTOR_SRC = \
packet-dcerpc-dfs.c \
packet-dcerpc-epm.c \
packet-dcerpc-lsa.c \
+ packet-dcerpc-mapi.c \
packet-dcerpc-mgmt.c \
packet-dcerpc-ndr.c \
packet-dcerpc-netlogon.c \
diff --git a/packet-dcerpc-mapi.c b/packet-dcerpc-mapi.c
new file mode 100644
index 0000000000..b2253fede1
--- /dev/null
+++ b/packet-dcerpc-mapi.c
@@ -0,0 +1,73 @@
+/* packet-dcerpc-mapi.c
+ * Routines for MS Exchange MAPI
+ * Copyright 2002, Ronnie Sahlberg
+ *
+ * $Id: packet-dcerpc-mapi.c,v 1.1 2002/05/23 10:00:19 sahlberg Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <glib.h>
+#include <epan/packet.h>
+#include "packet-dcerpc.h"
+#include "packet-dcerpc-mapi.h"
+
+static int proto_dcerpc_mapi = -1;
+static gint ett_dcerpc_mapi = -1;
+
+static e_uuid_t uuid_dcerpc_mapi = {
+ 0xa4f1db00, 0xca47, 0x1067,
+ { 0xb3, 0x1f, 0x00, 0xdd, 0x01, 0x06, 0x62, 0xda }
+};
+
+static guint16 ver_dcerpc_mapi = 0;
+
+static dcerpc_sub_dissector dcerpc_mapi_dissectors[] = {
+ { MAPI_LOGON, "Logon", NULL, NULL },
+ { MAPI_LOGOFF, "Logoff", NULL, NULL },
+
+ {0, NULL, NULL, NULL },
+};
+
+void
+proto_register_dcerpc_mapi(void)
+{
+ static gint *ett[] = {
+ &ett_dcerpc_mapi,
+ };
+
+ proto_dcerpc_mapi = proto_register_protocol(
+ "Microsoft Exchange MAPI", "MAPI", "mapi");
+
+ proto_register_subtree_array(ett, array_length(ett));
+}
+
+void
+proto_reg_handoff_dcerpc_mapi(void)
+{
+ /* Register protocol as dcerpc */
+
+ dcerpc_init_uuid(proto_dcerpc_mapi, ett_dcerpc_mapi,
+ &uuid_dcerpc_mapi, ver_dcerpc_mapi,
+ dcerpc_mapi_dissectors);
+}
diff --git a/packet-dcerpc-mapi.h b/packet-dcerpc-mapi.h
new file mode 100644
index 0000000000..fd8cc55381
--- /dev/null
+++ b/packet-dcerpc-mapi.h
@@ -0,0 +1,32 @@
+/* packet-dcerpc-mapi.h
+ * Routines for MS Exchange MAPI dissection
+ * Copyright 2002, Ronnie Sahlberg
+ *
+ * $Id: packet-dcerpc-mapi.h,v 1.1 2002/05/23 10:00:19 sahlberg Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PACKET_DCERPC_MAPI_H
+#define __PACKET_DCERPC_MAPI_H
+
+#define MAPI_LOGON 0x00
+#define MAPI_LOGOFF 0x01
+
+#endif