From Jaime Fournier
[obnox/wireshark/wip.git] / packet-dcerpc-rs_bind.c
diff --git a/packet-dcerpc-rs_bind.c b/packet-dcerpc-rs_bind.c
new file mode 100644 (file)
index 0000000..fb93d72
--- /dev/null
@@ -0,0 +1,89 @@
+/* packet-dcerpc-rs_bind.c\r
+ *\r
+ * Routines for DFS/RS_BIND\r
+ * Copyright 2003, 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/security.tar.gz security/idl/rs_bind.idl\r
+ *     \r
+ * $Id: packet-dcerpc-rs_bind.c,v 1.1 2003/10/22 02:07:39 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
+#include "packet-dcerpc-dce122.h"\r
+\r
+\r
+static int proto_rs_bind = -1;\r
+static int hf_rs_bind_opnum = -1;\r
+\r
+static gint ett_rs_bind = -1;\r
+\r
+\r
+static e_uuid_t uuid_rs_bind =\r
+  { 0xd46113d0, 0xa848, 0x11cb, {0xb8, 0x63, 0x08, 0x00, 0x1e, 0x04, 0x6a,\r
+                                0xa5}\r
\r
+};\r
+static guint16 ver_rs_bind = 2;\r
+\r
+\r
+static dcerpc_sub_dissector rs_bind_dissectors[] = {\r
+  {0, "get_update_site", NULL, NULL},\r
+  {0, NULL, NULL, NULL},\r
+\r
+};\r
+\r
+void\r
+proto_register_rs_bind (void)\r
+{\r
+  static hf_register_info hf[] = {\r
+        { &hf_rs_bind_opnum,\r
+                { "Operation", "rs_bind.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, "Operation", HFILL }},\r
+  };\r
+\r
+  static gint *ett[] = {\r
+    &ett_rs_bind,\r
+  };\r
+  proto_rs_bind =\r
+    proto_register_protocol ("DCE/RPC RS_BIND", "RS_BIND", "rs_bind");\r
+  proto_register_field_array (proto_rs_bind, hf, array_length (hf));\r
+  proto_register_subtree_array (ett, array_length (ett));\r
+}\r
+\r
+void\r
+proto_reg_handoff_rs_bind (void)\r
+{\r
+  /* Register the protocol as dcerpc */\r
+  dcerpc_init_uuid (proto_rs_bind, ett_rs_bind, &uuid_rs_bind, ver_rs_bind,\r
+                   rs_bind_dissectors, hf_rs_bind_opnum);\r
+}\r