--- /dev/null
+/* packet-dcerpc-rep_proc.c\r
+ *\r
+ * Routines for dcerpc Replica Server Call dissection\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.tgz file/fsint/rep_proc.idl\r
+ *\r
+ * $Id: packet-dcerpc-rep_proc.c,v 1.1 2002/09/13 10:06:45 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_rep_proc = -1;\r
+static int hf_rep_proc_opnum = -1;\r
+\r
+\r
+static gint ett_rep_proc = -1;\r
+\r
+\r
+static e_uuid_t uuid_rep_proc = { 0x4d37f2dd, 0xed43, 0x0005, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };\r
+static guint16 ver_rep_proc = 4;\r
+\r
+\r
+static dcerpc_sub_dissector rep_proc_dissectors[] = {\r
+ { 0, "CheckReplicationConfig", NULL, NULL },\r
+ { 1, "AllCheckReplicationConfig", NULL, NULL },\r
+ { 2, "KeepFilesAlive", NULL , NULL},\r
+ { 3, "GetVolChangedFiles", NULL, NULL },\r
+ { 4, "GetRepStatus", NULL, NULL},\r
+ { 5, "GetRepServerStatus", NULL, NULL},\r
+ { 6, "UpdateSelf", NULL, NULL},\r
+ { 7, "Probe", NULL, NULL},\r
+ { 8, "GetOneRepStatus", NULL, NULL },\r
+ { 9, "GetServerInterfaces", NULL, NULL},\r
+ { 0, NULL, NULL, NULL }\r
+};\r
+\r
+\r
+static const value_string rep_proc_opnum_vals[] = {\r
+ { 0, "CheckReplicationConfig" },\r
+ { 1, "AllCheckReplicationConfig" },\r
+ { 2, "KeepFilesAlive" },\r
+ { 3, "GetVolChangedFiles" },\r
+ { 4, "GetRepStatus" },\r
+ { 5, "GetRepServerStatus" },\r
+ { 6, "UpdateSelf" },\r
+ { 7, "Probe" },\r
+ { 8, "GetOneRepStatus" },\r
+ { 9, "GetServerInterfaces" },\r
+ { 0, NULL }\r
+};\r
+\r
+\r
+void\r
+proto_register_rep_proc (void)\r
+{\r
+ static hf_register_info hf[] = {\r
+ { &hf_rep_proc_opnum,\r
+ { "Operation", "rep_proc.opnum", FT_UINT16, BASE_DEC,\r
+ VALS(rep_proc_opnum_vals), 0x0, "Operation", HFILL }}\r
+ };\r
+\r
+ static gint *ett[] = {\r
+ &ett_rep_proc,\r
+ };\r
+ proto_rep_proc = proto_register_protocol ("AFS (4.0) Replication Server call declarations", "REP_PROC", "rep_proc");\r
+ proto_register_field_array (proto_rep_proc, hf, array_length (hf));\r
+ proto_register_subtree_array (ett, array_length (ett));\r
+}\r
+\r
+void\r
+proto_reg_handoff_rep_proc (void)\r
+{\r
+ /* Register the protocol as dcerpc */\r
+ dcerpc_init_uuid (proto_rep_proc, ett_rep_proc, &uuid_rep_proc, ver_rep_proc, rep_proc_dissectors, hf_rep_proc_opnum);\r
+}\r