Ethereal-dev: [Ethereal-dev] Patch to packet-dcerpc.c - resolve interfaces with Win32 registry

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

From: Yaniv Kaul <ykaul@xxxxxxxxxxxx>
Date: Wed, 19 May 2004 09:01:08 +0200
There's another place in the code where this resolving can be useful. I've added the resolving to it.

--- packet-dcerpc.c	2004-05-18 23:07:42.000000000 +0200
+++ packet-dcerpc.ynv.c	2004-05-18 17:39:14.000000000 +0200
@@ -1808,6 +1808,9 @@
     tvbuff_t *volatile stub_tvb;
     volatile guint auth_pad_len;
     volatile int auth_pad_offset;
+#ifdef WIN32
+    char UUID_NAME[MAX_PATH];
+#endif
 
     key.uuid = info->call_data->uuid;
     key.ver = info->call_data->ver;
@@ -1823,6 +1826,15 @@
 	proto_tree_add_boolean_hidden(dcerpc_tree, hf_dcerpc_unknown_if_id,
 					  tvb, offset, 0, TRUE);
 	if (check_col (pinfo->cinfo, COL_INFO)) {
+#ifdef WIN32
+		if(ResolveWin32UUID(info->call_data->uuid, UUID_NAME, MAX_PATH))
+			col_append_fstr (pinfo->cinfo, COL_INFO, " [%s] UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x rpcver: %u",
+				UUID_NAME, info->call_data->uuid.Data1, info->call_data->uuid.Data2, info->call_data->uuid.Data3, info->call_data->uuid.Data4[0],
+				info->call_data->uuid.Data4[1], info->call_data->uuid.Data4[2], info->call_data->uuid.Data4[3],
+				info->call_data->uuid.Data4[4], info->call_data->uuid.Data4[5], info->call_data->uuid.Data4[6],
+				info->call_data->uuid.Data4[7], info->call_data->ver);
+else
+#endif
 		col_append_fstr (pinfo->cinfo, COL_INFO, " UNKUUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x rpcver: %u",
 			info->call_data->uuid.Data1, info->call_data->uuid.Data2, info->call_data->uuid.Data3, info->call_data->uuid.Data4[0],
 			info->call_data->uuid.Data4[1], info->call_data->uuid.Data4[2], info->call_data->uuid.Data4[3],