Ethereal-dev: [Ethereal-dev] [packet-dcerpc-wkssvc.c] wkssvc 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 <jbm@xxxxxx>
Date: Sat, 27 Sep 2003 22:57:51 +0200
Hello,

attached patches add the names of operations in the wkssvc (workstation
service) MSRPC interface to the packet-dcerpc-wkssvc.c dissector.

Jean-Baptiste Marchand
-- 
Jean-Baptiste.Marchand@xxxxxx
HSC - http://www.hsc.fr/
Index: packet-dcerpc-wkssvc.c
===================================================================
RCS file: /cvsroot/ethereal/packet-dcerpc-wkssvc.c,v
retrieving revision 1.27
diff -u -r1.27 packet-dcerpc-wkssvc.c
--- packet-dcerpc-wkssvc.c	4 Aug 2003 02:48:59 -0000	1.27
+++ packet-dcerpc-wkssvc.c	27 Sep 2003 20:52:04 -0000
@@ -1023,24 +1023,52 @@
 }
 
 static dcerpc_sub_dissector dcerpc_wkssvc_dissectors[] = {
-        { WKS_NetWkstaGetInfo, "NetWkstaGetInfo", 
+        { WKS_NETRWKSTAGETINFO, "NetrWkstaGetInfo", 
 	  wkssvc_dissect_netwkstagetinfo_rqst, 
 	  wkssvc_dissect_netwkstagetinfo_reply},
-	{ WKS_NetWkstaSetInfo, "NetWkstaSetInfo",
+	{ WKS_NETRWKSTASETINFO, "NetrWkstaSetInfo",
 	  wkssvc_dissect_netwkstasetinfo_rqst,
 	  wkssvc_dissect_netwkstasetinfo_reply},
-        { WKS_NetWkstaEnumUsers, "NetWkstaUserEnum",
+        { WKS_NETRWKSTAUSERENUM, "NetrWkstaUserEnum",
 	  wkssvc_dissect_netwkstaenumusers_rqst,
  	  wkssvc_dissect_netwkstaenumusers_reply},
-	{ WKS_NetWkstaUnkn_003, "NetWkstaUnknown_003",
-	  NULL,
-	  NULL,},
-	{ WKS_NetWkstaUnkn_004, "NetWkstaUnknown_004",
-	  NULL,
-	  NULL},
-	{ WKS_NetWkstaTransportEnum, "NetWkstaTransportEnum",
+	{ WKS_NETRWKSTAUSERGETINFO, "NetrWkstaUserGetInfo", NULL, NULL },
+	{ WKS_NETRWKSTAUSERSETINFO, "NetrWkstaUserSetInfo", NULL, NULL },
+	{ WKS_NETRWKSTATRANSPORTENUM, "NetrWkstaTransportEnum",
 	  wkssvc_dissect_netwkstatransportenum_rqst, 
 	  wkssvc_dissect_netwkstatransportenum_reply},
+	{ WKS_NETRWKSTATRANSPORTADD, "NetrWkstaTransportAdd", NULL, NULL },
+	{ WKS_NETRWKSTATRANSPORTDEL, "NetrWkstaTransportDel", NULL, NULL },
+	{ WKS_NETRUSEADD, "NetrUseAdd", NULL, NULL },
+	{ WKS_NETRUSEGETINFO, "NetrUseGetInfo", NULL, NULL },
+	{ WKS_NETRUSEDEL, "NetrUseDel", NULL, NULL },
+	{ WKS_NETRUSEENUM, "NetrUseEnum", NULL, NULL },
+	{ WKS_NETRMESSAGEBUFFERSEND, "NetrMessageBufferSend", NULL, NULL },
+	{ WKS_NETRWORKSTATIONSTATISTICSGET, "NetrWorkstationStatisticsGet", 
+	  NULL, NULL },
+	{ WKS_NETRLOGONDOMAINNAMEADD, "NetrLogonDomainNameAdd", NULL, NULL },
+	{ WKS_NETRLOGONDOMAINNAMEDEL, "NetrLogonDomainNameDel", NULL, NULL },
+	{ WKS_NETRJOINDOMAIN, "NetrJoinDomain", NULL, NULL },
+	{ WKS_NETRUNJOINDOMAIN, "NetrUnjoinDomain", NULL, NULL },
+	{ WKS_NETRRENAMEMACHINEINDOMAIN, "NetrRenameMachineInDomain", 
+	  NULL, NULL },
+	{ WKS_NETRVALIDATENAME, "NetrValidateName", NULL, NULL },
+	{ WKS_NETRGETJOININFORMATION, "NetrGetJoinInformation", NULL, NULL },
+	{ WKS_NETRGETJOINABLEOUS, "NetrGetJoinableOUs", NULL, NULL },
+	{ WKS_NETRJOINDOMAIN2, "NetrJoinDomain2", NULL, NULL },
+	{ WKS_NETRUNJOINDOMAIN2, "NetrUnjoinDomain2", NULL, NULL },
+	{ WKS_NETRRENAMEMACHINEINDOMAIN2, "NetrRenameMachineInDomain2", 
+	  NULL, NULL },
+	{ WKS_NETRVALIDATENAME2, "NetrValidateName2", NULL, NULL },
+	{ WKS_NETRGETJOINABLEOUS2, "NetrGetJoinableOUs2", NULL, NULL },
+	{ WKS_NETRADDALTERNATECOMPUTERNAME, "NetrAddAlternateComputerName", 
+	  NULL, NULL },
+	{ WKS_NETRREMOVEALTERNATECOMPUTERNAME,
+	  "NetrRemoveAlternateComputerName", NULL, NULL },
+ 	{ WKS_NETRSETPRIMARYCOMPUTERNAME, "NetrSetPrimaryComputerName", 
+	  NULL, NULL },
+	{ WKS_NETRENUMERATECOMPUTERNAMES, "NetrEnumerateComputerNames", 
+	  NULL, NULL },
         {0, NULL, NULL,  NULL }
 };
 
Index: packet-dcerpc-wkssvc.h
===================================================================
RCS file: /cvsroot/ethereal/packet-dcerpc-wkssvc.h,v
retrieving revision 1.7
diff -u -r1.7 packet-dcerpc-wkssvc.h
--- packet-dcerpc-wkssvc.h	1 May 2003 17:53:22 -0000	1.7
+++ packet-dcerpc-wkssvc.h	27 Sep 2003 20:54:20 -0000
@@ -29,10 +29,38 @@
 
 /* Functions available on the WKSSVC pipe.  From Samba, include/rpc_wkssvc.h */
 
-#define WKS_NetWkstaGetInfo       0x00
-#define WKS_NetWkstaSetInfo       0x01
-#define WKS_NetWkstaEnumUsers     0x02
-#define WKS_NetWkstaUnkn_003      0x03
-#define WKS_NetWkstaUnkn_004      0x04
-#define WKS_NetWkstaTransportEnum 0x05
+#define WKS_NETRWKSTAGETINFO    		0x00
+#define WKS_NETRWKSTASETINFO       		0x01
+#define WKS_NETRWKSTAUSERENUM     		0x02
+#define WKS_NETRWKSTAUSERGETINFO		0x03
+#define WKS_NETRWKSTAUSERSETINFO		0x04
+#define WKS_NETRWKSTATRANSPORTENUM 		0x05
+#define WKS_NETRWKSTATRANSPORTADD		0x06
+#define WKS_NETRWKSTATRANSPORTDEL		0x07
+#define WKS_NETRUSEADD				0x08
+#define WKS_NETRUSEGETINFO			0x09
+#define WKS_NETRUSEDEL				0x0a
+#define WKS_NETRUSEENUM 			0x0b
+#define WKS_NETRMESSAGEBUFFERSEND		0x0c
+#define WKS_NETRWORKSTATIONSTATISTICSGET 	0x0d
+#define WKS_NETRLOGONDOMAINNAMEADD		0x0e
+#define WKS_NETRLOGONDOMAINNAMEDEL		0x0f
+#define WKS_NETRJOINDOMAIN			0x10
+#define WKS_NETRUNJOINDOMAIN			0x11
+#define WKS_NETRRENAMEMACHINEINDOMAIN		0x12
+#define WKS_NETRVALIDATENAME			0x13
+#define WKS_NETRGETJOININFORMATION		0x14
+#define WKS_NETRGETJOINABLEOUS			0x15
+#define WKS_NETRJOINDOMAIN2			0x16
+#define WKS_NETRUNJOINDOMAIN2			0x17
+#define WKS_NETRRENAMEMACHINEINDOMAIN2		0x18
+#define WKS_NETRVALIDATENAME2			0x19
+#define WKS_NETRGETJOINABLEOUS2 		0x1a
+#define WKS_NETRADDALTERNATECOMPUTERNAME 	0x1b
+#define WKS_NETRREMOVEALTERNATECOMPUTERNAME 	0x1c
+#define WKS_NETRSETPRIMARYCOMPUTERNAME		0x1d
+#define WKS_NETRENUMERATECOMPUTERNAMES		0x1e
+
+
+
 #endif /* packet-dcerpc-wkssvc.h */