Get rid of carriage returns - they upset some UNIX compilers (and

Windows compilers, etc. largely appear to handle files without them,
assuming CVS doesn't just put them in when you check them out).

Also get rid of execute permission on source files.

svn path=/trunk/; revision=6588
This commit is contained in:
Guy Harris 2002-11-08 19:46:09 +00:00
parent aac18f73d4
commit 41f68b84f7
23 changed files with 2810 additions and 2810 deletions

View File

@ -1,148 +1,148 @@
/* packet-dcerpc-afs4int.c
*
* Routines for dcerpc Afs4Int dissection
* 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/file.tar.gz file/fsint/afs4int.idl
*
* $Id: packet-dcerpc-afs4int.c,v 1.1 2002/09/13 10:36:55 sahlberg 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_afs4int = -1;
static int hf_afs4int_opnum = -1;
static gint ett_afs4int = -1;
static e_uuid_t uuid_afs4int = { 0x4d37f2dd, 0xed93, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_afs4int = 4;
static dcerpc_sub_dissector afs4int_dissectors[] = {
{ 0, "SetContext", NULL, NULL },
{ 1, "LookupRoot", NULL, NULL },
{ 2, "FetchData", NULL, NULL },
{ 3, "FetchACL", NULL, NULL },
{ 4, "FetchStatus", NULL, NULL },
{ 5, "StoreData", NULL, NULL },
{ 6, "StoreACL", NULL, NULL },
{ 7, "StoreStatus", NULL, NULL },
{ 8, "RemoveFile", NULL, NULL },
{ 9, "CreateFile", NULL, NULL },
{ 10, "Rename", NULL, NULL },
{ 11, "Symlink", NULL, NULL },
{ 12, "HardLink", NULL, NULL },
{ 13, "MakeDir", NULL, NULL },
{ 14, "RemoveDir", NULL, NULL },
{ 15, "Readdir", NULL, NULL },
{ 16, "Lookup", NULL, NULL },
{ 17, "GetToken", NULL, NULL },
{ 18, "ReleaseTokens", NULL, NULL },
{ 19, "GetTime", NULL, NULL },
{ 20, "MakeMountPoint", NULL, NULL },
{ 21, "GetStatistics", NULL, NULL },
{ 22, "BulkFetchVV", NULL, NULL },
{ 23, "BulkKeepAlive", NULL, NULL },
{ 24, "ProcessQuota", NULL, NULL },
{ 25, "GetServerInterfaces", NULL, NULL },
{ 26, "SetParams", NULL, NULL },
{ 27, "BulkFetchStatus", NULL, NULL },
{ 0, NULL, NULL, NULL }
};
static const value_string afs4int_opnum_vals[] = {
{ 0, "SetContext" },
{ 1, "LookupRoot" },
{ 2, "FetchData" },
{ 3, "FetchACL" },
{ 4, "FetchStatus" },
{ 5, "StoreData" },
{ 6, "StoreACL" },
{ 7, "StoreStatus" },
{ 8, "RemoveFile" },
{ 9, "CreateFile" },
{ 10, "Rename" },
{ 11, "Symlink" },
{ 12, "HardLink" },
{ 13, "MakeDir" },
{ 14, "RemoveDir" },
{ 15, "Readdir" },
{ 16, "Lookup" },
{ 17, "GetToken" },
{ 18, "ReleaseTokens" },
{ 19, "GetTime" },
{ 20, "MakeMountPoint" },
{ 21, "GetStatistics" },
{ 22, "BulkFetchVV" },
{ 23, "BulkKeepAlive" },
{ 24, "ProcessQuota" },
{ 25, "GetServerInterfaces" },
{ 26, "SetParams" },
{ 27, "BulkFetchStatus" },
{ 0, NULL }
};
void
proto_register_afs4int (void)
{
static hf_register_info hf[] = {
{ &hf_afs4int_opnum,
{ "Operation", "afs4int.opnum", FT_UINT16, BASE_DEC,
VALS(afs4int_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_afs4int,
};
proto_afs4int = proto_register_protocol ("DCE DFS Calls", "DCE_DFS", "dce_dfs");
proto_register_field_array (proto_afs4int, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_afs4int (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_afs4int, ett_afs4int, &uuid_afs4int, ver_afs4int, afs4int_dissectors, hf_afs4int_opnum);
}
/* packet-dcerpc-afs4int.c
*
* Routines for dcerpc Afs4Int dissection
* 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/file.tar.gz file/fsint/afs4int.idl
*
* $Id: packet-dcerpc-afs4int.c,v 1.2 2002/11/08 19:42:39 guy 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_afs4int = -1;
static int hf_afs4int_opnum = -1;
static gint ett_afs4int = -1;
static e_uuid_t uuid_afs4int = { 0x4d37f2dd, 0xed93, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_afs4int = 4;
static dcerpc_sub_dissector afs4int_dissectors[] = {
{ 0, "SetContext", NULL, NULL },
{ 1, "LookupRoot", NULL, NULL },
{ 2, "FetchData", NULL, NULL },
{ 3, "FetchACL", NULL, NULL },
{ 4, "FetchStatus", NULL, NULL },
{ 5, "StoreData", NULL, NULL },
{ 6, "StoreACL", NULL, NULL },
{ 7, "StoreStatus", NULL, NULL },
{ 8, "RemoveFile", NULL, NULL },
{ 9, "CreateFile", NULL, NULL },
{ 10, "Rename", NULL, NULL },
{ 11, "Symlink", NULL, NULL },
{ 12, "HardLink", NULL, NULL },
{ 13, "MakeDir", NULL, NULL },
{ 14, "RemoveDir", NULL, NULL },
{ 15, "Readdir", NULL, NULL },
{ 16, "Lookup", NULL, NULL },
{ 17, "GetToken", NULL, NULL },
{ 18, "ReleaseTokens", NULL, NULL },
{ 19, "GetTime", NULL, NULL },
{ 20, "MakeMountPoint", NULL, NULL },
{ 21, "GetStatistics", NULL, NULL },
{ 22, "BulkFetchVV", NULL, NULL },
{ 23, "BulkKeepAlive", NULL, NULL },
{ 24, "ProcessQuota", NULL, NULL },
{ 25, "GetServerInterfaces", NULL, NULL },
{ 26, "SetParams", NULL, NULL },
{ 27, "BulkFetchStatus", NULL, NULL },
{ 0, NULL, NULL, NULL }
};
static const value_string afs4int_opnum_vals[] = {
{ 0, "SetContext" },
{ 1, "LookupRoot" },
{ 2, "FetchData" },
{ 3, "FetchACL" },
{ 4, "FetchStatus" },
{ 5, "StoreData" },
{ 6, "StoreACL" },
{ 7, "StoreStatus" },
{ 8, "RemoveFile" },
{ 9, "CreateFile" },
{ 10, "Rename" },
{ 11, "Symlink" },
{ 12, "HardLink" },
{ 13, "MakeDir" },
{ 14, "RemoveDir" },
{ 15, "Readdir" },
{ 16, "Lookup" },
{ 17, "GetToken" },
{ 18, "ReleaseTokens" },
{ 19, "GetTime" },
{ 20, "MakeMountPoint" },
{ 21, "GetStatistics" },
{ 22, "BulkFetchVV" },
{ 23, "BulkKeepAlive" },
{ 24, "ProcessQuota" },
{ 25, "GetServerInterfaces" },
{ 26, "SetParams" },
{ 27, "BulkFetchStatus" },
{ 0, NULL }
};
void
proto_register_afs4int (void)
{
static hf_register_info hf[] = {
{ &hf_afs4int_opnum,
{ "Operation", "afs4int.opnum", FT_UINT16, BASE_DEC,
VALS(afs4int_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_afs4int,
};
proto_afs4int = proto_register_protocol ("DCE DFS Calls", "DCE_DFS", "dce_dfs");
proto_register_field_array (proto_afs4int, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_afs4int (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_afs4int, ett_afs4int, &uuid_afs4int, ver_afs4int, afs4int_dissectors, hf_afs4int_opnum);
}

View File

@ -1,155 +1,155 @@
/* packet-dcerpc-bossvr.c
*
* Routines for dcerpc bossvr dissection
* 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/file.tar.gz file/bosserver/bbos_ncs_interface.idl
*
* $Id: packet-dcerpc-bossvr.c,v 1.1 2002/09/12 09:12:26 sahlberg 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_bossvr = -1;
static int hf_bossvr_opnum = -1;
static gint ett_bossvr = -1;
static e_uuid_t uuid_bossvr = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x01 } };
static guint16 ver_bossvr = 0;
static dcerpc_sub_dissector bossvr_dissectors[] = {
{ 0, "GetServerStatus", NULL, NULL},
{ 1, "CreateBnode", NULL, NULL},
{ 2, "DeleteBnode", NULL, NULL},
{ 3, "SetStatus", NULL, NULL},
{ 4, "GetStatus", NULL, NULL},
{ 5, "EnumerateInstance", NULL, NULL},
{ 6, "GetInstanceInfo", NULL, NULL},
{ 7, "GetInstanceParm", NULL, NULL},
{ 8, "AddSUser", NULL, NULL},
{ 9, "DeleteSUser", NULL, NULL},
{ 10, "ListSUsers", NULL, NULL},
{ 11, "ListKeys", NULL, NULL},
{ 12, "AddKey", NULL, NULL},
{ 13, "DeleteKey", NULL, NULL},
{ 14, "GenerateKey", NULL, NULL},
{ 15, "GarbageCollectKeys", NULL, NULL},
{ 16, "GetCellName", NULL, NULL},
{ 17, "SetTStatus", NULL, NULL},
{ 18, "ShutdownAll", NULL, NULL},
{ 19, "RestartAll", NULL, NULL},
{ 20, "StartupAll", NULL, NULL},
{ 21, "SetNoAuthFlag", NULL, NULL},
{ 22, "ReBossvr", NULL, NULL},
{ 23, "Restart", NULL, NULL},
{ 24, "Install", NULL, NULL},
{ 25, "UnInstall", NULL, NULL},
{ 26, "GetDates", NULL, NULL},
{ 27, "Prune", NULL, NULL},
{ 28, "SetRestartTime", NULL, NULL},
{ 29, "GetRestartTime", NULL, NULL},
{ 30, "GetLog", NULL, NULL},
{ 31, "WaitAll", NULL, NULL},
{ 32, "SetDebug", NULL, NULL},
{ 33, "GetServerInterfaces", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string bossvr_opnum_vals[] = {
{ 0, "GetServerStatus" },
{ 1, "CreateBnode" },
{ 2, "DeleteBnode" },
{ 3, "SetStatus" },
{ 4, "GetStatus" },
{ 5, "EnumerateInstance" },
{ 6, "GetInstanceInfo" },
{ 7, "GetInstanceParm" },
{ 8, "AddSUser" },
{ 9, "DeleteSUser" },
{ 10, "ListSUsers" },
{ 11, "ListKeys" },
{ 12, "AddKey" },
{ 13, "DeleteKey" },
{ 14, "GenerateKey" },
{ 15, "GarbageCollectKeys" },
{ 16, "GetCellName" },
{ 17, "SetTStatus" },
{ 18, "ShutdownAll" },
{ 19, "RestartAll" },
{ 20, "StartupAll" },
{ 21, "SetNoAuthFlag" },
{ 22, "ReBossvr" },
{ 23, "Restart" },
{ 24, "Install" },
{ 25, "UnInstall" },
{ 26, "GetDates" },
{ 27, "Prune" },
{ 28, "SetRestartTime" },
{ 29, "GetRestartTime" },
{ 30, "GetLog" },
{ 31, "WaitAll" },
{ 32, "SetDebug" },
{ 33, "GetServerInterfaces" },
{ 0, NULL }
};
void
proto_register_bossvr (void)
{
static hf_register_info hf[] = {
{ &hf_bossvr_opnum,
{ "Operation", "bossvr.opnum", FT_UINT16, BASE_DEC,
VALS(bossvr_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_bossvr,
};
proto_bossvr = proto_register_protocol ("DCE/RPC BOS Server", "BOSSVR", "bossvr");
proto_register_field_array (proto_bossvr, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_bossvr (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_bossvr, ett_bossvr, &uuid_bossvr, ver_bossvr, bossvr_dissectors, hf_bossvr_opnum);
}
/* packet-dcerpc-bossvr.c
*
* Routines for dcerpc bossvr dissection
* 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/file.tar.gz file/bosserver/bbos_ncs_interface.idl
*
* $Id: packet-dcerpc-bossvr.c,v 1.2 2002/11/08 19:42:39 guy 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_bossvr = -1;
static int hf_bossvr_opnum = -1;
static gint ett_bossvr = -1;
static e_uuid_t uuid_bossvr = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x01 } };
static guint16 ver_bossvr = 0;
static dcerpc_sub_dissector bossvr_dissectors[] = {
{ 0, "GetServerStatus", NULL, NULL},
{ 1, "CreateBnode", NULL, NULL},
{ 2, "DeleteBnode", NULL, NULL},
{ 3, "SetStatus", NULL, NULL},
{ 4, "GetStatus", NULL, NULL},
{ 5, "EnumerateInstance", NULL, NULL},
{ 6, "GetInstanceInfo", NULL, NULL},
{ 7, "GetInstanceParm", NULL, NULL},
{ 8, "AddSUser", NULL, NULL},
{ 9, "DeleteSUser", NULL, NULL},
{ 10, "ListSUsers", NULL, NULL},
{ 11, "ListKeys", NULL, NULL},
{ 12, "AddKey", NULL, NULL},
{ 13, "DeleteKey", NULL, NULL},
{ 14, "GenerateKey", NULL, NULL},
{ 15, "GarbageCollectKeys", NULL, NULL},
{ 16, "GetCellName", NULL, NULL},
{ 17, "SetTStatus", NULL, NULL},
{ 18, "ShutdownAll", NULL, NULL},
{ 19, "RestartAll", NULL, NULL},
{ 20, "StartupAll", NULL, NULL},
{ 21, "SetNoAuthFlag", NULL, NULL},
{ 22, "ReBossvr", NULL, NULL},
{ 23, "Restart", NULL, NULL},
{ 24, "Install", NULL, NULL},
{ 25, "UnInstall", NULL, NULL},
{ 26, "GetDates", NULL, NULL},
{ 27, "Prune", NULL, NULL},
{ 28, "SetRestartTime", NULL, NULL},
{ 29, "GetRestartTime", NULL, NULL},
{ 30, "GetLog", NULL, NULL},
{ 31, "WaitAll", NULL, NULL},
{ 32, "SetDebug", NULL, NULL},
{ 33, "GetServerInterfaces", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string bossvr_opnum_vals[] = {
{ 0, "GetServerStatus" },
{ 1, "CreateBnode" },
{ 2, "DeleteBnode" },
{ 3, "SetStatus" },
{ 4, "GetStatus" },
{ 5, "EnumerateInstance" },
{ 6, "GetInstanceInfo" },
{ 7, "GetInstanceParm" },
{ 8, "AddSUser" },
{ 9, "DeleteSUser" },
{ 10, "ListSUsers" },
{ 11, "ListKeys" },
{ 12, "AddKey" },
{ 13, "DeleteKey" },
{ 14, "GenerateKey" },
{ 15, "GarbageCollectKeys" },
{ 16, "GetCellName" },
{ 17, "SetTStatus" },
{ 18, "ShutdownAll" },
{ 19, "RestartAll" },
{ 20, "StartupAll" },
{ 21, "SetNoAuthFlag" },
{ 22, "ReBossvr" },
{ 23, "Restart" },
{ 24, "Install" },
{ 25, "UnInstall" },
{ 26, "GetDates" },
{ 27, "Prune" },
{ 28, "SetRestartTime" },
{ 29, "GetRestartTime" },
{ 30, "GetLog" },
{ 31, "WaitAll" },
{ 32, "SetDebug" },
{ 33, "GetServerInterfaces" },
{ 0, NULL }
};
void
proto_register_bossvr (void)
{
static hf_register_info hf[] = {
{ &hf_bossvr_opnum,
{ "Operation", "bossvr.opnum", FT_UINT16, BASE_DEC,
VALS(bossvr_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_bossvr,
};
proto_bossvr = proto_register_protocol ("DCE/RPC BOS Server", "BOSSVR", "bossvr");
proto_register_field_array (proto_bossvr, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_bossvr (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_bossvr, ett_bossvr, &uuid_bossvr, ver_bossvr, bossvr_dissectors, hf_bossvr_opnum);
}

View File

@ -1,143 +1,143 @@
/* packet-dcerpc-cds_clerkserver.c
*
* Routines for cds_clerkserver dissection
* Routines for dcerpc Afs4Int dissection
* 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/directory.tar.gz directory/cds/stubs/cds_clerkserver.idl
*
* $Id: packet-dcerpc-cds_clerkserver.c,v 1.1 2002/09/12 09:29:51 sahlberg 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_cds_clerkserver = -1;
static int hf_cds_clerkserver_opnum = -1;
static gint ett_cds_clerkserver = -1;
static e_uuid_t uuid_cds_clerkserver = { 0x257df1c9, 0xc6d3, 0x11ca, { 0x85, 0x54, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
static guint16 ver_cds_clerkserver = 1;
static dcerpc_sub_dissector cds_clerkserver_dissectors[] = {
{ 0, "AddReplica", NULL, NULL},
{ 1, "AllowClearinghouses", NULL, NULL},
{ 2, "Combine", NULL, NULL},
{ 3, "CreateChild", NULL, NULL},
{ 4, "CreateDirectory", NULL, NULL},
{ 5, "CreateSoftLink", NULL, NULL},
{ 6, "CreateObject", NULL, NULL},
{ 7, "DeleteChild", NULL, NULL},
{ 8, "DeleteObject", NULL, NULL},
{ 9, "DeleteSoftLink", NULL, NULL},
{ 10, "DeleteDirectory", NULL, NULL},
{ 11, "DisallowClearinghouses", NULL, NULL},
{ 12, "DoUpdate", NULL, NULL},
{ 13, "EnumerateAttributes", NULL, NULL},
{ 14, "EnumerateChildren", NULL, NULL},
{ 15, "EnumerateObjects", NULL, NULL},
{ 16, "EnumerateSoftLinks", NULL, NULL},
{ 17, "LinkReplica", NULL, NULL},
{ 18, "ModifyAttribute", NULL, NULL},
{ 19, "ModifyReplica", NULL, NULL},
{ 20, "NewEpoch", NULL, NULL},
{ 21, "ReadAttribute", NULL, NULL},
{ 22, "RemoveReplica", NULL, NULL},
{ 23, "ResolveName", NULL, NULL},
{ 24, "Skulk", NULL, NULL},
{ 25, "TestAttribute", NULL, NULL},
{ 26, "TestGroup", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string cds_clerkserver_opnum_vals[] = {
{ 0, "AddReplica" },
{ 1, "AllowClearinghouses" },
{ 2, "Combine" },
{ 3, "CreateChild" },
{ 4, "CreateDirectory" },
{ 5, "CreateSoftLink" },
{ 6, "CreateObject" },
{ 7, "DeleteChild" },
{ 8, "DeleteObject" },
{ 9, "DeleteSoftLink" },
{ 10, "DeleteDirectory" },
{ 11, "DisallowClearinghouses" },
{ 12, "DoUpdate" },
{ 13, "EnumerateAttributes" },
{ 14, "EnumerateChildren" },
{ 15, "EnumerateObjects" },
{ 16, "EnumerateSoftLinks" },
{ 17, "LinkReplica" },
{ 18, "ModifyAttribute" },
{ 19, "ModifyReplica" },
{ 20, "NewEpoch" },
{ 21, "ReadAttribute" },
{ 22, "RemoveReplica" },
{ 23, "ResolveName" },
{ 24, "Skulk" },
{ 25, "TestAttribute" },
{ 26, "TestGroup" },
{ 0, NULL }
};
void
proto_register_cds_clerkserver (void)
{
static hf_register_info hf[] = {
{ &hf_cds_clerkserver_opnum,
{ "Operation", "cds_clerkserver.opnum", FT_UINT16, BASE_DEC,
VALS(cds_clerkserver_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_cds_clerkserver,
};
proto_cds_clerkserver = proto_register_protocol ("CDS Clerk Server Calls", "CDS_CLERK", "cds_clerkserver");
proto_register_field_array (proto_cds_clerkserver, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_cds_clerkserver (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_cds_clerkserver, ett_cds_clerkserver, &uuid_cds_clerkserver, ver_cds_clerkserver, cds_clerkserver_dissectors, hf_cds_clerkserver_opnum);
}
/* packet-dcerpc-cds_clerkserver.c
*
* Routines for cds_clerkserver dissection
* Routines for dcerpc Afs4Int dissection
* 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/directory.tar.gz directory/cds/stubs/cds_clerkserver.idl
*
* $Id: packet-dcerpc-cds_clerkserver.c,v 1.2 2002/11/08 19:42:39 guy 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_cds_clerkserver = -1;
static int hf_cds_clerkserver_opnum = -1;
static gint ett_cds_clerkserver = -1;
static e_uuid_t uuid_cds_clerkserver = { 0x257df1c9, 0xc6d3, 0x11ca, { 0x85, 0x54, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
static guint16 ver_cds_clerkserver = 1;
static dcerpc_sub_dissector cds_clerkserver_dissectors[] = {
{ 0, "AddReplica", NULL, NULL},
{ 1, "AllowClearinghouses", NULL, NULL},
{ 2, "Combine", NULL, NULL},
{ 3, "CreateChild", NULL, NULL},
{ 4, "CreateDirectory", NULL, NULL},
{ 5, "CreateSoftLink", NULL, NULL},
{ 6, "CreateObject", NULL, NULL},
{ 7, "DeleteChild", NULL, NULL},
{ 8, "DeleteObject", NULL, NULL},
{ 9, "DeleteSoftLink", NULL, NULL},
{ 10, "DeleteDirectory", NULL, NULL},
{ 11, "DisallowClearinghouses", NULL, NULL},
{ 12, "DoUpdate", NULL, NULL},
{ 13, "EnumerateAttributes", NULL, NULL},
{ 14, "EnumerateChildren", NULL, NULL},
{ 15, "EnumerateObjects", NULL, NULL},
{ 16, "EnumerateSoftLinks", NULL, NULL},
{ 17, "LinkReplica", NULL, NULL},
{ 18, "ModifyAttribute", NULL, NULL},
{ 19, "ModifyReplica", NULL, NULL},
{ 20, "NewEpoch", NULL, NULL},
{ 21, "ReadAttribute", NULL, NULL},
{ 22, "RemoveReplica", NULL, NULL},
{ 23, "ResolveName", NULL, NULL},
{ 24, "Skulk", NULL, NULL},
{ 25, "TestAttribute", NULL, NULL},
{ 26, "TestGroup", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string cds_clerkserver_opnum_vals[] = {
{ 0, "AddReplica" },
{ 1, "AllowClearinghouses" },
{ 2, "Combine" },
{ 3, "CreateChild" },
{ 4, "CreateDirectory" },
{ 5, "CreateSoftLink" },
{ 6, "CreateObject" },
{ 7, "DeleteChild" },
{ 8, "DeleteObject" },
{ 9, "DeleteSoftLink" },
{ 10, "DeleteDirectory" },
{ 11, "DisallowClearinghouses" },
{ 12, "DoUpdate" },
{ 13, "EnumerateAttributes" },
{ 14, "EnumerateChildren" },
{ 15, "EnumerateObjects" },
{ 16, "EnumerateSoftLinks" },
{ 17, "LinkReplica" },
{ 18, "ModifyAttribute" },
{ 19, "ModifyReplica" },
{ 20, "NewEpoch" },
{ 21, "ReadAttribute" },
{ 22, "RemoveReplica" },
{ 23, "ResolveName" },
{ 24, "Skulk" },
{ 25, "TestAttribute" },
{ 26, "TestGroup" },
{ 0, NULL }
};
void
proto_register_cds_clerkserver (void)
{
static hf_register_info hf[] = {
{ &hf_cds_clerkserver_opnum,
{ "Operation", "cds_clerkserver.opnum", FT_UINT16, BASE_DEC,
VALS(cds_clerkserver_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_cds_clerkserver,
};
proto_cds_clerkserver = proto_register_protocol ("CDS Clerk Server Calls", "CDS_CLERK", "cds_clerkserver");
proto_register_field_array (proto_cds_clerkserver, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_cds_clerkserver (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_cds_clerkserver, ett_cds_clerkserver, &uuid_cds_clerkserver, ver_cds_clerkserver, cds_clerkserver_dissectors, hf_cds_clerkserver_opnum);
}

View File

@ -1,90 +1,90 @@
/* packet-dcerpc-cds_solicit.c
* Routines for cds_solicit dissection
* 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/directory.tar.gz directory/cds/stubs/cds_solicit.idl
*
* $Id: packet-dcerpc-cds_solicit.c,v 1.1 2002/09/11 09:48:01 sahlberg 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_cds_solicit = -1;
static int hf_cds_solicit_opnum = -1;
static gint ett_cds_solicit = -1;
static e_uuid_t uuid_cds_solicit = { 0xd5579459, 0x8bca, 0x11ca, { 0xb7, 0x71, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
static guint16 ver_cds_solicit = 1;
static dcerpc_sub_dissector cds_solicit_dissectors[] = {
{ 0, "cds_Solicit", NULL, NULL},
{ 1, "cds_Advertise", NULL, NULL},
{ 2, "cds_SolicitServer", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string cds_solicit_opnum_vals[] = {
{ 0, "cds_Solicit" },
{ 1, "cds_Advertise" },
{ 2, "cds_SolicitServer" },
{ 0, NULL }
};
void
proto_register_cds_solicit (void)
{
static hf_register_info hf[] = {
{ &hf_cds_solicit_opnum,
{ "Operation", "cds_solicit.opnum", FT_UINT16, BASE_DEC, VALS(cds_solicit_opnum_vals), 0x0, "Operation", HFILL }},
};
static gint *ett[] = {
&ett_cds_solicit,
};
proto_cds_solicit = proto_register_protocol ("DCE/RPC CDS Solicitation", "cds_solicit", "cds_solicit");
proto_register_field_array (proto_cds_solicit, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_cds_solicit (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_cds_solicit, ett_cds_solicit, &uuid_cds_solicit, ver_cds_solicit, cds_solicit_dissectors, hf_cds_solicit_opnum);
}
/* packet-dcerpc-cds_solicit.c
* Routines for cds_solicit dissection
* 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/directory.tar.gz directory/cds/stubs/cds_solicit.idl
*
* $Id: packet-dcerpc-cds_solicit.c,v 1.2 2002/11/08 19:42:39 guy 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_cds_solicit = -1;
static int hf_cds_solicit_opnum = -1;
static gint ett_cds_solicit = -1;
static e_uuid_t uuid_cds_solicit = { 0xd5579459, 0x8bca, 0x11ca, { 0xb7, 0x71, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
static guint16 ver_cds_solicit = 1;
static dcerpc_sub_dissector cds_solicit_dissectors[] = {
{ 0, "cds_Solicit", NULL, NULL},
{ 1, "cds_Advertise", NULL, NULL},
{ 2, "cds_SolicitServer", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string cds_solicit_opnum_vals[] = {
{ 0, "cds_Solicit" },
{ 1, "cds_Advertise" },
{ 2, "cds_SolicitServer" },
{ 0, NULL }
};
void
proto_register_cds_solicit (void)
{
static hf_register_info hf[] = {
{ &hf_cds_solicit_opnum,
{ "Operation", "cds_solicit.opnum", FT_UINT16, BASE_DEC, VALS(cds_solicit_opnum_vals), 0x0, "Operation", HFILL }},
};
static gint *ett[] = {
&ett_cds_solicit,
};
proto_cds_solicit = proto_register_protocol ("DCE/RPC CDS Solicitation", "cds_solicit", "cds_solicit");
proto_register_field_array (proto_cds_solicit, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_cds_solicit (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_cds_solicit, ett_cds_solicit, &uuid_cds_solicit, ver_cds_solicit, cds_solicit_dissectors, hf_cds_solicit_opnum);
}

View File

@ -1,88 +1,88 @@
/* packet-dcerpc-cprpc_server.c
* Routines for DNS Control Program Server dissection
* 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/directory.tar.gz directory/cds/stubs/cprpc_server.idl
*
* $Id: packet-dcerpc-cprpc_server.c,v 1.1 2002/09/12 08:43:37 sahlberg 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_cprpc_server = -1;
static int hf_cprpc_server_opnum = -1;
static gint ett_cprpc_server = -1;
static e_uuid_t uuid_cprpc_server = { 0x4885772c, 0xc6d3, 0x11ca, { 0x84, 0xc6, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
static guint16 ver_cprpc_server = 1;
static dcerpc_sub_dissector cprpc_server_dissectors[] = {
{ 0, "dnscp_server", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string cprpc_server_opnum_vals[] = {
{ 0, "dnscp_server" },
{ 0, NULL }
};
void
proto_register_cprpc_server (void)
{
static hf_register_info hf[] = {
{ &hf_cprpc_server_opnum,
{ "Operation", "cprpc_server.opnum", FT_UINT16, BASE_DEC,
VALS(cprpc_server_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_cprpc_server,
};
proto_cprpc_server = proto_register_protocol ("DNS Control Program Server", "cprpc_server", "cprpc_server");
proto_register_field_array (proto_cprpc_server, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_cprpc_server (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_cprpc_server, ett_cprpc_server, &uuid_cprpc_server, ver_cprpc_server, cprpc_server_dissectors, hf_cprpc_server_opnum);
}
/* packet-dcerpc-cprpc_server.c
* Routines for DNS Control Program Server dissection
* 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/directory.tar.gz directory/cds/stubs/cprpc_server.idl
*
* $Id: packet-dcerpc-cprpc_server.c,v 1.2 2002/11/08 19:42:39 guy 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_cprpc_server = -1;
static int hf_cprpc_server_opnum = -1;
static gint ett_cprpc_server = -1;
static e_uuid_t uuid_cprpc_server = { 0x4885772c, 0xc6d3, 0x11ca, { 0x84, 0xc6, 0x08, 0x00, 0x2b, 0x1c, 0x8f, 0x1f } };
static guint16 ver_cprpc_server = 1;
static dcerpc_sub_dissector cprpc_server_dissectors[] = {
{ 0, "dnscp_server", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string cprpc_server_opnum_vals[] = {
{ 0, "dnscp_server" },
{ 0, NULL }
};
void
proto_register_cprpc_server (void)
{
static hf_register_info hf[] = {
{ &hf_cprpc_server_opnum,
{ "Operation", "cprpc_server.opnum", FT_UINT16, BASE_DEC,
VALS(cprpc_server_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_cprpc_server,
};
proto_cprpc_server = proto_register_protocol ("DNS Control Program Server", "cprpc_server", "cprpc_server");
proto_register_field_array (proto_cprpc_server, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_cprpc_server (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_cprpc_server, ett_cprpc_server, &uuid_cprpc_server, ver_cprpc_server, cprpc_server_dissectors, hf_cprpc_server_opnum);
}

View File

@ -1,32 +1,32 @@
/* packet-dcerpc-dce122.h
* Common defines for dce122
* Copyright 2002, Jaime Fournier <jafour1@yahoo.com>
* This information is based off the released idl files from opengroup.
*
* $Id: packet-dcerpc-dce122.h,v 1.1 2002/09/17 09:38:04 sahlberg 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.
*/
#ifndef __PACKET_DCERPC__DCE122_H__
#define __PACKET_DCERPC__DCE122_H__
extern const value_string dce_error_vals[];
#endif
/* packet-dcerpc-dce122.h
* Common defines for dce122
* Copyright 2002, Jaime Fournier <jafour1@yahoo.com>
* This information is based off the released idl files from opengroup.
*
* $Id: packet-dcerpc-dce122.h,v 1.2 2002/11/08 19:46:09 guy 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.
*/
#ifndef __PACKET_DCERPC__DCE122_H__
#define __PACKET_DCERPC__DCE122_H__
extern const value_string dce_error_vals[];
#endif

View File

@ -1,148 +1,148 @@
/* packet-dcerpc-fldb.c
*
* Routines for dcerpc FLDB Calls
* 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/file.tar.gz file/flserver/afsvl_proc.idl
*
* $Id: packet-dcerpc-fldb.c,v 1.1 2002/09/13 10:28:54 sahlberg 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_fldb = -1;
static int hf_fldb_opnum = -1;
static gint ett_fldb = -1;
static e_uuid_t uuid_fldb = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x2e, 0x00, 0x00, 0x01 } };
static guint16 ver_fldb = 4;
static dcerpc_sub_dissector fldb_dissectors[] = {
{ 0, "GetEntryByID", NULL, NULL },
{ 1, "GetEntryByName", NULL, NULL },
{ 2, "Probe", NULL, NULL},
{ 3, "GetCellInfo", NULL, NULL},
{ 4, "GetNextServersByID", NULL, NULL},
{ 5, "GetNextServersByName", NULL, NULL},
{ 6, "GetSiteInfo", NULL, NULL },
{ 7, "GetCEntryByID", NULL, NULL},
{ 8, "GetCEntryByName", NULL, NULL},
{ 9, "GetCNextServersByID", NULL, NULL},
{ 10, "GetCNextServersByName", NULL, NULL},
{ 11, "ExpandSiteCookie", NULL, NULL},
{ 12, "GetServerInterfaces", NULL, NULL},
{ 13, "CreateEntry", NULL, NULL},
{ 14, "DeleteEntry", NULL, NULL},
{ 15, "GetNewVolumeId", NULL, NULL},
{ 16, "ReplaceEntry", NULL, NULL},
{ 17, "SetLock", NULL, NULL},
{ 18, "ReleaseLock", NULL, NULL},
{ 19, "ListEntry", NULL, NULL },
{ 20, "ListByAttributes", NULL, NULL},
{ 21, "GetStats", NULL, NULL},
{ 22, "AddAddress", NULL, NULL},
{ 23, "RemoveAddress", NULL, NULL},
{ 24, "ChangeAddress", NULL, NULL},
{ 25, "GenerateSites", NULL, NULL},
{ 26, "GetNewVolumeIds", NULL, NULL},
{ 27, "CreateServer", NULL, NULL},
{ 28, "AlterServer", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string fldb_opnum_vals[] = {
{ 0, "GetEntryByID" },
{ 1, "GetEntryByName" },
{ 2, "Probe" },
{ 3, "GetCellInfo" },
{ 4, "GetNextServersByID" },
{ 5, "GetNextServersByName" },
{ 6, "GetSiteInfo" },
{ 7, "GetCEntryByID" },
{ 8, "GetCEntryByName" },
{ 9, "GetCNextServersByID" },
{ 10, "GetCNextServersByName" },
{ 11, "ExpandSiteCookie" },
{ 12, "GetServerInterfaces" },
{ 13, "CreateEntry" },
{ 14, "DeleteEntry" },
{ 15, "GetNewVolumeId" },
{ 16, "ReplaceEntry" },
{ 17, "SetLock" },
{ 18, "ReleaseLock" },
{ 19, "ListEntry" },
{ 20, "ListByAttributes" },
{ 21, "GetStats" },
{ 22, "AddAddress" },
{ 23, "RemoveAddress" },
{ 24, "ChangeAddress" },
{ 25, "GenerateSites" },
{ 26, "GetNewVolumeIds" },
{ 27, "CreateServer" },
{ 28, "AlterServer" },
{ 0, NULL }
};
void
proto_register_fldb (void)
{
static hf_register_info hf[] = {
{ &hf_fldb_opnum,
{ "Operation", "fldb.opnum", FT_UINT16, BASE_DEC,
VALS(fldb_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_fldb,
};
proto_fldb = proto_register_protocol ("DCE/RPC FLDB", "FLDB", "fldb");
proto_register_field_array (proto_fldb, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_fldb (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_fldb, ett_fldb, &uuid_fldb, ver_fldb, fldb_dissectors, hf_fldb_opnum);
}
/* packet-dcerpc-fldb.c
*
* Routines for dcerpc FLDB Calls
* 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/file.tar.gz file/flserver/afsvl_proc.idl
*
* $Id: packet-dcerpc-fldb.c,v 1.2 2002/11/08 19:42:39 guy 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_fldb = -1;
static int hf_fldb_opnum = -1;
static gint ett_fldb = -1;
static e_uuid_t uuid_fldb = { 0x4d37f2dd, 0xed43, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x2e, 0x00, 0x00, 0x01 } };
static guint16 ver_fldb = 4;
static dcerpc_sub_dissector fldb_dissectors[] = {
{ 0, "GetEntryByID", NULL, NULL },
{ 1, "GetEntryByName", NULL, NULL },
{ 2, "Probe", NULL, NULL},
{ 3, "GetCellInfo", NULL, NULL},
{ 4, "GetNextServersByID", NULL, NULL},
{ 5, "GetNextServersByName", NULL, NULL},
{ 6, "GetSiteInfo", NULL, NULL },
{ 7, "GetCEntryByID", NULL, NULL},
{ 8, "GetCEntryByName", NULL, NULL},
{ 9, "GetCNextServersByID", NULL, NULL},
{ 10, "GetCNextServersByName", NULL, NULL},
{ 11, "ExpandSiteCookie", NULL, NULL},
{ 12, "GetServerInterfaces", NULL, NULL},
{ 13, "CreateEntry", NULL, NULL},
{ 14, "DeleteEntry", NULL, NULL},
{ 15, "GetNewVolumeId", NULL, NULL},
{ 16, "ReplaceEntry", NULL, NULL},
{ 17, "SetLock", NULL, NULL},
{ 18, "ReleaseLock", NULL, NULL},
{ 19, "ListEntry", NULL, NULL },
{ 20, "ListByAttributes", NULL, NULL},
{ 21, "GetStats", NULL, NULL},
{ 22, "AddAddress", NULL, NULL},
{ 23, "RemoveAddress", NULL, NULL},
{ 24, "ChangeAddress", NULL, NULL},
{ 25, "GenerateSites", NULL, NULL},
{ 26, "GetNewVolumeIds", NULL, NULL},
{ 27, "CreateServer", NULL, NULL},
{ 28, "AlterServer", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string fldb_opnum_vals[] = {
{ 0, "GetEntryByID" },
{ 1, "GetEntryByName" },
{ 2, "Probe" },
{ 3, "GetCellInfo" },
{ 4, "GetNextServersByID" },
{ 5, "GetNextServersByName" },
{ 6, "GetSiteInfo" },
{ 7, "GetCEntryByID" },
{ 8, "GetCEntryByName" },
{ 9, "GetCNextServersByID" },
{ 10, "GetCNextServersByName" },
{ 11, "ExpandSiteCookie" },
{ 12, "GetServerInterfaces" },
{ 13, "CreateEntry" },
{ 14, "DeleteEntry" },
{ 15, "GetNewVolumeId" },
{ 16, "ReplaceEntry" },
{ 17, "SetLock" },
{ 18, "ReleaseLock" },
{ 19, "ListEntry" },
{ 20, "ListByAttributes" },
{ 21, "GetStats" },
{ 22, "AddAddress" },
{ 23, "RemoveAddress" },
{ 24, "ChangeAddress" },
{ 25, "GenerateSites" },
{ 26, "GetNewVolumeIds" },
{ 27, "CreateServer" },
{ 28, "AlterServer" },
{ 0, NULL }
};
void
proto_register_fldb (void)
{
static hf_register_info hf[] = {
{ &hf_fldb_opnum,
{ "Operation", "fldb.opnum", FT_UINT16, BASE_DEC,
VALS(fldb_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_fldb,
};
proto_fldb = proto_register_protocol ("DCE/RPC FLDB", "FLDB", "fldb");
proto_register_field_array (proto_fldb, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_fldb (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_fldb, ett_fldb, &uuid_fldb, ver_fldb, fldb_dissectors, hf_fldb_opnum);
}

View File

@ -1,130 +1,130 @@
/* packet-dcerpc-ftserver.c
*
* Routines for dcerpc ftserver dissection
* 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/file.tgz file/ftserver/ftserver_proc.idl
*
* $Id: packet-dcerpc-ftserver.c,v 1.1 2002/09/12 09:19:32 sahlberg 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_ftserver = -1;
static int hf_ftserver_opnum = -1;
static gint ett_ftserver = -1;
static e_uuid_t uuid_ftserver = { 0x4d37f2dd, 0xed43, 0x0004, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_ftserver = 4;
static dcerpc_sub_dissector ftserver_dissectors[] = {
{ 0, "CreateTrans", NULL, NULL },
{ 1, "AbortTrans", NULL, NULL },
{ 2, "DeleteTrans", NULL, NULL },
{ 3, "CreateVolume", NULL, NULL },
{ 4, "DeleteVolume", NULL, NULL },
{ 5, "Dump", NULL, NULL },
{ 6, "Restore", NULL, NULL },
{ 7, "Forward", NULL, NULL },
{ 8, "Clone", NULL, NULL },
{ 9, "ReClone", NULL, NULL },
{ 10, "GetFlags", NULL, NULL },
{ 11, "SetFlags", NULL, NULL },
{ 12, "GetStatus", NULL, NULL },
{ 13, "SetStatus", NULL, NULL },
{ 14, "ListVolumes", NULL, NULL },
{ 15, "ListAggregates", NULL, NULL },
{ 16, "AggregateInfo", NULL, NULL },
{ 17, "Monitor", NULL, NULL },
{ 18, "GetOneVolStatus", NULL, NULL },
{ 19, "GetServerInterfaces", NULL, NULL },
{ 20, "SwapIDs", NULL, NULL },
{ 0, NULL, NULL, NULL }
};
static const value_string ftserver_opnum_vals[] = {
{ 0, "CreateTrans" },
{ 1, "AbortTrans" },
{ 2, "DeleteTrans" },
{ 3, "CreateVolume" },
{ 4, "DeleteVolume" },
{ 5, "Dump" },
{ 6, "Restore" },
{ 7, "Forward" },
{ 8, "Clone" },
{ 9, "ReClone" },
{ 10, "GetFlags" },
{ 11, "SetFlags" },
{ 12, "GetStatus" },
{ 13, "SetStatus" },
{ 14, "ListVolumes" },
{ 15, "ListAggregates" },
{ 16, "AggregateInfo" },
{ 17, "Monitor" },
{ 18, "GetOneVolStatus" },
{ 19, "GetServerInterfaces" },
{ 20, "SwapIDs" },
{ 0, NULL }
};
void
proto_register_ftserver (void)
{
static hf_register_info hf[] = {
{ &hf_ftserver_opnum,
{ "Operation", "ftserver.opnum", FT_UINT16, BASE_DEC,
VALS(ftserver_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_ftserver,
};
proto_ftserver = proto_register_protocol ("FTServer Operations", "FTSERVER", "ftserver");
proto_register_field_array (proto_ftserver, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_ftserver (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_ftserver, ett_ftserver, &uuid_ftserver, ver_ftserver, ftserver_dissectors, hf_ftserver_opnum);
}
/* packet-dcerpc-ftserver.c
*
* Routines for dcerpc ftserver dissection
* 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/file.tgz file/ftserver/ftserver_proc.idl
*
* $Id: packet-dcerpc-ftserver.c,v 1.2 2002/11/08 19:42:39 guy 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_ftserver = -1;
static int hf_ftserver_opnum = -1;
static gint ett_ftserver = -1;
static e_uuid_t uuid_ftserver = { 0x4d37f2dd, 0xed43, 0x0004, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_ftserver = 4;
static dcerpc_sub_dissector ftserver_dissectors[] = {
{ 0, "CreateTrans", NULL, NULL },
{ 1, "AbortTrans", NULL, NULL },
{ 2, "DeleteTrans", NULL, NULL },
{ 3, "CreateVolume", NULL, NULL },
{ 4, "DeleteVolume", NULL, NULL },
{ 5, "Dump", NULL, NULL },
{ 6, "Restore", NULL, NULL },
{ 7, "Forward", NULL, NULL },
{ 8, "Clone", NULL, NULL },
{ 9, "ReClone", NULL, NULL },
{ 10, "GetFlags", NULL, NULL },
{ 11, "SetFlags", NULL, NULL },
{ 12, "GetStatus", NULL, NULL },
{ 13, "SetStatus", NULL, NULL },
{ 14, "ListVolumes", NULL, NULL },
{ 15, "ListAggregates", NULL, NULL },
{ 16, "AggregateInfo", NULL, NULL },
{ 17, "Monitor", NULL, NULL },
{ 18, "GetOneVolStatus", NULL, NULL },
{ 19, "GetServerInterfaces", NULL, NULL },
{ 20, "SwapIDs", NULL, NULL },
{ 0, NULL, NULL, NULL }
};
static const value_string ftserver_opnum_vals[] = {
{ 0, "CreateTrans" },
{ 1, "AbortTrans" },
{ 2, "DeleteTrans" },
{ 3, "CreateVolume" },
{ 4, "DeleteVolume" },
{ 5, "Dump" },
{ 6, "Restore" },
{ 7, "Forward" },
{ 8, "Clone" },
{ 9, "ReClone" },
{ 10, "GetFlags" },
{ 11, "SetFlags" },
{ 12, "GetStatus" },
{ 13, "SetStatus" },
{ 14, "ListVolumes" },
{ 15, "ListAggregates" },
{ 16, "AggregateInfo" },
{ 17, "Monitor" },
{ 18, "GetOneVolStatus" },
{ 19, "GetServerInterfaces" },
{ 20, "SwapIDs" },
{ 0, NULL }
};
void
proto_register_ftserver (void)
{
static hf_register_info hf[] = {
{ &hf_ftserver_opnum,
{ "Operation", "ftserver.opnum", FT_UINT16, BASE_DEC,
VALS(ftserver_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_ftserver,
};
proto_ftserver = proto_register_protocol ("FTServer Operations", "FTSERVER", "ftserver");
proto_register_field_array (proto_ftserver, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_ftserver (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_ftserver, ett_ftserver, &uuid_ftserver, ver_ftserver, ftserver_dissectors, hf_ftserver_opnum);
}

View File

@ -1,89 +1,89 @@
/* packet-dcerpc-krb5rpc.c
*
* Routines for dcerpc DCE/KRB5 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/krb5rpc.idl
*
*
* $Id: packet-dcerpc-krb5rpc.c,v 1.1 2002/09/13 09:59:21 sahlberg 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_krb5rpc = -1;
static int hf_krb5rpc_opnum = -1;
static gint ett_krb5rpc = -1;
static e_uuid_t uuid_krb5rpc = { 0x8f73de50, 0x768c, 0x11ca, { 0xbf, 0xfc, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x31 } };
static guint16 ver_krb5rpc = 1;
static dcerpc_sub_dissector krb5rpc_dissectors[] = {
{ 0, "rsec_krb5rpc_sendto_kdc", NULL, NULL },
{ 0, NULL, NULL, NULL }
};
static const value_string krb5rpc_opnum_vals[] = {
{ 0, "rsec_krb5rpc_sendto_kdc" },
{ 0, NULL }
};
void
proto_register_krb5rpc (void)
{
static hf_register_info hf[] = {
{ &hf_krb5rpc_opnum,
{ "Operation", "krb5rpc.opnum", FT_UINT16, BASE_DEC,
VALS(krb5rpc_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_krb5rpc,
};
proto_krb5rpc = proto_register_protocol ("DCE/RPC Kerberos V", "KRB5RPC", "krb5rpc");
proto_register_field_array (proto_krb5rpc, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_krb5rpc (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_krb5rpc, ett_krb5rpc, &uuid_krb5rpc, ver_krb5rpc, krb5rpc_dissectors, hf_krb5rpc_opnum);
}
/* packet-dcerpc-krb5rpc.c
*
* Routines for dcerpc DCE/KRB5 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/krb5rpc.idl
*
*
* $Id: packet-dcerpc-krb5rpc.c,v 1.2 2002/11/08 19:42:39 guy 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_krb5rpc = -1;
static int hf_krb5rpc_opnum = -1;
static gint ett_krb5rpc = -1;
static e_uuid_t uuid_krb5rpc = { 0x8f73de50, 0x768c, 0x11ca, { 0xbf, 0xfc, 0x08, 0x00, 0x1e, 0x03, 0x94, 0x31 } };
static guint16 ver_krb5rpc = 1;
static dcerpc_sub_dissector krb5rpc_dissectors[] = {
{ 0, "rsec_krb5rpc_sendto_kdc", NULL, NULL },
{ 0, NULL, NULL, NULL }
};
static const value_string krb5rpc_opnum_vals[] = {
{ 0, "rsec_krb5rpc_sendto_kdc" },
{ 0, NULL }
};
void
proto_register_krb5rpc (void)
{
static hf_register_info hf[] = {
{ &hf_krb5rpc_opnum,
{ "Operation", "krb5rpc.opnum", FT_UINT16, BASE_DEC,
VALS(krb5rpc_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_krb5rpc,
};
proto_krb5rpc = proto_register_protocol ("DCE/RPC Kerberos V", "KRB5RPC", "krb5rpc");
proto_register_field_array (proto_krb5rpc, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_krb5rpc (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_krb5rpc, ett_krb5rpc, &uuid_krb5rpc, ver_krb5rpc, krb5rpc_dissectors, hf_krb5rpc_opnum);
}

View File

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

View File

@ -1,99 +1,99 @@
/* 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.1 2002/09/11 09:17:25 sahlberg 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 }
};
static const value_string roverride_opnum_vals[] = {
{ 0, "roverride_get_login_info" },
{ 1, "roverride_check_passwd" },
{ 2, "roverride_is_passwd_overridden" },
{ 3, "roverride_get_by_unix_num" },
{ 4, "roverride_get_group_info" },
{ 5, "roverride_check_group_passwd" },
{ 6, "roverride_is_grp_pwd_overridden" },
{ 0, NULL }
};
void
proto_register_roverride (void)
{
static hf_register_info hf[] = {
{ &hf_roverride_opnum,
{ "Operation", "roverride.opnum", FT_UINT16, BASE_DEC, VALS(roverride_opnum_vals), 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);
}
/* 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.2 2002/11/08 19:42:39 guy 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 }
};
static const value_string roverride_opnum_vals[] = {
{ 0, "roverride_get_login_info" },
{ 1, "roverride_check_passwd" },
{ 2, "roverride_is_passwd_overridden" },
{ 3, "roverride_get_by_unix_num" },
{ 4, "roverride_get_group_info" },
{ 5, "roverride_check_group_passwd" },
{ 6, "roverride_is_grp_pwd_overridden" },
{ 0, NULL }
};
void
proto_register_roverride (void)
{
static hf_register_info hf[] = {
{ &hf_roverride_opnum,
{ "Operation", "roverride.opnum", FT_UINT16, BASE_DEC, VALS(roverride_opnum_vals), 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);
}

View File

@ -1,162 +1,162 @@
/* packet-dcerpc-rpriv.c
*
* Routines for DCERPC Privilege Server operations
* 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/rpriv.idl
*
* $Id: packet-dcerpc-rpriv.c,v 1.1 2002/09/11 09:05:22 sahlberg 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_rpriv = -1;
static int hf_rpriv_opnum = -1;
static int hf_rpriv_get_eptgt_rqst_authn_svc = -1;
static int hf_rpriv_get_eptgt_rqst_authz_svc = -1;
static int hf_rpriv_get_eptgt_rqst_var1 = -1;
static int hf_rpriv_get_eptgt_rqst_key_size = -1;
static int hf_rpriv_get_eptgt_rqst_key_size2 = -1;
static int hf_rpriv_get_eptgt_rqst_key_t = -1;
static int hf_rpriv_get_eptgt_rqst_key_t2 = -1;
static gint ett_rpriv = -1;
static e_uuid_t uuid_rpriv = { 0xb1e338f8, 0x9533, 0x11c9, { 0xa3, 0x4a, 0x08, 0x00, 0x1e, 0x01, 0x9c, 0x1e } };
static guint16 ver_rpriv = 1.1;
static int
rpriv_dissect_get_eptgt_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
/* [in] handle_t handle,
* [in] unsigned32 authn_svc,
* [in] unsigned32 authz_svc,
* [in] rpriv_pickle_t *ptgt_req,
* unsigned32 num_bytes;
* [size_is(num_bytes)]
* byte bytes[];
*/
guint32 authn_svc, authz_svc, key_size, key_size2, var1;
char *key_t = NULL;
char *key_t2 = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_authn_svc, &authn_svc);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_authz_svc, &authz_svc);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_var1, &var1);
offset += 276;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_key_size2, &key_size);
/* advance to get size of cell, and princ */
proto_tree_add_string (tree, hf_rpriv_get_eptgt_rqst_key_t, tvb, offset, hf_rpriv_get_eptgt_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
offset += 8;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_key_size2, &key_size2);
proto_tree_add_string (tree, hf_rpriv_get_eptgt_rqst_key_t2, tvb, offset, hf_rpriv_get_eptgt_rqst_key_size2, tvb_get_ptr (tvb, offset, key_size2));
key_t2 = (char *)tvb_get_ptr(tvb,offset,key_size2);
offset += key_size2;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s in %s ", key_t2, key_t);
}
return offset;
}
static dcerpc_sub_dissector rpriv_dissectors[] = {
{ 0, "rpriv_get_ptgt", NULL,NULL},
{ 1, "rpriv_become_delegate", NULL, NULL},
{ 2, "rpriv_become_impersonator", NULL, NULL},
{ 3, "rpriv_get_eptgt", rpriv_dissect_get_eptgt_rqst , NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rpriv_opnum_vals[] = {
{ 0, "rpriv_get_ptgt" },
{ 1, "rpriv_become_delegate" },
{ 2, "rpriv_become_impersonator" },
{ 3, "rpriv_get_eptgt" },
{ 0, NULL }
};
void
proto_register_rpriv (void)
{
static hf_register_info hf[] = {
{ &hf_rpriv_opnum,
{ "Operation", "rpriv.opnum", FT_UINT16, BASE_DEC, VALS(rpriv_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_authn_svc,
{ "Authn_Svc", "rpriv.get_eptgt_rqst_authn_svc", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_authz_svc,
{ "Authz_Svc", "rpriv.get_eptgt_rqst_authz_svc", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_size,
{ "Key_Size", "rpriv.get_eptgt_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_size,
{ "Key_Size", "rpriv.get_eptgt_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_var1,
{ "Var1", "rpriv.get_eptgt_rqst_var1", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_size2,
{ "Key_Size", "rpriv.get_eptgt_rqst_key_size2", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_t,
{ "Key_t", "rpriv.get_eptgt_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_t2,
{ "Key_t2", "rpriv.get_eptgt_rqst_key_t2", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
};
static gint *ett[] = {
&ett_rpriv,
};
proto_rpriv = proto_register_protocol ("Privilege Server operations", "rpriv", "rpriv");
proto_register_field_array (proto_rpriv, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rpriv (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rpriv, ett_rpriv, &uuid_rpriv, ver_rpriv, rpriv_dissectors, hf_rpriv_opnum);
}
/* packet-dcerpc-rpriv.c
*
* Routines for DCERPC Privilege Server operations
* 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/rpriv.idl
*
* $Id: packet-dcerpc-rpriv.c,v 1.2 2002/11/08 19:42:39 guy 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_rpriv = -1;
static int hf_rpriv_opnum = -1;
static int hf_rpriv_get_eptgt_rqst_authn_svc = -1;
static int hf_rpriv_get_eptgt_rqst_authz_svc = -1;
static int hf_rpriv_get_eptgt_rqst_var1 = -1;
static int hf_rpriv_get_eptgt_rqst_key_size = -1;
static int hf_rpriv_get_eptgt_rqst_key_size2 = -1;
static int hf_rpriv_get_eptgt_rqst_key_t = -1;
static int hf_rpriv_get_eptgt_rqst_key_t2 = -1;
static gint ett_rpriv = -1;
static e_uuid_t uuid_rpriv = { 0xb1e338f8, 0x9533, 0x11c9, { 0xa3, 0x4a, 0x08, 0x00, 0x1e, 0x01, 0x9c, 0x1e } };
static guint16 ver_rpriv = 1.1;
static int
rpriv_dissect_get_eptgt_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
/* [in] handle_t handle,
* [in] unsigned32 authn_svc,
* [in] unsigned32 authz_svc,
* [in] rpriv_pickle_t *ptgt_req,
* unsigned32 num_bytes;
* [size_is(num_bytes)]
* byte bytes[];
*/
guint32 authn_svc, authz_svc, key_size, key_size2, var1;
char *key_t = NULL;
char *key_t2 = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_authn_svc, &authn_svc);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_authz_svc, &authz_svc);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_var1, &var1);
offset += 276;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_key_size2, &key_size);
/* advance to get size of cell, and princ */
proto_tree_add_string (tree, hf_rpriv_get_eptgt_rqst_key_t, tvb, offset, hf_rpriv_get_eptgt_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
offset += 8;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_key_size2, &key_size2);
proto_tree_add_string (tree, hf_rpriv_get_eptgt_rqst_key_t2, tvb, offset, hf_rpriv_get_eptgt_rqst_key_size2, tvb_get_ptr (tvb, offset, key_size2));
key_t2 = (char *)tvb_get_ptr(tvb,offset,key_size2);
offset += key_size2;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s in %s ", key_t2, key_t);
}
return offset;
}
static dcerpc_sub_dissector rpriv_dissectors[] = {
{ 0, "rpriv_get_ptgt", NULL,NULL},
{ 1, "rpriv_become_delegate", NULL, NULL},
{ 2, "rpriv_become_impersonator", NULL, NULL},
{ 3, "rpriv_get_eptgt", rpriv_dissect_get_eptgt_rqst , NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rpriv_opnum_vals[] = {
{ 0, "rpriv_get_ptgt" },
{ 1, "rpriv_become_delegate" },
{ 2, "rpriv_become_impersonator" },
{ 3, "rpriv_get_eptgt" },
{ 0, NULL }
};
void
proto_register_rpriv (void)
{
static hf_register_info hf[] = {
{ &hf_rpriv_opnum,
{ "Operation", "rpriv.opnum", FT_UINT16, BASE_DEC, VALS(rpriv_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_authn_svc,
{ "Authn_Svc", "rpriv.get_eptgt_rqst_authn_svc", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_authz_svc,
{ "Authz_Svc", "rpriv.get_eptgt_rqst_authz_svc", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_size,
{ "Key_Size", "rpriv.get_eptgt_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_size,
{ "Key_Size", "rpriv.get_eptgt_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_var1,
{ "Var1", "rpriv.get_eptgt_rqst_var1", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_size2,
{ "Key_Size", "rpriv.get_eptgt_rqst_key_size2", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_t,
{ "Key_t", "rpriv.get_eptgt_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rpriv_get_eptgt_rqst_key_t2,
{ "Key_t2", "rpriv.get_eptgt_rqst_key_t2", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
};
static gint *ett[] = {
&ett_rpriv,
};
proto_rpriv = proto_register_protocol ("Privilege Server operations", "rpriv", "rpriv");
proto_register_field_array (proto_rpriv, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rpriv (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rpriv, ett_rpriv, &uuid_rpriv, ver_rpriv, rpriv_dissectors, hf_rpriv_opnum);
}

View File

@ -1,178 +1,178 @@
/* packet-dcerpc-rs_acct.c
*
* Routines for DFS/RS_ACCT
* 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/rs_acct.idl
*
* $Id: packet-dcerpc-rs_acct.c,v 1.1 2002/09/10 11:13:19 sahlberg 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_rs_acct = -1;
static int hf_rs_acct_opnum = -1;
static int hf_rs_acct_lookup_rqst_var = -1;
static int hf_rs_acct_lookup_rqst_key_size = -1;
static int hf_rs_acct_lookup_rqst_key_t = -1;
static int hf_rs_acct_get_projlist_rqst_var1 = -1;
static int hf_rs_acct_get_projlist_rqst_key_size = -1;
static int hf_rs_acct_get_projlist_rqst_key_t = -1;
static gint ett_rs_acct = -1;
static e_uuid_t uuid_rs_acct = { 0x4c878280, 0x2000, 0x0000, { 0x0d, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_acct = 1;
static int
rs_acct_dissect_lookup_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, char *drep)
{
guint32 key_size;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_lookup_rqst_var, NULL);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_lookup_rqst_key_size, &key_size);
if (key_size){ /* Not able to yet decipher the OTHER versions of this call just yet. */
proto_tree_add_string (tree, hf_rs_acct_lookup_rqst_key_t, tvb, offset, hf_rs_acct_lookup_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s ", key_t);
}
} else {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_str(pinfo->cinfo, COL_INFO,
" Request (other)");
}
}
return offset;
};
static int
rs_acct_dissect_get_projlist_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, char *drep)
{
guint32 key_size;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_get_projlist_rqst_var1, NULL);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_get_projlist_rqst_key_size, &key_size);
proto_tree_add_string (tree, hf_rs_acct_get_projlist_rqst_key_t,
tvb, offset, hf_rs_acct_get_projlist_rqst_key_size,
tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s", key_t);
}
return offset;
}
static dcerpc_sub_dissector rs_acct_dissectors[] = {
{ 0, "rs_acct_add", NULL, NULL},
{ 1, "rs_acct_delete", NULL, NULL},
{ 2, "rs_acct_rename", NULL, NULL},
{ 3, "rs_acct_lookup", rs_acct_dissect_lookup_rqst, NULL},
{ 4, "rs_acct_replace", NULL, NULL},
{ 5, "rs_acct_get_projlist", rs_acct_dissect_get_projlist_rqst, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_acct_opnum_vals[] = {
{ 0, "rs_acct_add" },
{ 1, "rs_acct_delete" },
{ 2, "rs_acct_rename" },
{ 3, "rs_acct_lookup" },
{ 4, "rs_acct_replace" },
{ 5, "rs_acct_get_projlist" },
{ 0, NULL }
};
void
proto_register_rs_acct (void)
{
static hf_register_info hf[] = {
{ &hf_rs_acct_opnum,
{ "Operation", "rs_acct.opnum", FT_UINT16, BASE_DEC, VALS(rs_acct_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rs_acct_lookup_rqst_var,
{ "Var", "rs_acct.lookup_rqst_var", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_lookup_rqst_key_size,
{ "Key Size", "rs_acct.lookup_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_lookup_rqst_key_t,
{ "Key", "rs_lookup.get_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_get_projlist_rqst_var1,
{ "Var1", "rs_acct.get_projlist_rqst_var1", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_get_projlist_rqst_key_size,
{ "Var1", "rs_acct.get_projlist_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_get_projlist_rqst_key_t,
{ "Var1", "rs_acct.get_projlist_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }}
};
static gint *ett[] = {
&ett_rs_acct,
};
proto_rs_acct = proto_register_protocol ("DCE/RPC RS_ACCT", "RS_ACCT", "rs_acct");
proto_register_field_array (proto_rs_acct, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_acct (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_acct, ett_rs_acct, &uuid_rs_acct, ver_rs_acct, rs_acct_dissectors, hf_rs_acct_opnum);
}
/* packet-dcerpc-rs_acct.c
*
* Routines for DFS/RS_ACCT
* 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/rs_acct.idl
*
* $Id: packet-dcerpc-rs_acct.c,v 1.2 2002/11/08 19:42:40 guy 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_rs_acct = -1;
static int hf_rs_acct_opnum = -1;
static int hf_rs_acct_lookup_rqst_var = -1;
static int hf_rs_acct_lookup_rqst_key_size = -1;
static int hf_rs_acct_lookup_rqst_key_t = -1;
static int hf_rs_acct_get_projlist_rqst_var1 = -1;
static int hf_rs_acct_get_projlist_rqst_key_size = -1;
static int hf_rs_acct_get_projlist_rqst_key_t = -1;
static gint ett_rs_acct = -1;
static e_uuid_t uuid_rs_acct = { 0x4c878280, 0x2000, 0x0000, { 0x0d, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_acct = 1;
static int
rs_acct_dissect_lookup_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, char *drep)
{
guint32 key_size;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_lookup_rqst_var, NULL);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_lookup_rqst_key_size, &key_size);
if (key_size){ /* Not able to yet decipher the OTHER versions of this call just yet. */
proto_tree_add_string (tree, hf_rs_acct_lookup_rqst_key_t, tvb, offset, hf_rs_acct_lookup_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s ", key_t);
}
} else {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_str(pinfo->cinfo, COL_INFO,
" Request (other)");
}
}
return offset;
};
static int
rs_acct_dissect_get_projlist_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, char *drep)
{
guint32 key_size;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_get_projlist_rqst_var1, NULL);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_acct_get_projlist_rqst_key_size, &key_size);
proto_tree_add_string (tree, hf_rs_acct_get_projlist_rqst_key_t,
tvb, offset, hf_rs_acct_get_projlist_rqst_key_size,
tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s", key_t);
}
return offset;
}
static dcerpc_sub_dissector rs_acct_dissectors[] = {
{ 0, "rs_acct_add", NULL, NULL},
{ 1, "rs_acct_delete", NULL, NULL},
{ 2, "rs_acct_rename", NULL, NULL},
{ 3, "rs_acct_lookup", rs_acct_dissect_lookup_rqst, NULL},
{ 4, "rs_acct_replace", NULL, NULL},
{ 5, "rs_acct_get_projlist", rs_acct_dissect_get_projlist_rqst, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_acct_opnum_vals[] = {
{ 0, "rs_acct_add" },
{ 1, "rs_acct_delete" },
{ 2, "rs_acct_rename" },
{ 3, "rs_acct_lookup" },
{ 4, "rs_acct_replace" },
{ 5, "rs_acct_get_projlist" },
{ 0, NULL }
};
void
proto_register_rs_acct (void)
{
static hf_register_info hf[] = {
{ &hf_rs_acct_opnum,
{ "Operation", "rs_acct.opnum", FT_UINT16, BASE_DEC, VALS(rs_acct_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rs_acct_lookup_rqst_var,
{ "Var", "rs_acct.lookup_rqst_var", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_lookup_rqst_key_size,
{ "Key Size", "rs_acct.lookup_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_lookup_rqst_key_t,
{ "Key", "rs_lookup.get_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_get_projlist_rqst_var1,
{ "Var1", "rs_acct.get_projlist_rqst_var1", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_get_projlist_rqst_key_size,
{ "Var1", "rs_acct.get_projlist_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_acct_get_projlist_rqst_key_t,
{ "Var1", "rs_acct.get_projlist_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }}
};
static gint *ett[] = {
&ett_rs_acct,
};
proto_rs_acct = proto_register_protocol ("DCE/RPC RS_ACCT", "RS_ACCT", "rs_acct");
proto_register_field_array (proto_rs_acct, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_acct (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_acct, ett_rs_acct, &uuid_rs_acct, ver_rs_acct, rs_acct_dissectors, hf_rs_acct_opnum);
}

View File

@ -1,103 +1,103 @@
/* packet-dcerpc-rs_attr.c
*
* Routines for dcerpc Registry Server Attributes Manipulation 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/rs_attr.idl
*
* $Id: packet-dcerpc-rs_attr.c,v 1.1 2002/09/10 11:19:18 sahlberg 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_rs_attr = -1;
static int hf_rs_attr_opnum = -1;
static gint ett_rs_attr = -1;
static e_uuid_t uuid_rs_attr = { 0xa71fc1e8, 0x567f, 0x11cb, { 0x98, 0xa0, 0x08, 0x00, 0x1e, 0x04, 0xde, 0x8c } };
static guint16 ver_rs_attr = 0;
static dcerpc_sub_dissector rs_attr_dissectors[] = {
{ 0, "rs_attr_cursor_init", NULL, NULL},
{ 1, "rs_attr_lookup_by_id", NULL, NULL},
{ 2, "rs_attr_lookup_no_expand", NULL, NULL},
{ 3, "rs_attr_lookup_by_name", NULL, NULL},
{ 4, "rs_attr_update", NULL, NULL},
{ 5, "rs_attr_test_and_update", NULL, NULL},
{ 6, "rs_attr_delete", NULL, NULL},
{ 7, "rs_attr_get_referral", NULL, NULL},
{ 8, "rs_attr_get_effective", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_attr_opnum_vals[] = {
{ 0, "rs_attr_cursor_init" },
{ 1, "rs_attr_lookup_by_id" },
{ 2, "rs_attr_lookup_no_expand" },
{ 3, "rs_attr_lookup_by_name" },
{ 4, "rs_attr_update" },
{ 5, "rs_attr_test_and_update" },
{ 6, "rs_attr_delete" },
{ 7, "rs_attr_get_referral" },
{ 8, "rs_attr_get_effective" },
{ 0, NULL }
};
void
proto_register_rs_attr (void)
{
static hf_register_info hf[] = {
{ &hf_rs_attr_opnum,
{ "Operation", "rs_attr.opnum", FT_UINT16, BASE_DEC, VALS(rs_attr_opnum_vals), 0x0, "Operation", HFILL }},
};
static gint *ett[] = {
&ett_rs_attr,
};
proto_rs_attr = proto_register_protocol ("Registry Server Attributes Manipulation Interface", "RS_ATTR", "rs_attr");
proto_register_field_array (proto_rs_attr, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_attr (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_attr, ett_rs_attr, &uuid_rs_attr, ver_rs_attr, rs_attr_dissectors, hf_rs_attr_opnum);
}
/* packet-dcerpc-rs_attr.c
*
* Routines for dcerpc Registry Server Attributes Manipulation 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/rs_attr.idl
*
* $Id: packet-dcerpc-rs_attr.c,v 1.2 2002/11/08 19:42:40 guy 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_rs_attr = -1;
static int hf_rs_attr_opnum = -1;
static gint ett_rs_attr = -1;
static e_uuid_t uuid_rs_attr = { 0xa71fc1e8, 0x567f, 0x11cb, { 0x98, 0xa0, 0x08, 0x00, 0x1e, 0x04, 0xde, 0x8c } };
static guint16 ver_rs_attr = 0;
static dcerpc_sub_dissector rs_attr_dissectors[] = {
{ 0, "rs_attr_cursor_init", NULL, NULL},
{ 1, "rs_attr_lookup_by_id", NULL, NULL},
{ 2, "rs_attr_lookup_no_expand", NULL, NULL},
{ 3, "rs_attr_lookup_by_name", NULL, NULL},
{ 4, "rs_attr_update", NULL, NULL},
{ 5, "rs_attr_test_and_update", NULL, NULL},
{ 6, "rs_attr_delete", NULL, NULL},
{ 7, "rs_attr_get_referral", NULL, NULL},
{ 8, "rs_attr_get_effective", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_attr_opnum_vals[] = {
{ 0, "rs_attr_cursor_init" },
{ 1, "rs_attr_lookup_by_id" },
{ 2, "rs_attr_lookup_no_expand" },
{ 3, "rs_attr_lookup_by_name" },
{ 4, "rs_attr_update" },
{ 5, "rs_attr_test_and_update" },
{ 6, "rs_attr_delete" },
{ 7, "rs_attr_get_referral" },
{ 8, "rs_attr_get_effective" },
{ 0, NULL }
};
void
proto_register_rs_attr (void)
{
static hf_register_info hf[] = {
{ &hf_rs_attr_opnum,
{ "Operation", "rs_attr.opnum", FT_UINT16, BASE_DEC, VALS(rs_attr_opnum_vals), 0x0, "Operation", HFILL }},
};
static gint *ett[] = {
&ett_rs_attr,
};
proto_rs_attr = proto_register_protocol ("Registry Server Attributes Manipulation Interface", "RS_ATTR", "rs_attr");
proto_register_field_array (proto_rs_attr, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_attr (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_attr, ett_rs_attr, &uuid_rs_attr, ver_rs_attr, rs_attr_dissectors, hf_rs_attr_opnum);
}

View File

@ -1,138 +1,138 @@
/* packet-dcerpc-rs_misc.c
*
* Routines for dcerpc RS-MISC
* 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/rs_misc.idl
*
* $Id: packet-dcerpc-rs_misc.c,v 1.1 2002/09/10 11:01:21 sahlberg 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_rs_misc = -1;
static int hf_rs_misc_opnum = -1;
static int hf_rs_misc_login_get_info_rqst_var = -1;
static int hf_rs_misc_login_get_info_rqst_key_size = -1;
static int hf_rs_misc_login_get_info_rqst_key_t = -1;
static gint ett_rs_misc = -1;
static e_uuid_t uuid_rs_misc = { 0x4c878280, 0x5000, 0x0000, { 0x0d, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_misc = 1;
static int
rs_misc_dissect_login_get_info_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, char *drep)
{
guint32 key_size;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_misc_login_get_info_rqst_var, NULL);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_misc_login_get_info_rqst_key_size, &key_size);
if (key_size){ /* Not able to yet decipher the OTHER versions of this call just yet. */
proto_tree_add_string (tree, hf_rs_misc_login_get_info_rqst_key_t, tvb, offset, hf_rs_misc_login_get_info_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
"rs_login_get_info Request for: %s ", key_t);
}
} else {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_str(pinfo->cinfo, COL_INFO,
"rs_login_get_info Request (other)");
}
}
return offset;
};
static dcerpc_sub_dissector rs_misc_dissectors[] = {
{ 0, "rs_login_get_info", rs_misc_dissect_login_get_info_rqst, NULL},
{ 1, "rs_wait_until_consistent", NULL, NULL},
{ 2, "rs_check_consistency", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_misc_opnum_vals[] = {
{ 0, "rs_login_get_info" },
{ 1, "rs_wait_until_consistent" },
{ 2, "rs_check_consistency" },
{ 0, NULL },
};
void
proto_register_rs_misc (void)
{
static hf_register_info hf[] = {
{ &hf_rs_misc_opnum,
{ "Operation", "rs_misc.opnum", FT_UINT16, BASE_DEC,
VALS(rs_misc_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rs_misc_login_get_info_rqst_var,
{ "Var", "rs_misc.login_get_info_rqst_var", FT_UINT32, BASE_DEC,
NULL, 0x0, "", HFILL }},
{ &hf_rs_misc_login_get_info_rqst_key_size,
{ "Key Size", "rs_misc.login_get_info_rqst_key_size", FT_UINT32, BASE_DEC,
NULL, 0x0, "", HFILL }},
{ &hf_rs_misc_login_get_info_rqst_key_t,
{ "Key", "rs.misc_login_get_info_rqst_key_t", FT_STRING, BASE_NONE,
NULL, 0x0, "", HFILL }}
};
static gint *ett[] = {
&ett_rs_misc,
};
proto_rs_misc = proto_register_protocol ("DCE/RPC RS_MISC", "rs_misc", "rs_misc");
proto_register_field_array (proto_rs_misc, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_misc (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_misc, ett_rs_misc, &uuid_rs_misc, ver_rs_misc, rs_misc_dissectors, hf_rs_misc_opnum);
}
/* packet-dcerpc-rs_misc.c
*
* Routines for dcerpc RS-MISC
* 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/rs_misc.idl
*
* $Id: packet-dcerpc-rs_misc.c,v 1.2 2002/11/08 19:42:40 guy 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_rs_misc = -1;
static int hf_rs_misc_opnum = -1;
static int hf_rs_misc_login_get_info_rqst_var = -1;
static int hf_rs_misc_login_get_info_rqst_key_size = -1;
static int hf_rs_misc_login_get_info_rqst_key_t = -1;
static gint ett_rs_misc = -1;
static e_uuid_t uuid_rs_misc = { 0x4c878280, 0x5000, 0x0000, { 0x0d, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_misc = 1;
static int
rs_misc_dissect_login_get_info_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, char *drep)
{
guint32 key_size;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_misc_login_get_info_rqst_var, NULL);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_misc_login_get_info_rqst_key_size, &key_size);
if (key_size){ /* Not able to yet decipher the OTHER versions of this call just yet. */
proto_tree_add_string (tree, hf_rs_misc_login_get_info_rqst_key_t, tvb, offset, hf_rs_misc_login_get_info_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
"rs_login_get_info Request for: %s ", key_t);
}
} else {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_str(pinfo->cinfo, COL_INFO,
"rs_login_get_info Request (other)");
}
}
return offset;
};
static dcerpc_sub_dissector rs_misc_dissectors[] = {
{ 0, "rs_login_get_info", rs_misc_dissect_login_get_info_rqst, NULL},
{ 1, "rs_wait_until_consistent", NULL, NULL},
{ 2, "rs_check_consistency", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_misc_opnum_vals[] = {
{ 0, "rs_login_get_info" },
{ 1, "rs_wait_until_consistent" },
{ 2, "rs_check_consistency" },
{ 0, NULL },
};
void
proto_register_rs_misc (void)
{
static hf_register_info hf[] = {
{ &hf_rs_misc_opnum,
{ "Operation", "rs_misc.opnum", FT_UINT16, BASE_DEC,
VALS(rs_misc_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rs_misc_login_get_info_rqst_var,
{ "Var", "rs_misc.login_get_info_rqst_var", FT_UINT32, BASE_DEC,
NULL, 0x0, "", HFILL }},
{ &hf_rs_misc_login_get_info_rqst_key_size,
{ "Key Size", "rs_misc.login_get_info_rqst_key_size", FT_UINT32, BASE_DEC,
NULL, 0x0, "", HFILL }},
{ &hf_rs_misc_login_get_info_rqst_key_t,
{ "Key", "rs.misc_login_get_info_rqst_key_t", FT_STRING, BASE_NONE,
NULL, 0x0, "", HFILL }}
};
static gint *ett[] = {
&ett_rs_misc,
};
proto_rs_misc = proto_register_protocol ("DCE/RPC RS_MISC", "rs_misc", "rs_misc");
proto_register_field_array (proto_rs_misc, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_misc (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_misc, ett_rs_misc, &uuid_rs_misc, ver_rs_misc, rs_misc_dissectors, hf_rs_misc_opnum);
}

View File

@ -1,288 +1,288 @@
/* packet-dcerpc-rs_pgo.c
*
* Routines for dcerpc Afs4Int dissection
* 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/rs_pgo.idl
*
* $Id: packet-dcerpc-rs_pgo.c,v 1.1 2002/09/10 10:48:36 sahlberg 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_rs_pgo = -1;
static int hf_rs_pgo_opnum = -1;
static int hf_rs_pgo_get_members_rqst_name_domain = -1;
static int hf_rs_pgo_get_members_rqst_sec_rgy_name_max_len = -1;
static int hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size = -1;
static int hf_rs_pgo_get_members_rqst_sec_rgy_name_t = -1;
static int hf_rs_pgo_get_rqst_name_domain = -1;
static int hf_rs_pgo_get_rqst_var = -1;
static int hf_rs_pgo_get_rqst_var2 = -1;
static int hf_rs_pgo_get_rqst_key_size = -1;
static int hf_rs_pgo_get_rqst_key_t = -1;
static int hf_rs_pgo_key_transfer_rqst_var1 = -1;
static int hf_rs_pgo_key_transfer_rqst_var2 = -1;
static int hf_rs_pgo_key_transfer_rqst_var3 = -1;
static int hf_rs_pgo_is_member_rqst_var1 = -1;
static int hf_rs_pgo_is_member_rqst_var2 = -1;
static int hf_rs_pgo_is_member_rqst_var3 = -1;
static int hf_rs_pgo_is_member_rqst_var4 = -1;
static int hf_rs_pgo_is_member_rqst_key1 = -1;
static int hf_rs_pgo_is_member_rqst_key2 = -1;
static int hf_rs_pgo_is_member_rqst_key1_size = -1;
static int hf_rs_pgo_is_member_rqst_key2_size = -1;
static gint ett_rs_pgo = -1;
static e_uuid_t uuid_rs_pgo = { 0x4c878280, 0x3000, 0x0000, { 0x0d, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_pgo = 1;
static int
rs_pgo_dissect_get_members_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 name_domain, sec_rgy_name_max_len, sec_rgy_name_t_size;
char *sec_rgy_name_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_members_rqst_name_domain, &name_domain);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_members_rqst_sec_rgy_name_max_len, &sec_rgy_name_max_len);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size, &sec_rgy_name_t_size);
proto_tree_add_string (tree, hf_rs_pgo_get_members_rqst_sec_rgy_name_t, tvb, offset, hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size, tvb_get_ptr (tvb, offset, sec_rgy_name_t_size));
sec_rgy_name_t = (char *)tvb_get_ptr(tvb,offset,sec_rgy_name_t_size);
offset += sec_rgy_name_t_size;
if (check_col(pinfo->cinfo, COL_INFO)){
col_append_fstr(pinfo->cinfo, COL_INFO, " Request for: %s", sec_rgy_name_t);
}
return offset;
}
static int
rs_pgo_dissect_key_transfer_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 var1, var2, var3;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_key_transfer_rqst_var1, &var1);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_key_transfer_rqst_var2, &var2);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_key_transfer_rqst_var3, &var3);
if (check_col(pinfo->cinfo, COL_INFO)){
col_append_fstr(pinfo->cinfo, COL_INFO, " Request for: %u", var3);
}
return offset;
}
static int
rs_pgo_dissect_is_member_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 var1, var2, key1_size, key2_size, var3;
char *key1, *key2;
key1 = NULL;
key2 = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var1, &var1);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var2, &var2);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_key1_size, &key1_size);
proto_tree_add_string (tree, hf_rs_pgo_is_member_rqst_key1, tvb, offset, hf_rs_pgo_is_member_rqst_key1_size, tvb_get_ptr (tvb, offset, key1_size));
key1 = (char *)tvb_get_ptr(tvb,offset,key1_size);
offset += key1_size;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var3, &var3);
/* offset = dissect_ndr_uint16 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var4, &var4); */
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_key2_size, &key2_size);
proto_tree_add_string (tree, hf_rs_pgo_is_member_rqst_key2, tvb, offset, hf_rs_pgo_is_member_rqst_key2_size, tvb_get_ptr (tvb, offset, key2_size));
key2 = (char *)tvb_get_ptr(tvb,offset,key2_size);
offset += key2_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " Request: Is %s in %s", key2, key1);
}
return offset;
}
static int
rs_pgo_dissect_get_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 name_domain, key_size, var, var2;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_name_domain, &name_domain);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_var, &var);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_var2, &var2);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_key_size, &key_size);
if (key_size){ /* Not able to yet decipher the OTHER versions of this call just yet. */
proto_tree_add_string (tree, hf_rs_pgo_get_rqst_key_t, tvb, offset, hf_rs_pgo_get_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += (int)key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s ", key_t);
}
} else {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_str(pinfo->cinfo, COL_INFO, " Request (other)");
}
}
return offset;
}
static dcerpc_sub_dissector rs_pgo_dissectors[] = {
{ 0, "rs_pgo_add", NULL, NULL},
{ 1, "rs_pgo_delete", NULL, NULL},
{ 2, "rs_pgo_replace", NULL, NULL},
{ 3, "rs_pgo_rename", NULL, NULL},
{ 4, "rs_pgo_get", rs_pgo_dissect_get_rqst, NULL},
{ 5, "rs_pgo_key_transfer", rs_pgo_dissect_key_transfer_rqst, NULL},
{ 6, "rs_pgo_add_member", NULL, NULL},
{ 7, "rs_pgo_delete_member", NULL, NULL},
{ 8, "rs_pgo_is_member", rs_pgo_dissect_is_member_rqst, NULL},
{ 9, "rs_pgo_get_members", rs_pgo_dissect_get_members_rqst, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_pgo_opnum_vals[] = {
{ 0, "rs_pgo_add" },
{ 1, "rs_pgo_delete" },
{ 2, "rs_pgo_replace" },
{ 3, "rs_pgo_rename" },
{ 4, "rs_pgo_get" },
{ 5, "rs_pgo_key_transfer" },
{ 6, "rs_pgo_add_member" },
{ 7, "rs_pgo_delete_member" },
{ 8, "rs_pgo_is_member" },
{ 9, "rs_pgo_get_members" },
{ 0, NULL }
};
void
proto_register_rs_pgo (void)
{
static hf_register_info hf[] = {
{ &hf_rs_pgo_opnum,
{ "Operation", "rs_pgo.opnum", FT_UINT16, BASE_DEC,
VALS(rs_pgo_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rs_pgo_get_members_rqst_name_domain,
{ "Name Domain", "rs_pgo.get_members_name_domain", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_members_rqst_sec_rgy_name_max_len,
{ "Sec_rgy_name_max_len", "rs_pgo.get_members_sec_rgy_name_max_len", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size,
{ "Sec_rgy_name_t_size", "rs_pgo.get_members_sec_rgy_name_t_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_members_rqst_sec_rgy_name_t,
{ "Sec_rgy_name_t", "rs_pgo.get_members_sec_rgy_name_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_name_domain,
{ "Name Domain", "rs_pgo.get_rqst_name_domain", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_key_size,
{ "Key Size", "rs_pgo.get_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_key_t,
{ "Key", "rs_pgo.get_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_var,
{ "Var1", "rs_pgo.get_rqst_var", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_var2,
{ "Var2", "rs_pgo.get_rqst_var2", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_key_transfer_rqst_var1,
{ "Var1", "rs_pgo.key_transfer_rqst_var1", FT_UINT32, BASE_HEX, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_key_transfer_rqst_var2,
{ "Var2", "rs_pgo.key_transfer_rqst_var2", FT_UINT32, BASE_HEX, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_key_transfer_rqst_var3,
{ "Var3", "rs_pgo.key_transfer_rqst_var3", FT_UINT32, BASE_HEX, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var1,
{ "Var1", "rs_pgo.is_member_rqst_var1", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var2,
{ "Var2", "rs_pgo.is_member_rqst_var2", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var3,
{ "Var3", "rs_pgo.is_member_rqst_var3", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var4,
{ "Var4", "rs_pgo.is_member_rqst_var4", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key1_size,
{ "Key1 Size", "rs_pgo.is_member_rqst_key1_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key2_size,
{ "Key2 Size", "rs_pgo.is_member_rqst_key2_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key2,
{ "Key2", "rs_pgo.is_member_rqst_key2", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key1,
{ "Key2", "rs_pgo.is_member_rqst_key1", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
};
static gint *ett[] = {
&ett_rs_pgo,
};
proto_rs_pgo = proto_register_protocol ("DCE Name Service", "RS_PGO", "rs_pgo");
proto_register_field_array (proto_rs_pgo, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_pgo (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_pgo, ett_rs_pgo, &uuid_rs_pgo, ver_rs_pgo, rs_pgo_dissectors, hf_rs_pgo_opnum);
}
/* packet-dcerpc-rs_pgo.c
*
* Routines for dcerpc Afs4Int dissection
* 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/rs_pgo.idl
*
* $Id: packet-dcerpc-rs_pgo.c,v 1.2 2002/11/08 19:42:40 guy 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_rs_pgo = -1;
static int hf_rs_pgo_opnum = -1;
static int hf_rs_pgo_get_members_rqst_name_domain = -1;
static int hf_rs_pgo_get_members_rqst_sec_rgy_name_max_len = -1;
static int hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size = -1;
static int hf_rs_pgo_get_members_rqst_sec_rgy_name_t = -1;
static int hf_rs_pgo_get_rqst_name_domain = -1;
static int hf_rs_pgo_get_rqst_var = -1;
static int hf_rs_pgo_get_rqst_var2 = -1;
static int hf_rs_pgo_get_rqst_key_size = -1;
static int hf_rs_pgo_get_rqst_key_t = -1;
static int hf_rs_pgo_key_transfer_rqst_var1 = -1;
static int hf_rs_pgo_key_transfer_rqst_var2 = -1;
static int hf_rs_pgo_key_transfer_rqst_var3 = -1;
static int hf_rs_pgo_is_member_rqst_var1 = -1;
static int hf_rs_pgo_is_member_rqst_var2 = -1;
static int hf_rs_pgo_is_member_rqst_var3 = -1;
static int hf_rs_pgo_is_member_rqst_var4 = -1;
static int hf_rs_pgo_is_member_rqst_key1 = -1;
static int hf_rs_pgo_is_member_rqst_key2 = -1;
static int hf_rs_pgo_is_member_rqst_key1_size = -1;
static int hf_rs_pgo_is_member_rqst_key2_size = -1;
static gint ett_rs_pgo = -1;
static e_uuid_t uuid_rs_pgo = { 0x4c878280, 0x3000, 0x0000, { 0x0d, 0x00, 0x02, 0x87, 0x14, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_pgo = 1;
static int
rs_pgo_dissect_get_members_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 name_domain, sec_rgy_name_max_len, sec_rgy_name_t_size;
char *sec_rgy_name_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_members_rqst_name_domain, &name_domain);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_members_rqst_sec_rgy_name_max_len, &sec_rgy_name_max_len);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size, &sec_rgy_name_t_size);
proto_tree_add_string (tree, hf_rs_pgo_get_members_rqst_sec_rgy_name_t, tvb, offset, hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size, tvb_get_ptr (tvb, offset, sec_rgy_name_t_size));
sec_rgy_name_t = (char *)tvb_get_ptr(tvb,offset,sec_rgy_name_t_size);
offset += sec_rgy_name_t_size;
if (check_col(pinfo->cinfo, COL_INFO)){
col_append_fstr(pinfo->cinfo, COL_INFO, " Request for: %s", sec_rgy_name_t);
}
return offset;
}
static int
rs_pgo_dissect_key_transfer_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 var1, var2, var3;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_key_transfer_rqst_var1, &var1);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_key_transfer_rqst_var2, &var2);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_key_transfer_rqst_var3, &var3);
if (check_col(pinfo->cinfo, COL_INFO)){
col_append_fstr(pinfo->cinfo, COL_INFO, " Request for: %u", var3);
}
return offset;
}
static int
rs_pgo_dissect_is_member_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 var1, var2, key1_size, key2_size, var3;
char *key1, *key2;
key1 = NULL;
key2 = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var1, &var1);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var2, &var2);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_key1_size, &key1_size);
proto_tree_add_string (tree, hf_rs_pgo_is_member_rqst_key1, tvb, offset, hf_rs_pgo_is_member_rqst_key1_size, tvb_get_ptr (tvb, offset, key1_size));
key1 = (char *)tvb_get_ptr(tvb,offset,key1_size);
offset += key1_size;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var3, &var3);
/* offset = dissect_ndr_uint16 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_var4, &var4); */
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_pgo_is_member_rqst_key2_size, &key2_size);
proto_tree_add_string (tree, hf_rs_pgo_is_member_rqst_key2, tvb, offset, hf_rs_pgo_is_member_rqst_key2_size, tvb_get_ptr (tvb, offset, key2_size));
key2 = (char *)tvb_get_ptr(tvb,offset,key2_size);
offset += key2_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " Request: Is %s in %s", key2, key1);
}
return offset;
}
static int
rs_pgo_dissect_get_rqst (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
{
guint32 name_domain, key_size, var, var2;
char *key_t = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_name_domain, &name_domain);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_var, &var);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_var2, &var2);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_rs_pgo_get_rqst_key_size, &key_size);
if (key_size){ /* Not able to yet decipher the OTHER versions of this call just yet. */
proto_tree_add_string (tree, hf_rs_pgo_get_rqst_key_t, tvb, offset, hf_rs_pgo_get_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
offset += (int)key_size;
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO,
" Request for: %s ", key_t);
}
} else {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_str(pinfo->cinfo, COL_INFO, " Request (other)");
}
}
return offset;
}
static dcerpc_sub_dissector rs_pgo_dissectors[] = {
{ 0, "rs_pgo_add", NULL, NULL},
{ 1, "rs_pgo_delete", NULL, NULL},
{ 2, "rs_pgo_replace", NULL, NULL},
{ 3, "rs_pgo_rename", NULL, NULL},
{ 4, "rs_pgo_get", rs_pgo_dissect_get_rqst, NULL},
{ 5, "rs_pgo_key_transfer", rs_pgo_dissect_key_transfer_rqst, NULL},
{ 6, "rs_pgo_add_member", NULL, NULL},
{ 7, "rs_pgo_delete_member", NULL, NULL},
{ 8, "rs_pgo_is_member", rs_pgo_dissect_is_member_rqst, NULL},
{ 9, "rs_pgo_get_members", rs_pgo_dissect_get_members_rqst, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_pgo_opnum_vals[] = {
{ 0, "rs_pgo_add" },
{ 1, "rs_pgo_delete" },
{ 2, "rs_pgo_replace" },
{ 3, "rs_pgo_rename" },
{ 4, "rs_pgo_get" },
{ 5, "rs_pgo_key_transfer" },
{ 6, "rs_pgo_add_member" },
{ 7, "rs_pgo_delete_member" },
{ 8, "rs_pgo_is_member" },
{ 9, "rs_pgo_get_members" },
{ 0, NULL }
};
void
proto_register_rs_pgo (void)
{
static hf_register_info hf[] = {
{ &hf_rs_pgo_opnum,
{ "Operation", "rs_pgo.opnum", FT_UINT16, BASE_DEC,
VALS(rs_pgo_opnum_vals), 0x0, "Operation", HFILL }},
{ &hf_rs_pgo_get_members_rqst_name_domain,
{ "Name Domain", "rs_pgo.get_members_name_domain", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_members_rqst_sec_rgy_name_max_len,
{ "Sec_rgy_name_max_len", "rs_pgo.get_members_sec_rgy_name_max_len", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_members_rqst_sec_rgy_name_t_size,
{ "Sec_rgy_name_t_size", "rs_pgo.get_members_sec_rgy_name_t_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_members_rqst_sec_rgy_name_t,
{ "Sec_rgy_name_t", "rs_pgo.get_members_sec_rgy_name_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_name_domain,
{ "Name Domain", "rs_pgo.get_rqst_name_domain", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_key_size,
{ "Key Size", "rs_pgo.get_rqst_key_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_key_t,
{ "Key", "rs_pgo.get_rqst_key_t", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_var,
{ "Var1", "rs_pgo.get_rqst_var", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_get_rqst_var2,
{ "Var2", "rs_pgo.get_rqst_var2", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_key_transfer_rqst_var1,
{ "Var1", "rs_pgo.key_transfer_rqst_var1", FT_UINT32, BASE_HEX, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_key_transfer_rqst_var2,
{ "Var2", "rs_pgo.key_transfer_rqst_var2", FT_UINT32, BASE_HEX, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_key_transfer_rqst_var3,
{ "Var3", "rs_pgo.key_transfer_rqst_var3", FT_UINT32, BASE_HEX, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var1,
{ "Var1", "rs_pgo.is_member_rqst_var1", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var2,
{ "Var2", "rs_pgo.is_member_rqst_var2", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var3,
{ "Var3", "rs_pgo.is_member_rqst_var3", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_var4,
{ "Var4", "rs_pgo.is_member_rqst_var4", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key1_size,
{ "Key1 Size", "rs_pgo.is_member_rqst_key1_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key2_size,
{ "Key2 Size", "rs_pgo.is_member_rqst_key2_size", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key2,
{ "Key2", "rs_pgo.is_member_rqst_key2", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
{ &hf_rs_pgo_is_member_rqst_key1,
{ "Key2", "rs_pgo.is_member_rqst_key1", FT_STRING, BASE_NONE, NULL, 0x0, "", HFILL }},
};
static gint *ett[] = {
&ett_rs_pgo,
};
proto_rs_pgo = proto_register_protocol ("DCE Name Service", "RS_PGO", "rs_pgo");
proto_register_field_array (proto_rs_pgo, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_pgo (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_pgo, ett_rs_pgo, &uuid_rs_pgo, ver_rs_pgo, rs_pgo_dissectors, hf_rs_pgo_opnum);
}

View File

@ -1,113 +1,113 @@
/* packet-dcerpc-rs_repadm.c
*
* Routines for dcerpc Registry server administration operations.
* 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/rs_repadm.idl
*
* $Id: packet-dcerpc-rs_repadm.c,v 1.1 2002/09/11 09:34:28 sahlberg 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_rs_repadm = -1;
static int hf_rs_repadm_opnum = -1;
static gint ett_rs_repadm = -1;
static e_uuid_t uuid_rs_repadm = { 0x5b8c2fa8, 0xb60b, 0x11c9, { 0xbe, 0x0f, 0x08, 0x00, 0x1e, 0x01, 0x8f, 0xa0 } };
static guint16 ver_rs_repadm = 1.1;
static dcerpc_sub_dissector rs_repadm_dissectors[] = {
{ 0, "rs_rep_admin_stop", NULL, NULL},
{ 1, "rs_rep_admin_maint", NULL, NULL},
{ 2, "rs_rep_admin_mkey", NULL, NULL},
{ 3, "rs_rep_admin_info", NULL, NULL},
{ 4, "rs_rep_admin_info_full", NULL, NULL},
{ 5, "rs_rep_admin_destroy", NULL, NULL},
{ 6, "rs_rep_admin_init_replica", NULL, NULL},
{ 7, "rs_rep_admin_change_master", NULL, NULL},
{ 8, "rs_rep_admin_become_master", NULL, NULL},
{ 9, "rs_rep_admin_become_slave", NULL, NULL},
{ 10, "rs_rep_admin_set_sw_rev", NULL, NULL},
{ 11, "rs_rep_admin_get_sw_vers_info", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_repadm_opnum_vals[] = {
{ 0, "rs_rep_admin_stop" },
{ 1, "rs_rep_admin_maint" },
{ 2, "rs_rep_admin_mkey" },
{ 3, "rs_rep_admin_info" },
{ 4, "rs_rep_admin_info_full" },
{ 5, "rs_rep_admin_destroy" },
{ 6, "rs_rep_admin_init_replica" },
{ 7, "rs_rep_admin_change_master" },
{ 8, "rs_rep_admin_become_master" },
{ 9, "rs_rep_admin_become_slave" },
{ 10, "rs_rep_admin_set_sw_rev" },
{ 11, "rs_rep_admin_get_sw_vers_info" },
{ 0, NULL }
};
void
proto_register_rs_repadm (void)
{
static hf_register_info hf[] = {
{ &hf_rs_repadm_opnum,
{ "Operation", "rs_repadmin.opnum", FT_UINT16, BASE_DEC, VALS(rs_repadm_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_rs_repadm,
};
proto_rs_repadm = proto_register_protocol ("Registry server administration operations.", "RS_REPADM", "rs_repadm");
proto_register_field_array (proto_rs_repadm, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_repadm (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_repadm, ett_rs_repadm, &uuid_rs_repadm, ver_rs_repadm, rs_repadm_dissectors, hf_rs_repadm_opnum);
}
/* packet-dcerpc-rs_repadm.c
*
* Routines for dcerpc Registry server administration operations.
* 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/rs_repadm.idl
*
* $Id: packet-dcerpc-rs_repadm.c,v 1.2 2002/11/08 19:42:40 guy 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_rs_repadm = -1;
static int hf_rs_repadm_opnum = -1;
static gint ett_rs_repadm = -1;
static e_uuid_t uuid_rs_repadm = { 0x5b8c2fa8, 0xb60b, 0x11c9, { 0xbe, 0x0f, 0x08, 0x00, 0x1e, 0x01, 0x8f, 0xa0 } };
static guint16 ver_rs_repadm = 1.1;
static dcerpc_sub_dissector rs_repadm_dissectors[] = {
{ 0, "rs_rep_admin_stop", NULL, NULL},
{ 1, "rs_rep_admin_maint", NULL, NULL},
{ 2, "rs_rep_admin_mkey", NULL, NULL},
{ 3, "rs_rep_admin_info", NULL, NULL},
{ 4, "rs_rep_admin_info_full", NULL, NULL},
{ 5, "rs_rep_admin_destroy", NULL, NULL},
{ 6, "rs_rep_admin_init_replica", NULL, NULL},
{ 7, "rs_rep_admin_change_master", NULL, NULL},
{ 8, "rs_rep_admin_become_master", NULL, NULL},
{ 9, "rs_rep_admin_become_slave", NULL, NULL},
{ 10, "rs_rep_admin_set_sw_rev", NULL, NULL},
{ 11, "rs_rep_admin_get_sw_vers_info", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_repadm_opnum_vals[] = {
{ 0, "rs_rep_admin_stop" },
{ 1, "rs_rep_admin_maint" },
{ 2, "rs_rep_admin_mkey" },
{ 3, "rs_rep_admin_info" },
{ 4, "rs_rep_admin_info_full" },
{ 5, "rs_rep_admin_destroy" },
{ 6, "rs_rep_admin_init_replica" },
{ 7, "rs_rep_admin_change_master" },
{ 8, "rs_rep_admin_become_master" },
{ 9, "rs_rep_admin_become_slave" },
{ 10, "rs_rep_admin_set_sw_rev" },
{ 11, "rs_rep_admin_get_sw_vers_info" },
{ 0, NULL }
};
void
proto_register_rs_repadm (void)
{
static hf_register_info hf[] = {
{ &hf_rs_repadm_opnum,
{ "Operation", "rs_repadmin.opnum", FT_UINT16, BASE_DEC, VALS(rs_repadm_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_rs_repadm,
};
proto_rs_repadm = proto_register_protocol ("Registry server administration operations.", "RS_REPADM", "rs_repadm");
proto_register_field_array (proto_rs_repadm, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_repadm (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_repadm, ett_rs_repadm, &uuid_rs_repadm, ver_rs_repadm, rs_repadm_dissectors, hf_rs_repadm_opnum);
}

View File

@ -1,106 +1,106 @@
/* packet-dcerpc-rs_replist.c
*
* Routines for dcerpc RepServer Calls
* 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/rs_repadm.idl
*
* $Id: packet-dcerpc-rs_replist.c,v 1.1 2002/09/10 11:26:27 sahlberg 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_rs_replist = -1;
static int hf_rs_replist_opnum = -1;
static gint ett_rs_replist = -1;
static e_uuid_t uuid_rs_replist = { 0x850446b0, 0xe95b, 0x11CA, { 0xad, 0x90, 0x08, 0x00, 0x1e, 0x01, 0x45, 0xb1 } };
static guint16 ver_rs_replist = 2;
static dcerpc_sub_dissector rs_replist_dissectors[] = {
{ 0, "rs_replist_add_replica", NULL, NULL},
{ 1, "rs_replist_replace_replica", NULL, NULL},
{ 2, "rs_replist_delete_replica", NULL, NULL},
{ 3, "rs_replist_read", NULL, NULL},
{ 4, "rs_replist_read_full", NULL, NULL},
{ 5, "rs_replist_add_replica", NULL, NULL},
{ 6, "rs_replist_replace_replica", NULL, NULL},
{ 7, "rs_replist_delete_replica", NULL, NULL},
{ 8, "rs_replist_read", NULL, NULL},
{ 9, "rs_replist_read_full", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_replist_opnum_vals[] = {
{ 0, "rs_replist_add_replica" },
{ 1, "rs_replist_replace_replica" },
{ 2, "rs_replist_delete_replica" },
{ 3, "rs_replist_read" },
{ 4, "rs_replist_read_full" },
{ 5, "rs_replist_add_replica" },
{ 6, "rs_replist_replace_replica" },
{ 7, "rs_replist_delete_replica" },
{ 8, "rs_replist_read" },
{ 9, "rs_replist_read_full" },
{ 0, NULL }
};
void
proto_register_rs_replist (void)
{
static hf_register_info hf[] = {
{ &hf_rs_replist_opnum,
{ "Operation", "rs_replist.opnum", FT_UINT16, BASE_DEC, VALS(rs_replist_opnum_vals), 0x0, "Operation", HFILL }},
};
static gint *ett[] = {
&ett_rs_replist,
};
proto_rs_replist = proto_register_protocol ("DCE/RPC Repserver Calls", "RS_REPLIST", "rs_replist");
proto_register_field_array (proto_rs_replist, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_replist (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_replist, ett_rs_replist, &uuid_rs_replist, ver_rs_replist, rs_replist_dissectors, hf_rs_replist_opnum);
}
/* packet-dcerpc-rs_replist.c
*
* Routines for dcerpc RepServer Calls
* 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/rs_repadm.idl
*
* $Id: packet-dcerpc-rs_replist.c,v 1.2 2002/11/08 19:42:40 guy 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_rs_replist = -1;
static int hf_rs_replist_opnum = -1;
static gint ett_rs_replist = -1;
static e_uuid_t uuid_rs_replist = { 0x850446b0, 0xe95b, 0x11CA, { 0xad, 0x90, 0x08, 0x00, 0x1e, 0x01, 0x45, 0xb1 } };
static guint16 ver_rs_replist = 2;
static dcerpc_sub_dissector rs_replist_dissectors[] = {
{ 0, "rs_replist_add_replica", NULL, NULL},
{ 1, "rs_replist_replace_replica", NULL, NULL},
{ 2, "rs_replist_delete_replica", NULL, NULL},
{ 3, "rs_replist_read", NULL, NULL},
{ 4, "rs_replist_read_full", NULL, NULL},
{ 5, "rs_replist_add_replica", NULL, NULL},
{ 6, "rs_replist_replace_replica", NULL, NULL},
{ 7, "rs_replist_delete_replica", NULL, NULL},
{ 8, "rs_replist_read", NULL, NULL},
{ 9, "rs_replist_read_full", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rs_replist_opnum_vals[] = {
{ 0, "rs_replist_add_replica" },
{ 1, "rs_replist_replace_replica" },
{ 2, "rs_replist_delete_replica" },
{ 3, "rs_replist_read" },
{ 4, "rs_replist_read_full" },
{ 5, "rs_replist_add_replica" },
{ 6, "rs_replist_replace_replica" },
{ 7, "rs_replist_delete_replica" },
{ 8, "rs_replist_read" },
{ 9, "rs_replist_read_full" },
{ 0, NULL }
};
void
proto_register_rs_replist (void)
{
static hf_register_info hf[] = {
{ &hf_rs_replist_opnum,
{ "Operation", "rs_replist.opnum", FT_UINT16, BASE_DEC, VALS(rs_replist_opnum_vals), 0x0, "Operation", HFILL }},
};
static gint *ett[] = {
&ett_rs_replist,
};
proto_rs_replist = proto_register_protocol ("DCE/RPC Repserver Calls", "RS_REPLIST", "rs_replist");
proto_register_field_array (proto_rs_replist, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_replist (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_replist, ett_rs_replist, &uuid_rs_replist, ver_rs_replist, rs_replist_dissectors, hf_rs_replist_opnum);
}

View File

@ -1,87 +1,87 @@
/* packet-dcerpc-rs_unix.c
*
* Routines for dcerpc Unix ops
* 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/rs_unix.idl
*
* $Id: packet-dcerpc-rs_unix.c,v 1.1 2002/09/10 10:28:45 sahlberg 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_rs_unix = -1;
static int hf_rs_unix_opnum = -1;
static gint ett_rs_unix = -1;
static e_uuid_t uuid_rs_unix = { 0x361993c0, 0xb000, 0x0000, { 0x0d, 0x00, 0x00, 0x87, 0x84, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_unix = 1;
static dcerpc_sub_dissector rs_unix_dissectors[] = {
{ 0, "rs_unix_getpwents", NULL, NULL },
{ 0, NULL, NULL, NULL },
};
static const value_string rs_unix_opnum_vals[] = {
{ 0, "rs_unix_getpwents" },
{ 0, NULL },
};
void
proto_register_rs_unix (void)
{
static hf_register_info hf[] = {
{ &hf_rs_unix_opnum,
{ "Operation", "rs_unix.opnum", FT_UINT16, BASE_DEC,
VALS(rs_unix_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_rs_unix,
};
proto_rs_unix = proto_register_protocol ("DCE/RPC RS_UNIX", "RS_UNIX", "rs_unix");
proto_register_field_array (proto_rs_unix, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_unix (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_unix, ett_rs_unix, &uuid_rs_unix, ver_rs_unix, rs_unix_dissectors, hf_rs_unix_opnum);
}
/* packet-dcerpc-rs_unix.c
*
* Routines for dcerpc Unix ops
* 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/rs_unix.idl
*
* $Id: packet-dcerpc-rs_unix.c,v 1.2 2002/11/08 19:42:40 guy 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_rs_unix = -1;
static int hf_rs_unix_opnum = -1;
static gint ett_rs_unix = -1;
static e_uuid_t uuid_rs_unix = { 0x361993c0, 0xb000, 0x0000, { 0x0d, 0x00, 0x00, 0x87, 0x84, 0x00, 0x00, 0x00 } };
static guint16 ver_rs_unix = 1;
static dcerpc_sub_dissector rs_unix_dissectors[] = {
{ 0, "rs_unix_getpwents", NULL, NULL },
{ 0, NULL, NULL, NULL },
};
static const value_string rs_unix_opnum_vals[] = {
{ 0, "rs_unix_getpwents" },
{ 0, NULL },
};
void
proto_register_rs_unix (void)
{
static hf_register_info hf[] = {
{ &hf_rs_unix_opnum,
{ "Operation", "rs_unix.opnum", FT_UINT16, BASE_DEC,
VALS(rs_unix_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_rs_unix,
};
proto_rs_unix = proto_register_protocol ("DCE/RPC RS_UNIX", "RS_UNIX", "rs_unix");
proto_register_field_array (proto_rs_unix, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rs_unix (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rs_unix, ett_rs_unix, &uuid_rs_unix, ver_rs_unix, rs_unix_dissectors, hf_rs_unix_opnum);
}

View File

@ -1,87 +1,87 @@
/* packet-dcerpc-rsec_login.c
*
* Routines for dcerpc Remote sec_login preauth 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/rsec_login.idl
*
* $Id: packet-dcerpc-rsec_login.c,v 1.1 2002/09/10 11:33:00 sahlberg 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_rsec_login = -1;
static int hf_rsec_login_opnum = -1;
static gint ett_rsec_login = -1;
static e_uuid_t uuid_rsec_login = { 0xa76e832a, 0x10df, 0x11cd, { 0x90, 0x56, 0x08, 0x00, 0x09, 0x24, 0x24, 0x44 } };
static guint16 ver_rsec_login = 2;
static dcerpc_sub_dissector rsec_login_dissectors[] = {
{ 0, "rsec_login_get_trusted_preauth", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rsec_login_opnum_vals[] = {
{ 0, "rsec_login_get_trusted_preauth" },
{ 0, NULL }
};
void
proto_register_rsec_login (void)
{
static hf_register_info hf[] = {
{ &hf_rsec_login_opnum,
{ "Operation", "rsec_login.opnum", FT_UINT16, BASE_DEC, VALS(rsec_login_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_rsec_login,
};
proto_rsec_login = proto_register_protocol ("Remote sec_login preauth interface.", "rsec_login", "rsec_login");
proto_register_field_array (proto_rsec_login, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rsec_login (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rsec_login, ett_rsec_login, &uuid_rsec_login, ver_rsec_login, rsec_login_dissectors, hf_rsec_login_opnum);
}
/* packet-dcerpc-rsec_login.c
*
* Routines for dcerpc Remote sec_login preauth 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/rsec_login.idl
*
* $Id: packet-dcerpc-rsec_login.c,v 1.2 2002/11/08 19:42:40 guy 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_rsec_login = -1;
static int hf_rsec_login_opnum = -1;
static gint ett_rsec_login = -1;
static e_uuid_t uuid_rsec_login = { 0xa76e832a, 0x10df, 0x11cd, { 0x90, 0x56, 0x08, 0x00, 0x09, 0x24, 0x24, 0x44 } };
static guint16 ver_rsec_login = 2;
static dcerpc_sub_dissector rsec_login_dissectors[] = {
{ 0, "rsec_login_get_trusted_preauth", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string rsec_login_opnum_vals[] = {
{ 0, "rsec_login_get_trusted_preauth" },
{ 0, NULL }
};
void
proto_register_rsec_login (void)
{
static hf_register_info hf[] = {
{ &hf_rsec_login_opnum,
{ "Operation", "rsec_login.opnum", FT_UINT16, BASE_DEC, VALS(rsec_login_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_rsec_login,
};
proto_rsec_login = proto_register_protocol ("Remote sec_login preauth interface.", "rsec_login", "rsec_login");
proto_register_field_array (proto_rsec_login, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_rsec_login (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_rsec_login, ett_rsec_login, &uuid_rsec_login, ver_rsec_login, rsec_login_dissectors, hf_rsec_login_opnum);
}

View File

@ -1,98 +1,98 @@
/* packet-dcerpc-secidmap.c
*
* Routines for dcerpc DCE Security ID Mapper
* 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/rsecidmap.idl
*
* $Id: packet-dcerpc-secidmap.c,v 1.1 2002/09/13 10:13:03 sahlberg 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_secidmap = -1;
static int hf_secidmap_opnum = -1;
static gint ett_secidmap = -1;
static e_uuid_t uuid_secidmap = { 0x0d7c1e50, 0x113a, 0x11ca, { 0xb7, 0x1f, 0x08, 0x00, 0x1e, 0x01, 0xdc, 0x6c } };
static guint16 ver_secidmap = 1;
static dcerpc_sub_dissector secidmap_dissectors[] = {
{ 0, "ParseNameRedbox", NULL, NULL},
{ 1, "GenNameBluebox", NULL, NULL},
{ 2, "AvoidCnBug", NULL, NULL},
{ 3, "ParseNameCache", NULL, NULL},
{ 4, "GenNameCache", NULL, NULL},
{ 0, NULL, NULL, NULL },
};
static const value_string secidmap_opnum_vals[] = {
{ 0, "ParseNameRedbox" },
{ 1, "GenNameBluebox" },
{ 2, "AvoidCnBug" },
{ 3, "ParseNameCache" },
{ 4, "GenNameCache" },
{ 0, NULL }
};
void
proto_register_secidmap (void)
{
static hf_register_info hf[] = {
{ &hf_secidmap_opnum,
{ "Operation", "secidmap.opnum", FT_UINT16, BASE_DEC,
VALS(secidmap_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_secidmap,
};
proto_secidmap = proto_register_protocol ("DCE Security ID Mapper", "SECIDMAP", "secidmap");
proto_register_field_array (proto_secidmap, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_secidmap (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_secidmap, ett_secidmap, &uuid_secidmap, ver_secidmap, secidmap_dissectors, hf_secidmap_opnum);
}
/* packet-dcerpc-secidmap.c
*
* Routines for dcerpc DCE Security ID Mapper
* 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/rsecidmap.idl
*
* $Id: packet-dcerpc-secidmap.c,v 1.2 2002/11/08 19:42:40 guy 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_secidmap = -1;
static int hf_secidmap_opnum = -1;
static gint ett_secidmap = -1;
static e_uuid_t uuid_secidmap = { 0x0d7c1e50, 0x113a, 0x11ca, { 0xb7, 0x1f, 0x08, 0x00, 0x1e, 0x01, 0xdc, 0x6c } };
static guint16 ver_secidmap = 1;
static dcerpc_sub_dissector secidmap_dissectors[] = {
{ 0, "ParseNameRedbox", NULL, NULL},
{ 1, "GenNameBluebox", NULL, NULL},
{ 2, "AvoidCnBug", NULL, NULL},
{ 3, "ParseNameCache", NULL, NULL},
{ 4, "GenNameCache", NULL, NULL},
{ 0, NULL, NULL, NULL },
};
static const value_string secidmap_opnum_vals[] = {
{ 0, "ParseNameRedbox" },
{ 1, "GenNameBluebox" },
{ 2, "AvoidCnBug" },
{ 3, "ParseNameCache" },
{ 4, "GenNameCache" },
{ 0, NULL }
};
void
proto_register_secidmap (void)
{
static hf_register_info hf[] = {
{ &hf_secidmap_opnum,
{ "Operation", "secidmap.opnum", FT_UINT16, BASE_DEC,
VALS(secidmap_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_secidmap,
};
proto_secidmap = proto_register_protocol ("DCE Security ID Mapper", "SECIDMAP", "secidmap");
proto_register_field_array (proto_secidmap, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_secidmap (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_secidmap, ett_secidmap, &uuid_secidmap, ver_secidmap, secidmap_dissectors, hf_secidmap_opnum);
}

View File

@ -1,107 +1,107 @@
/* packet-dcerpc-tkn4int.c
*
* Routines for dcerpc Token Server Calls
* 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/file.tar.gz file/fsint/tkn4int.idl
*
* $Id: packet-dcerpc-tkn4int.c,v 1.1 2002/09/13 10:20:48 sahlberg 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_tkn4int = -1;
static int hf_tkn4int_opnum = -1;
static gint ett_tkn4int = -1;
static e_uuid_t uuid_tkn4int = { 0x4d37f2dd, 0xed96, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_tkn4int = 4;
static dcerpc_sub_dissector tkn4int_dissectors[] = {
{ 0, "Probe", NULL, NULL},
{ 1, "InitTokenState", NULL, NULL},
{ 2, "TokenRevoke", NULL, NULL},
{ 3, "GetCellName", NULL, NULL},
{ 4, "GetLock", NULL, NULL},
{ 5, "GetCE", NULL, NULL},
{ 6, "GetServerInterfaces", NULL, NULL},
{ 7, "SetParams", NULL, NULL},
{ 8, "AsyncGrant", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string tkn4int_opnum_vals[] = {
{ 0, "Probe" },
{ 1, "InitTokenState" },
{ 2, "TokenRevoke" },
{ 3, "GetCellName" },
{ 4, "GetLock" },
{ 5, "GetCE" },
{ 6, "GetServerInterfaces" },
{ 7, "SetParams" },
{ 8, "AsyncGrant" },
{ 0, NULL }
};
void
proto_register_tkn4int (void)
{
static hf_register_info hf[] = {
{ &hf_tkn4int_opnum,
{ "Operation", "tkn4int.opnum", FT_UINT16, BASE_DEC,
VALS(tkn4int_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_tkn4int,
};
proto_tkn4int = proto_register_protocol ("DCE/RPC TokenServer Calls", "TKN4Int", "tkn4int");
proto_register_field_array (proto_tkn4int, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_tkn4int (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_tkn4int, ett_tkn4int, &uuid_tkn4int, ver_tkn4int, tkn4int_dissectors, hf_tkn4int_opnum);
}
/* packet-dcerpc-tkn4int.c
*
* Routines for dcerpc Token Server Calls
* 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/file.tar.gz file/fsint/tkn4int.idl
*
* $Id: packet-dcerpc-tkn4int.c,v 1.2 2002/11/08 19:42:40 guy 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_tkn4int = -1;
static int hf_tkn4int_opnum = -1;
static gint ett_tkn4int = -1;
static e_uuid_t uuid_tkn4int = { 0x4d37f2dd, 0xed96, 0x0000, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_tkn4int = 4;
static dcerpc_sub_dissector tkn4int_dissectors[] = {
{ 0, "Probe", NULL, NULL},
{ 1, "InitTokenState", NULL, NULL},
{ 2, "TokenRevoke", NULL, NULL},
{ 3, "GetCellName", NULL, NULL},
{ 4, "GetLock", NULL, NULL},
{ 5, "GetCE", NULL, NULL},
{ 6, "GetServerInterfaces", NULL, NULL},
{ 7, "SetParams", NULL, NULL},
{ 8, "AsyncGrant", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string tkn4int_opnum_vals[] = {
{ 0, "Probe" },
{ 1, "InitTokenState" },
{ 2, "TokenRevoke" },
{ 3, "GetCellName" },
{ 4, "GetLock" },
{ 5, "GetCE" },
{ 6, "GetServerInterfaces" },
{ 7, "SetParams" },
{ 8, "AsyncGrant" },
{ 0, NULL }
};
void
proto_register_tkn4int (void)
{
static hf_register_info hf[] = {
{ &hf_tkn4int_opnum,
{ "Operation", "tkn4int.opnum", FT_UINT16, BASE_DEC,
VALS(tkn4int_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_tkn4int,
};
proto_tkn4int = proto_register_protocol ("DCE/RPC TokenServer Calls", "TKN4Int", "tkn4int");
proto_register_field_array (proto_tkn4int, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_tkn4int (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_tkn4int, ett_tkn4int, &uuid_tkn4int, ver_tkn4int, tkn4int_dissectors, hf_tkn4int_opnum);
}

View File

@ -1,113 +1,113 @@
/* packet-dcerpc-ubikdisk.c
*
* Routines for dcerpc UBIK Disk routines
* 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/file.tar.gz file/ncsubik/ubikdisk_proc.idl
*
* $Id: packet-dcerpc-ubikdisk.c,v 1.1 2002/09/12 08:55:42 sahlberg 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_ubikdisk = -1;
static int hf_ubikdisk_opnum = -1;
static gint ett_ubikdisk = -1;
static e_uuid_t uuid_ubikdisk = { 0x4d37f2dd, 0xed43, 0x0002, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_ubikdisk = 4;
static dcerpc_sub_dissector ubikdisk_dissectors[] = {
{ 0, "Begin", NULL, NULL},
{ 1, "Commit", NULL, NULL},
{ 2, "Lock", NULL, NULL},
{ 3, "Write", NULL, NULL},
{ 4, "GetVersion", NULL, NULL},
{ 5, "GetFile", NULL, NULL},
{ 6, "SendFile", NULL, NULL},
{ 7, "Abort", NULL, NULL},
{ 8, "ReleaseLocks", NULL, NULL},
{ 9, "Truncate", NULL, NULL},
{ 10, "Probe", NULL, NULL},
{ 11, "GetServerInterfaces", NULL, NULL},
{ 12, "BulkUpdate", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string ubikdisk_opnum_vals[] = {
{ 0, "Begin" },
{ 1, "Commit" },
{ 2, "Lock" },
{ 3, "Write" },
{ 4, "GetVersion" },
{ 5, "GetFile" },
{ 6, "SendFile" },
{ 7, "Abort" },
{ 8, "ReleaseLocks" },
{ 9, "Truncate" },
{ 10, "Probe" },
{ 11, "GetServerInterfaces" },
{ 12, "BulkUpdate" },
{ 0, NULL }
};
void
proto_register_ubikdisk (void)
{
static hf_register_info hf[] = {
{ &hf_ubikdisk_opnum,
{ "Operation", "ubikdisk.opnum", FT_UINT16, BASE_DEC,
VALS(ubikdisk_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_ubikdisk,
};
proto_ubikdisk = proto_register_protocol ("DCE/RPC FLDB UBIK TRANSFER", "UBIKDISK", "ubikdisk");
proto_register_field_array (proto_ubikdisk, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_ubikdisk (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_ubikdisk, ett_ubikdisk, &uuid_ubikdisk, ver_ubikdisk, ubikdisk_dissectors, hf_ubikdisk_opnum);
}
/* packet-dcerpc-ubikdisk.c
*
* Routines for dcerpc UBIK Disk routines
* 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/file.tar.gz file/ncsubik/ubikdisk_proc.idl
*
* $Id: packet-dcerpc-ubikdisk.c,v 1.2 2002/11/08 19:42:40 guy 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_ubikdisk = -1;
static int hf_ubikdisk_opnum = -1;
static gint ett_ubikdisk = -1;
static e_uuid_t uuid_ubikdisk = { 0x4d37f2dd, 0xed43, 0x0002, { 0x02, 0xc0, 0x37, 0xcf, 0x1e, 0x00, 0x00, 0x00 } };
static guint16 ver_ubikdisk = 4;
static dcerpc_sub_dissector ubikdisk_dissectors[] = {
{ 0, "Begin", NULL, NULL},
{ 1, "Commit", NULL, NULL},
{ 2, "Lock", NULL, NULL},
{ 3, "Write", NULL, NULL},
{ 4, "GetVersion", NULL, NULL},
{ 5, "GetFile", NULL, NULL},
{ 6, "SendFile", NULL, NULL},
{ 7, "Abort", NULL, NULL},
{ 8, "ReleaseLocks", NULL, NULL},
{ 9, "Truncate", NULL, NULL},
{ 10, "Probe", NULL, NULL},
{ 11, "GetServerInterfaces", NULL, NULL},
{ 12, "BulkUpdate", NULL, NULL},
{ 0, NULL, NULL, NULL }
};
static const value_string ubikdisk_opnum_vals[] = {
{ 0, "Begin" },
{ 1, "Commit" },
{ 2, "Lock" },
{ 3, "Write" },
{ 4, "GetVersion" },
{ 5, "GetFile" },
{ 6, "SendFile" },
{ 7, "Abort" },
{ 8, "ReleaseLocks" },
{ 9, "Truncate" },
{ 10, "Probe" },
{ 11, "GetServerInterfaces" },
{ 12, "BulkUpdate" },
{ 0, NULL }
};
void
proto_register_ubikdisk (void)
{
static hf_register_info hf[] = {
{ &hf_ubikdisk_opnum,
{ "Operation", "ubikdisk.opnum", FT_UINT16, BASE_DEC,
VALS(ubikdisk_opnum_vals), 0x0, "Operation", HFILL }}
};
static gint *ett[] = {
&ett_ubikdisk,
};
proto_ubikdisk = proto_register_protocol ("DCE/RPC FLDB UBIK TRANSFER", "UBIKDISK", "ubikdisk");
proto_register_field_array (proto_ubikdisk, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
}
void
proto_reg_handoff_ubikdisk (void)
{
/* Register the protocol as dcerpc */
dcerpc_init_uuid (proto_ubikdisk, ett_ubikdisk, &uuid_ubikdisk, ver_ubikdisk, ubikdisk_dissectors, hf_ubikdisk_opnum);
}