Ethereal-dev: [Ethereal-dev] [packet-dcerpc-dfs.c] Operations names

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jean-Baptiste Marchand <Jean-Baptiste.Marchand@xxxxxx>
Date: Thu, 2 Oct 2003 14:54:17 +0200
Hello,

attached patches add missing operations names for the dfssvc MSRPC
interface.

Jean-Baptiste
-- 
Jean-Baptiste.Marchand@xxxxxx
HSC - http://www.hsc.fr/
Index: packet-dcerpc-dfs.h
===================================================================
RCS file: /cvsroot/ethereal/packet-dcerpc-dfs.h,v
retrieving revision 1.4
diff -u -r1.4 packet-dcerpc-dfs.h
--- packet-dcerpc-dfs.h	28 Aug 2002 21:00:09 -0000	1.4
+++ packet-dcerpc-dfs.h	2 Oct 2003 12:51:04 -0000
@@ -28,10 +28,28 @@
 
 /* Functions available on the NETDFS pipe.  From Samba, include/rpc_dfs.h */
 
-#define DFS_EXIST                0x00
-#define DFS_ADD                  0x01
-#define DFS_REMOVE               0x02
-#define DFS_GET_INFO             0x04
-#define DFS_ENUM                 0x05
+#define DFS_MANAGER_GET_VERSION 	0x00
+#define DFS_ADD 			0x01
+#define DFS_REMOVE 			0x02
+#define DFS_SET_INFO			0x03
+#define DFS_GET_INFO 			0x04
+#define DFS_ENUM			0x05
+#define DFS_RENAME			0x06
+#define DFS_MOVE			0x07
+#define DFS_MANAGER_GET_CONFIG_INFO	0x08 
+#define DFS_MANAGER_SEND_SITE_INFO	0x09
+#define DFS_ADD_FT_ROOT			0x0a
+#define DFS_REMOVE_FT_ROOT		0x0b
+#define DFS_ADD_STD_ROOT		0x0c
+#define DFS_REMOVE_STD_ROOT		0x0d
+#define DFS_MANAGER_INITIALIZE		0x0e
+#define DFS_ADD_STD_ROOT_FORCED		0x0f
+#define DFS_GET_DC_ADDRESS		0x10
+#define DFS_SET_DC_ADDRESS		0x11
+#define DFS_FLUSH_FT_TABLE		0x12
+#define DFS_ADD2			0x13
+#define DFS_REMOVE2			0x14
+#define DFS_ENUM_EX			0x15
+#define DFS_SET_INFO_2			0x16
 
 #endif /* packet-dcerpc-dfs.h */
Index: packet-dcerpc-dfs.c
===================================================================
RCS file: /cvsroot/ethereal/packet-dcerpc-dfs.c,v
retrieving revision 1.7
diff -u -r1.7 packet-dcerpc-dfs.c
--- packet-dcerpc-dfs.c	4 Aug 2003 02:49:03 -0000	1.7
+++ packet-dcerpc-dfs.c	2 Oct 2003 12:50:58 -0000
@@ -45,12 +45,29 @@
 static guint16 ver_dcerpc_dfs = 3;
 
 static dcerpc_sub_dissector dcerpc_dfs_dissectors[] = {
-        { DFS_EXIST, "Exist", NULL, NULL },
-        { DFS_ADD, "Add", NULL, NULL },
-        { DFS_REMOVE, "Remove", NULL, NULL },
-        { DFS_GET_INFO, "GetInfo", NULL, NULL },
-        { DFS_ENUM, "Enum", NULL, NULL },
-
+        { DFS_MANAGER_GET_VERSION, "NetrDfsManagerGetVersion", NULL, NULL },
+        { DFS_ADD, "NetrDfsAdd", NULL, NULL },
+        { DFS_REMOVE, "NetrDfsRemove", NULL, NULL },
+	{ DFS_SET_INFO, "NetrDfsSetInfo", NULL, NULL },
+        { DFS_GET_INFO, "NetrDfsGetInfo", NULL, NULL },
+        { DFS_ENUM, "NetrDfsEnum", NULL, NULL },
+	{ DFS_RENAME, "NetrDfsRename", NULL, NULL },
+	{ DFS_MOVE, "NetrDfsMove", NULL, NULL },			
+	{ DFS_MANAGER_GET_CONFIG_INFO, "NetrDfsManagerGetConfigInfo", NULL, NULL },
+	{ DFS_MANAGER_SEND_SITE_INFO, "NetrDfsManagerSendSiteInfo", NULL, NULL },	
+	{ DFS_ADD_FT_ROOT, "NetrDfsAddFtRoot", NULL, NULL },		
+	{ DFS_REMOVE_FT_ROOT, "NetrDfsRemoveFtRoot", NULL, NULL },
+	{ DFS_ADD_STD_ROOT, "NetrDfsAddStdRoot", NULL, NULL },		
+	{ DFS_REMOVE_STD_ROOT, "NetrDfsRemoveStdRoot", NULL, NULL },	
+	{ DFS_MANAGER_INITIALIZE, "NetrDfsManagerInitialize", NULL, NULL },
+	{ DFS_ADD_STD_ROOT_FORCED, "NetrDfsAddStdRootForced", NULL, NULL },		
+	{ DFS_GET_DC_ADDRESS, "NetrDfsGetDcAddress", NULL, NULL },	
+	{ DFS_SET_DC_ADDRESS, "NetrDfsSetDcAddress", NULL, NULL },
+	{ DFS_FLUSH_FT_TABLE, "NetrDfsFlushFtTable", NULL, NULL },		
+	{ DFS_ADD2, "NetrDfsAdd2", NULL, NULL },		
+	{ DFS_REMOVE2, "NetrDfsRemove2", NULL, NULL },			
+	{ DFS_ENUM_EX, "NetrDfsEnumEx", NULL, NULL },		
+	{ DFS_SET_INFO_2, "NetrDfsSetInfo2 ", NULL, NULL },			
         {0, NULL, NULL,  NULL }
 };