diff options
author | Hannes Mezger <hannes.mezger@ascolab.com> | 2015-10-27 14:36:10 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-10-27 17:47:26 +0000 |
commit | e1ed17f9271eb9932c5980d7ced23e6eca13c691 (patch) | |
tree | b8e86670f8a06e6680a37ee8a42b8488530f2be6 /plugins/opcua/opcua_complextypeparser.c | |
parent | b86e2a360968dc819f5e7cf96b6f470428b31632 (diff) |
opcua: display string representation of AttributeId and DeadbandType
Change-Id: I41f100ddab544054f8fab89f3f5da61866db7a2d
Reviewed-on: https://code.wireshark.org/review/11309
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins/opcua/opcua_complextypeparser.c')
-rw-r--r-- | plugins/opcua/opcua_complextypeparser.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/opcua/opcua_complextypeparser.c b/plugins/opcua/opcua_complextypeparser.c index e29197b5a4..c1b0814b71 100644 --- a/plugins/opcua/opcua_complextypeparser.c +++ b/plugins/opcua/opcua_complextypeparser.c @@ -1049,7 +1049,7 @@ void parseQueryDataDescription(proto_tree *tree, tvbuff_t *tvb, packet_info *pin proto_item *ti; proto_tree *subtree = proto_tree_add_subtree_format(tree, tvb, *pOffset, -1, ett_opcua_QueryDataDescription, &ti, "%s: QueryDataDescription", szFieldName); parseRelativePath(subtree, tvb, pinfo, pOffset, "RelativePath"); - parseUInt32(subtree, tvb, pinfo, pOffset, hf_opcua_AttributeId); + parseAttributeId(subtree, tvb, pinfo, pOffset); parseString(subtree, tvb, pinfo, pOffset, hf_opcua_IndexRange); proto_item_set_end(ti, tvb, *pOffset); } @@ -1122,7 +1122,7 @@ void parseAttributeOperand(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, parseNodeId(subtree, tvb, pinfo, pOffset, "NodeId"); parseString(subtree, tvb, pinfo, pOffset, hf_opcua_Alias); parseRelativePath(subtree, tvb, pinfo, pOffset, "BrowsePath"); - parseUInt32(subtree, tvb, pinfo, pOffset, hf_opcua_AttributeId); + parseAttributeId(subtree, tvb, pinfo, pOffset); parseString(subtree, tvb, pinfo, pOffset, hf_opcua_IndexRange); proto_item_set_end(ti, tvb, *pOffset); } @@ -1133,7 +1133,7 @@ void parseSimpleAttributeOperand(proto_tree *tree, tvbuff_t *tvb, packet_info *p parseNodeId(subtree, tvb, pinfo, pOffset, "TypeDefinitionId"); /* Array length field ignored: NoOfBrowsePath */ parseArrayComplex(subtree, tvb, pinfo, pOffset, "BrowsePath", "QualifiedName", parseQualifiedName, ett_opcua_array_QualifiedName); - parseUInt32(subtree, tvb, pinfo, pOffset, hf_opcua_AttributeId); + parseAttributeId(subtree, tvb, pinfo, pOffset); parseString(subtree, tvb, pinfo, pOffset, hf_opcua_IndexRange); proto_item_set_end(ti, tvb, *pOffset); } @@ -1174,7 +1174,7 @@ void parseReadValueId(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint proto_item *ti; proto_tree *subtree = proto_tree_add_subtree_format(tree, tvb, *pOffset, -1, ett_opcua_ReadValueId, &ti, "%s: ReadValueId", szFieldName); parseNodeId(subtree, tvb, pinfo, pOffset, "NodeId"); - parseUInt32(subtree, tvb, pinfo, pOffset, hf_opcua_AttributeId); + parseAttributeId(subtree, tvb, pinfo, pOffset); parseString(subtree, tvb, pinfo, pOffset, hf_opcua_IndexRange); parseQualifiedName(subtree, tvb, pinfo, pOffset, "DataEncoding"); proto_item_set_end(ti, tvb, *pOffset); @@ -1280,7 +1280,7 @@ void parseWriteValue(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint * proto_item *ti; proto_tree *subtree = proto_tree_add_subtree_format(tree, tvb, *pOffset, -1, ett_opcua_WriteValue, &ti, "%s: WriteValue", szFieldName); parseNodeId(subtree, tvb, pinfo, pOffset, "NodeId"); - parseUInt32(subtree, tvb, pinfo, pOffset, hf_opcua_AttributeId); + parseAttributeId(subtree, tvb, pinfo, pOffset); parseString(subtree, tvb, pinfo, pOffset, hf_opcua_IndexRange); parseDataValue(subtree, tvb, pinfo, pOffset, "Value"); proto_item_set_end(ti, tvb, *pOffset); @@ -1390,7 +1390,7 @@ void parseDataChangeFilter(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, proto_item *ti; proto_tree *subtree = proto_tree_add_subtree_format(tree, tvb, *pOffset, -1, ett_opcua_DataChangeFilter, &ti, "%s: DataChangeFilter", szFieldName); parseDataChangeTrigger(subtree, tvb, pinfo, pOffset); - parseUInt32(subtree, tvb, pinfo, pOffset, hf_opcua_DeadbandType); + parseDeadbandType(subtree, tvb, pinfo, pOffset); parseDouble(subtree, tvb, pinfo, pOffset, hf_opcua_DeadbandValue); proto_item_set_end(ti, tvb, *pOffset); } |