From Aaron Woo (via Jeff Weston): Optimized Link State Routing Protocol
[obnox/wireshark/wip.git] / packet-dcerpc-roverride.c
index 6312c8f8f2db033b58eedf8711e893126b2c55f0..ba1ed596a440822982ac62b65de1aa460c598bc7 100644 (file)
@@ -1,99 +1,88 @@
-/* packet-dcerpc-roverride.c\r
- *\r
- * Routines for Remote Override Interface\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/security.tar.gz security/idl/roverride.idl\r
- *\r
- * $Id: packet-dcerpc-roverride.c,v 1.1 2002/09/11 09:17:25 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_roverride = -1;\r
-static int hf_roverride_opnum = -1;\r
-\r
-\r
-static gint ett_roverride = -1;\r
-\r
-\r
-static e_uuid_t uuid_roverride = { 0x5d978990, 0x4851, 0x11ca, { 0x99, 0x37, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x48 } };\r
-static guint16  ver_roverride = 1;\r
-\r
-\r
-static dcerpc_sub_dissector roverride_dissectors[] = {\r
-    { 0, "roverride_get_login_info", NULL, NULL},\r
-    { 1, "roverride_check_passwd", NULL, NULL},\r
-    { 2, "roverride_is_passwd_overridden", NULL, NULL},\r
-    { 3, "roverride_get_by_unix_num", NULL, NULL},\r
-    { 4, "roverride_get_group_info", NULL, NULL},\r
-    { 5, "roverride_check_group_passwd", NULL, NULL},\r
-    { 6, "roverride_is_grp_pwd_overridden", NULL, NULL},\r
-    { 0, NULL, NULL, NULL }\r
-};\r
-\r
-static const value_string roverride_opnum_vals[] = {\r
-    { 0, "roverride_get_login_info" },\r
-    { 1, "roverride_check_passwd" },\r
-    { 2, "roverride_is_passwd_overridden" },\r
-    { 3, "roverride_get_by_unix_num" },\r
-    { 4, "roverride_get_group_info" },\r
-    { 5, "roverride_check_group_passwd" },\r
-    { 6, "roverride_is_grp_pwd_overridden" },\r
-    { 0, NULL }\r
-};\r
-\r
-void\r
-proto_register_roverride (void)\r
-{\r
-       static hf_register_info hf[] = {\r
-      { &hf_roverride_opnum,\r
-         { "Operation", "roverride.opnum", FT_UINT16, BASE_DEC, VALS(roverride_opnum_vals), 0x0, "Operation", HFILL }},\r
-       };\r
-\r
-       static gint *ett[] = {\r
-               &ett_roverride,\r
-       };\r
-       proto_roverride = proto_register_protocol ("Remote Override interface", "roverride", "roverride");\r
-       proto_register_field_array (proto_roverride, hf, array_length (hf));\r
-       proto_register_subtree_array (ett, array_length (ett));\r
-}\r
-\r
-void\r
-proto_reg_handoff_roverride (void)\r
-{\r
-       /* Register the protocol as dcerpc */\r
-       dcerpc_init_uuid (proto_roverride, ett_roverride, &uuid_roverride, ver_roverride, roverride_dissectors, hf_roverride_opnum);\r
-}\r
+/* packet-dcerpc-roverride.c
+ *
+ * Routines for Remote Override Interface
+ * Copyright 2002, Jaime Fournier <jafour1@yahoo.com>
+ * This information is based off the released idl files from opengroup.
+ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/roverride.idl
+ *
+ * $Id: packet-dcerpc-roverride.c,v 1.4 2003/08/04 02:49:01 tpot Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#include <string.h>
+
+#include <glib.h>
+#include <epan/packet.h>
+#include "packet-dcerpc.h"
+
+
+static int proto_roverride = -1;
+static int hf_roverride_opnum = -1;
+
+
+static gint ett_roverride = -1;
+
+
+static e_uuid_t uuid_roverride = { 0x5d978990, 0x4851, 0x11ca, { 0x99, 0x37, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x48 } };
+static guint16  ver_roverride = 1;
+
+
+static dcerpc_sub_dissector roverride_dissectors[] = {
+    { 0, "roverride_get_login_info", NULL, NULL},
+    { 1, "roverride_check_passwd", NULL, NULL},
+    { 2, "roverride_is_passwd_overridden", NULL, NULL},
+    { 3, "roverride_get_by_unix_num", NULL, NULL},
+    { 4, "roverride_get_group_info", NULL, NULL},
+    { 5, "roverride_check_group_passwd", NULL, NULL},
+    { 6, "roverride_is_grp_pwd_overridden", NULL, NULL},
+    { 0, NULL, NULL, NULL }
+};
+
+void
+proto_register_roverride (void)
+{
+       static hf_register_info hf[] = {
+      { &hf_roverride_opnum,
+         { "Operation", "roverride.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, "Operation", HFILL }},
+       };
+
+       static gint *ett[] = {
+               &ett_roverride,
+       };
+       proto_roverride = proto_register_protocol ("Remote Override interface", "roverride", "roverride");
+       proto_register_field_array (proto_roverride, hf, array_length (hf));
+       proto_register_subtree_array (ett, array_length (ett));
+}
+
+void
+proto_reg_handoff_roverride (void)
+{
+       /* Register the protocol as dcerpc */
+       dcerpc_init_uuid (proto_roverride, ett_roverride, &uuid_roverride, ver_roverride, roverride_dissectors, hf_roverride_opnum);
+}