summaryrefslogtreecommitdiffstats
path: root/plugins/epan/opcua/opcua_enumparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/epan/opcua/opcua_enumparser.c')
-rw-r--r--plugins/epan/opcua/opcua_enumparser.c170
1 files changed, 85 insertions, 85 deletions
diff --git a/plugins/epan/opcua/opcua_enumparser.c b/plugins/epan/opcua/opcua_enumparser.c
index 0a93376e..37eb1a28 100644
--- a/plugins/epan/opcua/opcua_enumparser.c
+++ b/plugins/epan/opcua/opcua_enumparser.c
@@ -22,34 +22,34 @@
#include "opcua_enumparser.h"
-gint ett_opcua_array_NodeIdType = -1;
-gint ett_opcua_array_NamingRuleType = -1;
-gint ett_opcua_array_OpenFileMode = -1;
-gint ett_opcua_array_TrustListMasks = -1;
-gint ett_opcua_array_IdType = -1;
-gint ett_opcua_array_NodeClass = -1;
-gint ett_opcua_array_ApplicationType = -1;
-gint ett_opcua_array_MessageSecurityMode = -1;
-gint ett_opcua_array_UserTokenType = -1;
-gint ett_opcua_array_SecurityTokenRequestType = -1;
-gint ett_opcua_array_NodeAttributesMask = -1;
-gint ett_opcua_array_AttributeWriteMask = -1;
-gint ett_opcua_array_BrowseDirection = -1;
-gint ett_opcua_array_BrowseResultMask = -1;
-gint ett_opcua_array_ComplianceLevel = -1;
-gint ett_opcua_array_FilterOperator = -1;
-gint ett_opcua_array_TimestampsToReturn = -1;
-gint ett_opcua_array_HistoryUpdateType = -1;
-gint ett_opcua_array_PerformUpdateType = -1;
-gint ett_opcua_array_MonitoringMode = -1;
-gint ett_opcua_array_DataChangeTrigger = -1;
-gint ett_opcua_array_DeadbandType = -1;
-gint ett_opcua_array_EnumeratedTestType = -1;
-gint ett_opcua_array_RedundancySupport = -1;
-gint ett_opcua_array_ServerState = -1;
-gint ett_opcua_array_ModelChangeStructureVerbMask = -1;
-gint ett_opcua_array_AxisScaleEnumeration = -1;
-gint ett_opcua_array_ExceptionDeviationFormat = -1;
+int ett_opcua_array_NodeIdType;
+int ett_opcua_array_NamingRuleType;
+int ett_opcua_array_OpenFileMode;
+int ett_opcua_array_TrustListMasks;
+int ett_opcua_array_IdType;
+int ett_opcua_array_NodeClass;
+int ett_opcua_array_ApplicationType;
+int ett_opcua_array_MessageSecurityMode;
+int ett_opcua_array_UserTokenType;
+int ett_opcua_array_SecurityTokenRequestType;
+int ett_opcua_array_NodeAttributesMask;
+int ett_opcua_array_AttributeWriteMask;
+int ett_opcua_array_BrowseDirection;
+int ett_opcua_array_BrowseResultMask;
+int ett_opcua_array_ComplianceLevel;
+int ett_opcua_array_FilterOperator;
+int ett_opcua_array_TimestampsToReturn;
+int ett_opcua_array_HistoryUpdateType;
+int ett_opcua_array_PerformUpdateType;
+int ett_opcua_array_MonitoringMode;
+int ett_opcua_array_DataChangeTrigger;
+int ett_opcua_array_DeadbandType;
+int ett_opcua_array_EnumeratedTestType;
+int ett_opcua_array_RedundancySupport;
+int ett_opcua_array_ServerState;
+int ett_opcua_array_ModelChangeStructureVerbMask;
+int ett_opcua_array_AxisScaleEnumeration;
+int ett_opcua_array_ExceptionDeviationFormat;
/** NodeIdType enum table */
static const value_string g_NodeIdTypeTable[] = {
@@ -61,9 +61,9 @@ static const value_string g_NodeIdTypeTable[] = {
{ 5, "ByteString" },
{ 0, NULL }
};
-static int hf_opcua_NodeIdType = -1;
+static int hf_opcua_NodeIdType;
-void parseNodeIdType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseNodeIdType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_NodeIdType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -74,9 +74,9 @@ static const value_string g_NamingRuleTypeTable[] = {
{ 3, "Constraint" },
{ 0, NULL }
};
-static int hf_opcua_NamingRuleType = -1;
+static int hf_opcua_NamingRuleType;
-void parseNamingRuleType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseNamingRuleType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_NamingRuleType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -88,9 +88,9 @@ static const value_string g_OpenFileModeTable[] = {
{ 8, "Append" },
{ 0, NULL }
};
-static int hf_opcua_OpenFileMode = -1;
+static int hf_opcua_OpenFileMode;
-void parseOpenFileMode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseOpenFileMode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_OpenFileMode, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -104,9 +104,9 @@ static const value_string g_TrustListMasksTable[] = {
{ 15, "All" },
{ 0, NULL }
};
-static int hf_opcua_TrustListMasks = -1;
+static int hf_opcua_TrustListMasks;
-void parseTrustListMasks(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseTrustListMasks(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_TrustListMasks, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -118,9 +118,9 @@ static const value_string g_IdTypeTable[] = {
{ 3, "Opaque" },
{ 0, NULL }
};
-static int hf_opcua_IdType = -1;
+static int hf_opcua_IdType;
-void parseIdType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseIdType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_IdType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -137,9 +137,9 @@ static const value_string g_NodeClassTable[] = {
{ 128, "View" },
{ 0, NULL }
};
-static int hf_opcua_NodeClass = -1;
+static int hf_opcua_NodeClass;
-void parseNodeClass(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseNodeClass(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_NodeClass, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -151,9 +151,9 @@ static const value_string g_ApplicationTypeTable[] = {
{ 3, "DiscoveryServer" },
{ 0, NULL }
};
-static int hf_opcua_ApplicationType = -1;
+static int hf_opcua_ApplicationType;
-void parseApplicationType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseApplicationType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_ApplicationType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -165,9 +165,9 @@ static const value_string g_MessageSecurityModeTable[] = {
{ 3, "SignAndEncrypt" },
{ 0, NULL }
};
-static int hf_opcua_MessageSecurityMode = -1;
+static int hf_opcua_MessageSecurityMode;
-void parseMessageSecurityMode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseMessageSecurityMode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_MessageSecurityMode, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -180,9 +180,9 @@ static const value_string g_UserTokenTypeTable[] = {
{ 4, "Kerberos" },
{ 0, NULL }
};
-static int hf_opcua_UserTokenType = -1;
+static int hf_opcua_UserTokenType;
-void parseUserTokenType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseUserTokenType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_UserTokenType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -192,9 +192,9 @@ static const value_string g_SecurityTokenRequestTypeTable[] = {
{ 1, "Renew" },
{ 0, NULL }
};
-static int hf_opcua_SecurityTokenRequestType = -1;
+static int hf_opcua_SecurityTokenRequestType;
-void parseSecurityTokenRequestType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseSecurityTokenRequestType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_SecurityTokenRequestType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -234,9 +234,9 @@ static const value_string g_NodeAttributesMaskTable[] = {
{ 1335532, "View" },
{ 0, NULL }
};
-static int hf_opcua_NodeAttributesMask = -1;
+static int hf_opcua_NodeAttributesMask;
-void parseNodeAttributesMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseNodeAttributesMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_NodeAttributesMask, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -271,9 +271,9 @@ static const value_string g_AttributeWriteMaskTable[] = {
{ 33554432, "AccessLevelEx" },
{ 0, NULL }
};
-static int hf_opcua_AttributeWriteMask = -1;
+static int hf_opcua_AttributeWriteMask;
-void parseAttributeWriteMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseAttributeWriteMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_AttributeWriteMask, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -285,9 +285,9 @@ static const value_string g_BrowseDirectionTable[] = {
{ 3, "Invalid" },
{ 0, NULL }
};
-static int hf_opcua_BrowseDirection = -1;
+static int hf_opcua_BrowseDirection;
-void parseBrowseDirection(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseBrowseDirection(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_BrowseDirection, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -300,9 +300,9 @@ static const value_string g_ComplianceLevelTable[] = {
{ 3, "Certified" },
{ 0, NULL }
};
-static int hf_opcua_ComplianceLevel = -1;
+static int hf_opcua_ComplianceLevel;
-void parseComplianceLevel(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseComplianceLevel(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_ComplianceLevel, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -328,9 +328,9 @@ static const value_string g_FilterOperatorTable[] = {
{ 17, "BitwiseOr" },
{ 0, NULL }
};
-static int hf_opcua_FilterOperator = -1;
+static int hf_opcua_FilterOperator;
-void parseFilterOperator(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseFilterOperator(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_FilterOperator, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -343,9 +343,9 @@ static const value_string g_TimestampsToReturnTable[] = {
{ 4, "Invalid" },
{ 0, NULL }
};
-static int hf_opcua_TimestampsToReturn = -1;
+static int hf_opcua_TimestampsToReturn;
-void parseTimestampsToReturn(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseTimestampsToReturn(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_TimestampsToReturn, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -357,9 +357,9 @@ static const value_string g_HistoryUpdateTypeTable[] = {
{ 4, "Delete" },
{ 0, NULL }
};
-static int hf_opcua_HistoryUpdateType = -1;
+static int hf_opcua_HistoryUpdateType;
-void parseHistoryUpdateType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseHistoryUpdateType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_HistoryUpdateType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -371,9 +371,9 @@ static const value_string g_PerformUpdateTypeTable[] = {
{ 4, "Remove" },
{ 0, NULL }
};
-static int hf_opcua_PerformUpdateType = -1;
+static int hf_opcua_PerformUpdateType;
-void parsePerformUpdateType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parsePerformUpdateType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_PerformUpdateType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -384,9 +384,9 @@ static const value_string g_MonitoringModeTable[] = {
{ 2, "Reporting" },
{ 0, NULL }
};
-static int hf_opcua_MonitoringMode = -1;
+static int hf_opcua_MonitoringMode;
-void parseMonitoringMode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseMonitoringMode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_MonitoringMode, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -397,9 +397,9 @@ static const value_string g_DataChangeTriggerTable[] = {
{ 2, "StatusValueTimestamp" },
{ 0, NULL }
};
-static int hf_opcua_DataChangeTrigger = -1;
+static int hf_opcua_DataChangeTrigger;
-void parseDataChangeTrigger(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseDataChangeTrigger(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_DataChangeTrigger, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -410,9 +410,9 @@ static const value_string g_DeadbandTypeTable[] = {
{ 2, "Percent" },
{ 0, NULL }
};
-static int hf_opcua_DeadbandType = -1;
+static int hf_opcua_DeadbandType;
-void parseDeadbandType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseDeadbandType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_DeadbandType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -423,9 +423,9 @@ static const value_string g_EnumeratedTestTypeTable[] = {
{ 5, "Green" },
{ 0, NULL }
};
-static int hf_opcua_EnumeratedTestType = -1;
+static int hf_opcua_EnumeratedTestType;
-void parseEnumeratedTestType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseEnumeratedTestType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_EnumeratedTestType, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -439,9 +439,9 @@ static const value_string g_RedundancySupportTable[] = {
{ 5, "HotAndMirrored" },
{ 0, NULL }
};
-static int hf_opcua_RedundancySupport = -1;
+static int hf_opcua_RedundancySupport;
-void parseRedundancySupport(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseRedundancySupport(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_RedundancySupport, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -457,9 +457,9 @@ static const value_string g_ServerStateTable[] = {
{ 7, "Unknown" },
{ 0, NULL }
};
-static int hf_opcua_ServerState = -1;
+static int hf_opcua_ServerState;
-void parseServerState(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseServerState(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_ServerState, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -472,9 +472,9 @@ static const value_string g_ModelChangeStructureVerbMaskTable[] = {
{ 16, "DataTypeChanged" },
{ 0, NULL }
};
-static int hf_opcua_ModelChangeStructureVerbMask = -1;
+static int hf_opcua_ModelChangeStructureVerbMask;
-void parseModelChangeStructureVerbMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseModelChangeStructureVerbMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_ModelChangeStructureVerbMask, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -485,9 +485,9 @@ static const value_string g_AxisScaleEnumerationTable[] = {
{ 2, "Ln" },
{ 0, NULL }
};
-static int hf_opcua_AxisScaleEnumeration = -1;
+static int hf_opcua_AxisScaleEnumeration;
-void parseAxisScaleEnumeration(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseAxisScaleEnumeration(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_AxisScaleEnumeration, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -500,9 +500,9 @@ static const value_string g_ExceptionDeviationFormatTable[] = {
{ 4, "Unknown" },
{ 0, NULL }
};
-static int hf_opcua_ExceptionDeviationFormat = -1;
+static int hf_opcua_ExceptionDeviationFormat;
-void parseExceptionDeviationFormat(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseExceptionDeviationFormat(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_ExceptionDeviationFormat, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
}
@@ -537,15 +537,15 @@ static const value_string g_AttributeIdTable[] = {
{27, "AccessLevelEx"},
{0, NULL}
};
-static int hf_opcua_AttributeId = -1;
+static int hf_opcua_AttributeId;
-void parseAttributeId(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, gint *pOffset)
+void parseAttributeId(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, int *pOffset)
{
proto_tree_add_item(tree, hf_opcua_AttributeId, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset += 4;
}
/** Setup enum subtree array */
-static gint *ett[] =
+static int *ett[] =
{
&ett_opcua_array_NodeIdType,
&ett_opcua_array_NamingRuleType,