From Jaime Fournier: DCE/RCP FLDB interface
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 13 Sep 2002 10:28:54 +0000 (10:28 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 13 Sep 2002 10:28:54 +0000 (10:28 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6293 f5534014-38df-0310-8fa8-9805f1628bb7

AUTHORS
Makefile.am
Makefile.nmake
packet-dcerpc-fldb.c [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
index 692e15ba48b0e4d3d16a2b044d35fc01e7b82b97..761f6ab39f59dafa351fae56815f4b36c7b8185c 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1414,7 +1414,7 @@ Jamie Fournier <jafour1[AT]yahoo.com>
                RS_REPLIST, RS_UNIX, RPRIV, ROVERRIDE, RS_REPADM,
                DTSSTIME_REQ, CDS_SOLICIT, CPRPC_SERVER, DTSPROVIDER,
                UBIKDISK, UBIKVOTE, BOSSVR, FTSERVER, CDS_CLERKSERVER,
-               KRB5RPC, REP_PROC, SECIDMAP, TKN4INT
+               KRB5RPC, REP_PROC, SECIDMAP, TKN4INT, FLDB
 
 Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to
 give his permission to use his version of snprintf.c.
index dfa2feaaa9d52c641dd3a7b01dfd811ef1b2d063..4dd64529a47b8d1ca0e0ee9cea5797a583a0293b 100644 (file)
@@ -1,7 +1,7 @@
 # Makefile.am
 # Automake file for Ethereal
 #
-# $Id: Makefile.am,v 1.497 2002/09/13 10:20:48 sahlberg Exp $
+# $Id: Makefile.am,v 1.498 2002/09/13 10:28:54 sahlberg Exp $
 #
 # Ethereal - Network traffic analyzer
 # By Gerald Combs <gerald@ethereal.com>
@@ -125,6 +125,7 @@ DISSECTOR_SRC = \
        packet-dcerpc-dtsprovider.c \
        packet-dcerpc-dtsstime_req.c \
        packet-dcerpc-epm.c  \
+       packet-dcerpc-fldb.c  \
        packet-dcerpc-ftserver.c \
        packet-dcerpc-krb5rpc.c \
        packet-dcerpc-lsa.c \
index d3bb5622c6fddc906a5fb98bf778c11014956118..eb3086880dab97a80857f376421bd948bdd6b3fe 100644 (file)
@@ -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.234 2002/09/13 10:20:48 sahlberg Exp $
+# $Id: Makefile.nmake,v 1.235 2002/09/13 10:28:54 sahlberg Exp $
 
 include config.nmake
 include <win32.mak>
@@ -67,6 +67,7 @@ DISSECTOR_SRC = \
        packet-dcerpc-dtsprovider.c \
        packet-dcerpc-dtsstime_req.c \
        packet-dcerpc-epm.c  \
+       packet-dcerpc-fldb.c  \
        packet-dcerpc-ftserver.c \
        packet-dcerpc-krb5rpc.c \
        packet-dcerpc-lsa.c \
diff --git a/packet-dcerpc-fldb.c b/packet-dcerpc-fldb.c
new file mode 100644 (file)
index 0000000..970eaff
--- /dev/null
@@ -0,0 +1,148 @@
+/* packet-dcerpc-fldb.c\r
+ *\r
+ * Routines for dcerpc FLDB Calls\r
+ * Copyright 2002, Jaime Fournier <jafour1@yahoo.com>\r
+ * This information is based off the released idl files from opengroup.\r
+ * ftp://ftp.opengroup.org/pub/dce122/dce/src/file.tar.gz file/flserver/afsvl_proc.idl\r
+ *\r
+ * $Id: packet-dcerpc-fldb.c,v 1.1 2002/09/13 10:28:54 sahlberg Exp $\r
+ *\r
+ * Ethereal - Network traffic analyzer\r
+ * By Gerald Combs <gerald@ethereal.com>\r
+ * Copyright 1998 Gerald Combs\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
+ */\r
+\r
+#ifdef HAVE_CONFIG_H\r
+#include "config.h"\r
+#endif\r
+\r
+\r
+#ifdef HAVE_SYS_TYPES_H\r
+#include <sys/types.h>\r
+#endif\r
+\r
+#include <string.h>\r
+\r
+#include <glib.h>\r
+#include <epan/packet.h>\r
+#include "packet-dcerpc.h"\r
+\r
+\r
+static int proto_fldb = -1;\r
+static int hf_fldb_opnum = -1;\r
+\r
+\r
+static gint ett_fldb = -1;\r
+\r
+\r
+static e_uuid_t uuid_fldb = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x2e, 0x00, 0x00, 0x01 } };\r
+static guint16  ver_fldb = 4;\r
+\r
+                \r
+                \r
+static dcerpc_sub_dissector fldb_dissectors[] = {\r
+       {  0, "GetEntryByID", NULL, NULL },\r
+       {  1, "GetEntryByName", NULL, NULL },\r
+       {  2, "Probe", NULL, NULL},\r
+       {  3, "GetCellInfo", NULL, NULL},\r
+       {  4, "GetNextServersByID", NULL, NULL},\r
+       {  5, "GetNextServersByName", NULL, NULL},\r
+       {  6, "GetSiteInfo", NULL, NULL },\r
+       {  7, "GetCEntryByID", NULL, NULL},\r
+       {  8, "GetCEntryByName", NULL, NULL},\r
+       {  9, "GetCNextServersByID", NULL, NULL},\r
+       { 10, "GetCNextServersByName", NULL, NULL},\r
+       { 11, "ExpandSiteCookie", NULL, NULL},\r
+       { 12, "GetServerInterfaces", NULL, NULL},\r
+       { 13, "CreateEntry", NULL, NULL},\r
+       { 14, "DeleteEntry", NULL, NULL},\r
+       { 15, "GetNewVolumeId", NULL, NULL},\r
+       { 16, "ReplaceEntry", NULL, NULL},\r
+       { 17, "SetLock", NULL, NULL},\r
+       { 18, "ReleaseLock", NULL, NULL},\r
+       { 19, "ListEntry", NULL, NULL },\r
+       { 20, "ListByAttributes", NULL, NULL},\r
+       { 21, "GetStats", NULL, NULL},\r
+       { 22, "AddAddress", NULL, NULL},\r
+       { 23, "RemoveAddress", NULL, NULL},\r
+       { 24, "ChangeAddress", NULL, NULL},\r
+       { 25, "GenerateSites", NULL, NULL},\r
+       { 26, "GetNewVolumeIds", NULL, NULL},\r
+       { 27, "CreateServer", NULL, NULL},\r
+       { 28, "AlterServer", NULL, NULL},\r
+        { 0, NULL, NULL, NULL }\r
+};\r
+\r
+\r
+\r
+static const value_string fldb_opnum_vals[] = {\r
+       {  0, "GetEntryByID" },\r
+       {  1, "GetEntryByName" },\r
+       {  2, "Probe" },\r
+       {  3, "GetCellInfo" },\r
+       {  4, "GetNextServersByID" },\r
+       {  5, "GetNextServersByName" },\r
+       {  6, "GetSiteInfo" },\r
+       {  7, "GetCEntryByID" },\r
+       {  8, "GetCEntryByName" },\r
+       {  9, "GetCNextServersByID" },\r
+       { 10, "GetCNextServersByName" },\r
+       { 11, "ExpandSiteCookie" },\r
+       { 12, "GetServerInterfaces" },\r
+       { 13, "CreateEntry" },\r
+       { 14, "DeleteEntry" },\r
+       { 15, "GetNewVolumeId" },\r
+       { 16, "ReplaceEntry" },\r
+       { 17, "SetLock" },\r
+       { 18, "ReleaseLock" },\r
+       { 19, "ListEntry" },\r
+       { 20, "ListByAttributes" },\r
+       { 21, "GetStats" },\r
+       { 22, "AddAddress" },\r
+       { 23, "RemoveAddress" },\r
+       { 24, "ChangeAddress" },\r
+       { 25, "GenerateSites" },\r
+       { 26, "GetNewVolumeIds" },\r
+       { 27, "CreateServer" },\r
+       { 28, "AlterServer" },\r
+        { 0, NULL }\r
+};\r
+\r
+\r
+void\r
+proto_register_fldb (void)\r
+{\r
+       static hf_register_info hf[] = {\r
+         { &hf_fldb_opnum,\r
+           { "Operation", "fldb.opnum", FT_UINT16, BASE_DEC,\r
+             VALS(fldb_opnum_vals), 0x0, "Operation", HFILL }}\r
+       };\r
+\r
+       static gint *ett[] = {\r
+               &ett_fldb,\r
+       };\r
+       proto_fldb = proto_register_protocol ("DCE/RPC FLDB", "FLDB", "fldb");\r
+       proto_register_field_array (proto_fldb, hf, array_length (hf));\r
+       proto_register_subtree_array (ett, array_length (ett));\r
+}\r
+\r
+void\r
+proto_reg_handoff_fldb (void)\r
+{\r
+       /* Register the protocol as dcerpc */\r
+       dcerpc_init_uuid (proto_fldb, ett_fldb, &uuid_fldb, ver_fldb, fldb_dissectors, hf_fldb_opnum);\r
+}\r