summaryrefslogtreecommitdiff
path: root/plugins/opcua/opcua_serviceparser.c
diff options
context:
space:
mode:
authorHannes Mezger <hannes.mezger@ascolab.com>2014-06-10 12:27:34 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-06-11 12:59:08 +0000
commitbaa58887886c6bbe24f2894e40a4c0e1bccd5314 (patch)
tree2ff324bc0d6882018989158ad219c08706274df1 /plugins/opcua/opcua_serviceparser.c
parentfabee432def958af4a102eca6bfe935ec80836f6 (diff)
downloadwireshark-baa58887886c6bbe24f2894e40a4c0e1bccd5314.tar.gz
Move ServiceFault from ComplexType- to ServiceParser
ServiceFaults are always sent as a service response and never as value, this moves the parsing code to the correct location. Change-Id: Ida9cb561aa40fcbfc3c0429aed732d108b295138 Reviewed-on: https://code.wireshark.org/review/2124 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'plugins/opcua/opcua_serviceparser.c')
-rw-r--r--plugins/opcua/opcua_serviceparser.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/opcua/opcua_serviceparser.c b/plugins/opcua/opcua_serviceparser.c
index 16f20b0555..08c3880fe5 100644
--- a/plugins/opcua/opcua_serviceparser.c
+++ b/plugins/opcua/opcua_serviceparser.c
@@ -29,6 +29,15 @@
#include "opcua_hfindeces.h"
#include "opcua_serviceparser.h"
+gint ett_opcua_ServiceFault = -1;
+void parseServiceFault(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
+{
+ proto_item *ti = proto_tree_add_text(tree, tvb, *pOffset, -1, "ServiceFault");
+ proto_tree *subtree = proto_item_add_subtree(ti, ett_opcua_ServiceFault);
+
+ parseResponseHeader(subtree, tvb, pOffset, "ResponseHeader");
+ proto_item_set_end(ti, tvb, *pOffset);
+}
gint ett_opcua_FindServersRequest = -1;
void parseFindServersRequest(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
{
@@ -1003,6 +1012,7 @@ void parseTestStackExResponse(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
/** Setup protocol subtree array */
static gint *ett[] =
{
+ &ett_opcua_ServiceFault,
&ett_opcua_FindServersRequest,
&ett_opcua_FindServersResponse,
&ett_opcua_GetEndpointsRequest,