From 8ee212b535b0459626619d7de8e0ef3900ff03a7 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sun, 24 Sep 2006 11:10:31 +0000 Subject: [PATCH] print the connectionless interface name if such is known svn path=/trunk/; revision=19309 --- epan/dissectors/packet-dcerpc.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c index cefde5570a..a651a9e47a 100644 --- a/epan/dissectors/packet-dcerpc.c +++ b/epan/dissectors/packet-dcerpc.c @@ -4667,6 +4667,8 @@ dissect_dcerpc_dg (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) int offset = 0; conversation_t *conv; int auth_level; + char *uuid_str; + const char *uuid_name = NULL; /* * Check if this looks like a CL DCERPC call. All dg packets @@ -4827,9 +4829,15 @@ dissect_dcerpc_dg (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset += 16; if (tree) { - proto_tree_add_guid_format (dcerpc_tree, hf_dcerpc_dg_if_id, tvb, - offset, 16, (e_guid_t *) &hdr.if_id, "Interface: %s", - guid_to_str((e_guid_t *) &hdr.if_id)); + uuid_str = guid_to_str((e_guid_t*)&hdr.if_id); + uuid_name = guids_get_uuid_name(&hdr.if_id); + if(uuid_name) { + proto_tree_add_guid_format (dcerpc_tree, hf_dcerpc_dg_if_id, tvb, + offset, 16, (e_guid_t *) &hdr.if_id, "Interface: %s UUID: %s", uuid_name, uuid_str); + } else { + proto_tree_add_guid_format (dcerpc_tree, hf_dcerpc_dg_if_id, tvb, + offset, 16, (e_guid_t *) &hdr.if_id, "Interface UUID: %s", uuid_str); + } } offset += 16;