forked from osmocom/wireshark
Opcua: Fix display of GUIDs
GUIDs of the OPC UA protocol are always encoded in little endian format. Using the default RFC4122 decoder assumes big endian and results in displaying wrong values. Change-Id: I0c2f60ca2f1c0ae118e8388ec58291dc0d1222b9 Reviewed-on: https://code.wireshark.org/review/34790 Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
This commit is contained in:
parent
07358f7012
commit
df1c73d68f
|
@ -725,7 +725,7 @@ void parseLocalizedText(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gin
|
|||
|
||||
proto_item* parseGuid(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset, int hfIndex)
|
||||
{
|
||||
proto_item *item = proto_tree_add_item(tree, hfIndex, tvb, *pOffset, GUID_LEN, ENC_NA);
|
||||
proto_item *item = proto_tree_add_item(tree, hfIndex, tvb, *pOffset, GUID_LEN, ENC_LITTLE_ENDIAN);
|
||||
*pOffset+=GUID_LEN;
|
||||
return item;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue