From Jaime Fournier: DCE/RPC REP_PROC interface
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>
Fri, 13 Sep 2002 10:06:45 +0000 (10:06 -0000)
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>
Fri, 13 Sep 2002 10:06:45 +0000 (10:06 -0000)
svn path=/trunk/; revision=6290

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

diff --git a/AUTHORS b/AUTHORS
index 8b45ddeac4df72d63db4a89fd1d053b99b94fcd0..0217e147ef14363d76236d5823cb0c28e5069a92 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
+               KRB5RPC, REP_PROC
 
 Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to
 give his permission to use his version of snprintf.c.
index 022db29c64570e8d884b3e3e659743a218d006dd..1c0833cc9c12b30a80998653eb2ff25dadb5c4a7 100644 (file)
@@ -1,7 +1,7 @@
 # Makefile.am
 # Automake file for Ethereal
 #
-# $Id: Makefile.am,v 1.494 2002/09/13 09:59:21 sahlberg Exp $
+# $Id: Makefile.am,v 1.495 2002/09/13 10:06:45 sahlberg Exp $
 #
 # Ethereal - Network traffic analyzer
 # By Gerald Combs <gerald@ethereal.com>
@@ -137,6 +137,7 @@ DISSECTOR_SRC = \
        packet-dcerpc-oxid.c  \
        packet-dcerpc-reg.c \
        packet-dcerpc-remact.c  \
+       packet-dcerpc-rep_proc.c  \
        packet-dcerpc-roverride.c  \
        packet-dcerpc-rpriv.c  \
        packet-dcerpc-rs_acct.c  \
index 33890f93cf0c8089f079141db265aac59b52ec85..c013e66f8f149c53e636d13a29ed7fc198d674be 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.231 2002/09/13 09:59:21 sahlberg Exp $
+# $Id: Makefile.nmake,v 1.232 2002/09/13 10:06:45 sahlberg Exp $
 
 include config.nmake
 include <win32.mak>
@@ -79,6 +79,7 @@ DISSECTOR_SRC = \
        packet-dcerpc-oxid.c  \
        packet-dcerpc-reg.c \
        packet-dcerpc-remact.c  \
+       packet-dcerpc-rep_proc.c  \
        packet-dcerpc-roverride.c  \
        packet-dcerpc-rpriv.c  \
        packet-dcerpc-rs_acct.c  \
diff --git a/packet-dcerpc-rep_proc.c b/packet-dcerpc-rep_proc.c
new file mode 100644 (file)
index 0000000..19551c1
--- /dev/null
@@ -0,0 +1,108 @@
+/* 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