diff options
author | Hannes Mezger <hannes.mezger@ascolab.com> | 2014-10-16 19:06:31 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-10-17 14:51:40 +0000 |
commit | e5bbfa0f1516c74b4fc81651be94405bcb4be0b9 (patch) | |
tree | e91369d5f861d65cce4bc8de965135225497559d /plugins/opcua/opcua_extensionobjecttable.c | |
parent | 0ceeddee17571fa99a4cb35625a8e3c2bdca97d2 (diff) |
Add argument 'packet_info *pinfo' to all dissecting functions
Change-Id: Ie02326e365ee3f620fcbe3f2e8e45dc5300d3418
Reviewed-on: https://code.wireshark.org/review/4728
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_extensionobjecttable.c')
-rw-r--r-- | plugins/opcua/opcua_extensionobjecttable.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/opcua/opcua_extensionobjecttable.c b/plugins/opcua/opcua_extensionobjecttable.c index cc4067c7a5..9ca5960b62 100644 --- a/plugins/opcua/opcua_extensionobjecttable.c +++ b/plugins/opcua/opcua_extensionobjecttable.c @@ -14,7 +14,7 @@ ** ** Description: Service table and service dispatcher. ** -** This file was autogenerated on 10.06.2014. +** This file was autogenerated on 16.10.2014. ** DON'T MODIFY THIS FILE! ** XXX - well, except that you may have to. See the README. ** @@ -170,7 +170,7 @@ ExtensionObjectParserEntry g_arExtensionObjectParserTable[] = { const int g_NumTypes = sizeof(g_arExtensionObjectParserTable) / sizeof(ExtensionObjectParserEntry); /** Dispatch all extension objects to a special parser function. */ -void dispatchExtensionObjectType(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int TypeId) +void dispatchExtensionObjectType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int TypeId) { gint iOffset = *pOffset; int indx = 0; @@ -186,7 +186,7 @@ void dispatchExtensionObjectType(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, if (g_arExtensionObjectParserTable[indx].iRequestId == TypeId) { bFound = 1; - (*g_arExtensionObjectParserTable[indx].pParser)(tree, tvb, &iOffset, g_arExtensionObjectParserTable[indx].typeName); + (*g_arExtensionObjectParserTable[indx].pParser)(tree, tvb, pinfo, &iOffset, g_arExtensionObjectParserTable[indx].typeName); break; } indx++; @@ -197,7 +197,7 @@ void dispatchExtensionObjectType(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, { if (iLen == -1) { - proto_tree_add_bytes_format(tree, hf_opcua_ByteString, tvb, *pOffset, 4, NULL, "[OpcUa Null ByteString]"); + proto_tree_add_text(tree, tvb, *pOffset, 4, "[OpcUa Null ByteString]"); } else if (iLen >= 0) { @@ -206,7 +206,8 @@ void dispatchExtensionObjectType(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, } else { - proto_tree_add_bytes_format(tree, hf_opcua_ByteString, tvb, *pOffset, 4, NULL, "[Invalid ByteString] Invalid length: %d", iLen); + char *szValue = wmem_strdup_printf(wmem_packet_scope(), "[Invalid ByteString] Invalid length: %d", iLen); + proto_tree_add_text(tree, tvb, *pOffset, 4, "%s", szValue); } } |