--- /dev/null
+/* 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