forked from osmocom/wireshark
![Camille Guérin](/assets/img/avatar_default.png)
Display the details for the NodeClassMask and ResultMask values in a BrowseRequest's BrowseDescription. As described in OPC UA 1.03 Specification, the value 0 for the NodeClassMask and the value 63 (0x003F) for ResultMask should results in returning all the fields in the BrowseResponse. Display 'All' when those fields have those values Display a detailled bit tree mask when values are different Code Change: Added parseNodeClass and parseResultMask Use them in parseBrowseDescription instead of parseUInt32 Removed not needed anymore hf_opcua_NodeClassMask, hf_opcua_ResultMask and their related entries in registerFieldTypes Change-Id: Ic3ed8630825b5456f91156f06b2203ebfa422155 Reviewed-on: https://code.wireshark.org/review/21446 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
326 lines
12 KiB
C
326 lines
12 KiB
C
/******************************************************************************
|
|
** Copyright (C) 2006-2015 ascolab GmbH. All Rights Reserved.
|
|
** Web: http://www.ascolab.com
|
|
**
|
|
** This program is free software; you can redistribute it and/or
|
|
** modify it under the terms of the GNU General Public License
|
|
** as published by the Free Software Foundation; either version 2
|
|
** of the License, or (at your option) any later version.
|
|
**
|
|
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
**
|
|
** Project: OpcUa Wireshark Plugin
|
|
**
|
|
** Description: This file contains protocol field handles.
|
|
**
|
|
** This file was autogenerated on 13.10.2015.
|
|
** DON'T MODIFY THIS FILE!
|
|
** XXX - well, except that you may have to. See the README.
|
|
**
|
|
******************************************************************************/
|
|
|
|
#include <glib.h>
|
|
#include <epan/packet.h>
|
|
|
|
extern int hf_opcua_AccessLevel;
|
|
extern int hf_opcua_ActualSessionTimeout;
|
|
extern int hf_opcua_AddResults;
|
|
extern int hf_opcua_Algorithm;
|
|
extern int hf_opcua_Alias;
|
|
extern int hf_opcua_AnnotationTime;
|
|
extern int hf_opcua_ApplicationUri;
|
|
extern int hf_opcua_ArrayDimensions;
|
|
extern int hf_opcua_AuditEntryId;
|
|
extern int hf_opcua_AuthenticationMechanism;
|
|
extern int hf_opcua_AvailableSequenceNumbers;
|
|
extern int hf_opcua_AxisSteps;
|
|
extern int hf_opcua_Boolean;
|
|
extern int hf_opcua_Booleans;
|
|
extern int hf_opcua_BuildDate;
|
|
extern int hf_opcua_BuildNumber;
|
|
extern int hf_opcua_Byte;
|
|
extern int hf_opcua_ByteString;
|
|
extern int hf_opcua_ByteStrings;
|
|
extern int hf_opcua_CancelCount;
|
|
extern int hf_opcua_CertificateData;
|
|
extern int hf_opcua_ChannelId;
|
|
extern int hf_opcua_ChannelLifetime;
|
|
extern int hf_opcua_ClientCertificate;
|
|
extern int hf_opcua_ClientConnectionTime;
|
|
extern int hf_opcua_ClientHandle;
|
|
extern int hf_opcua_ClientLastContactTime;
|
|
extern int hf_opcua_ClientNonce;
|
|
extern int hf_opcua_ClientProtocolVersion;
|
|
extern int hf_opcua_ClientUserIdHistory;
|
|
extern int hf_opcua_ClientUserIdOfSession;
|
|
extern int hf_opcua_ComplianceDate;
|
|
extern int hf_opcua_ComplianceTool;
|
|
extern int hf_opcua_ConfigurationResults;
|
|
extern int hf_opcua_ContainsNoLoops;
|
|
extern int hf_opcua_ContinuationPoint;
|
|
extern int hf_opcua_ContinuationPoints;
|
|
extern int hf_opcua_CreateClientName;
|
|
extern int hf_opcua_CreatedAt;
|
|
extern int hf_opcua_CumulatedSessionCount;
|
|
extern int hf_opcua_CumulatedSubscriptionCount;
|
|
extern int hf_opcua_CurrentKeepAliveCount;
|
|
extern int hf_opcua_CurrentLifetimeCount;
|
|
extern int hf_opcua_CurrentMonitoredItemsCount;
|
|
extern int hf_opcua_CurrentPublishRequestsInQueue;
|
|
extern int hf_opcua_CurrentSessionCount;
|
|
extern int hf_opcua_CurrentSubscriptionCount;
|
|
extern int hf_opcua_CurrentSubscriptionsCount;
|
|
extern int hf_opcua_CurrentTime;
|
|
extern int hf_opcua_DataChangeNotificationsCount;
|
|
extern int hf_opcua_DataStatusCodes;
|
|
extern int hf_opcua_DateTime;
|
|
extern int hf_opcua_DateTimes;
|
|
extern int hf_opcua_DaylightSavingInOffset;
|
|
extern int hf_opcua_DeadbandType;
|
|
extern int hf_opcua_DeadbandValue;
|
|
extern int hf_opcua_DeleteBidirectional;
|
|
extern int hf_opcua_DeleteSubscriptions;
|
|
extern int hf_opcua_DeleteTargetReferences;
|
|
extern int hf_opcua_DisableCount;
|
|
extern int hf_opcua_DisabledMonitoredItemCount;
|
|
extern int hf_opcua_DiscardOldest;
|
|
extern int hf_opcua_DiscardedMessageCount;
|
|
extern int hf_opcua_DiscoveryProfileUri;
|
|
extern int hf_opcua_DiscoveryUrl;
|
|
extern int hf_opcua_DiscoveryUrls;
|
|
extern int hf_opcua_Double;
|
|
extern int hf_opcua_Doubles;
|
|
extern int hf_opcua_EnableCount;
|
|
extern int hf_opcua_Encoding;
|
|
extern int hf_opcua_EncryptionAlgorithm;
|
|
extern int hf_opcua_EndTime;
|
|
extern int hf_opcua_EndpointUrl;
|
|
extern int hf_opcua_EndpointUrlList;
|
|
extern int hf_opcua_ErrorCount;
|
|
extern int hf_opcua_EventIds;
|
|
extern int hf_opcua_EventNotificationsCount;
|
|
extern int hf_opcua_EventNotifier;
|
|
extern int hf_opcua_EventQueueOverFlowCount;
|
|
extern int hf_opcua_Executable;
|
|
extern int hf_opcua_Float;
|
|
extern int hf_opcua_Floats;
|
|
extern int hf_opcua_GatewayServerUri;
|
|
extern int hf_opcua_Guid;
|
|
extern int hf_opcua_Guids;
|
|
extern int hf_opcua_High;
|
|
extern int hf_opcua_Historizing;
|
|
extern int hf_opcua_Imaginary;
|
|
extern int hf_opcua_IncludeSubTypes;
|
|
extern int hf_opcua_IncludeSubtypes;
|
|
extern int hf_opcua_Index;
|
|
extern int hf_opcua_IndexRange;
|
|
extern int hf_opcua_InputArgumentResults;
|
|
extern int hf_opcua_Int16;
|
|
extern int hf_opcua_Int16s;
|
|
extern int hf_opcua_Int32;
|
|
extern int hf_opcua_Int32s;
|
|
extern int hf_opcua_Int64;
|
|
extern int hf_opcua_Int64s;
|
|
extern int hf_opcua_InvocationCreationTime;
|
|
extern int hf_opcua_IsAbstract;
|
|
extern int hf_opcua_IsDeleteModified;
|
|
extern int hf_opcua_IsForward;
|
|
extern int hf_opcua_IsInverse;
|
|
extern int hf_opcua_IsOnline;
|
|
extern int hf_opcua_IsReadModified;
|
|
extern int hf_opcua_IssueDate;
|
|
extern int hf_opcua_IssuedBy;
|
|
extern int hf_opcua_IssuedTokenType;
|
|
extern int hf_opcua_IssuerCertificates;
|
|
extern int hf_opcua_IssuerCrls;
|
|
extern int hf_opcua_IssuerEndpointUrl;
|
|
extern int hf_opcua_Iteration;
|
|
extern int hf_opcua_LastCounterResetTime;
|
|
extern int hf_opcua_LastMethodCall;
|
|
extern int hf_opcua_LastMethodCallTime;
|
|
extern int hf_opcua_LastTransitionTime;
|
|
extern int hf_opcua_LatePublishRequestCount;
|
|
extern int hf_opcua_LinksToAdd;
|
|
extern int hf_opcua_LinksToRemove;
|
|
extern int hf_opcua_LocaleIds;
|
|
extern int hf_opcua_Low;
|
|
extern int hf_opcua_ManufacturerName;
|
|
extern int hf_opcua_MaxAge;
|
|
extern int hf_opcua_MaxArrayLength;
|
|
extern int hf_opcua_MaxBufferSize;
|
|
extern int hf_opcua_MaxByteStringLength;
|
|
extern int hf_opcua_MaxDataSetsToReturn;
|
|
extern int hf_opcua_MaxKeepAliveCount;
|
|
extern int hf_opcua_MaxLifetimeCount;
|
|
extern int hf_opcua_MaxMessageSize;
|
|
extern int hf_opcua_MaxMonitoredItemCount;
|
|
extern int hf_opcua_MaxNotificationsPerPublish;
|
|
extern int hf_opcua_MaxRecordsToReturn;
|
|
extern int hf_opcua_MaxReferencesToReturn;
|
|
extern int hf_opcua_MaxRequestMessageSize;
|
|
extern int hf_opcua_MaxResponseMessageSize;
|
|
extern int hf_opcua_MaxStringLength;
|
|
extern int hf_opcua_MdnsServerName;
|
|
extern int hf_opcua_Message;
|
|
extern int hf_opcua_MinimumSamplingInterval;
|
|
extern int hf_opcua_ModificationTime;
|
|
extern int hf_opcua_ModifyCount;
|
|
extern int hf_opcua_MonitoredItemCount;
|
|
extern int hf_opcua_MonitoredItemId;
|
|
extern int hf_opcua_MonitoredItemIds;
|
|
extern int hf_opcua_MonitoringQueueOverflowCount;
|
|
extern int hf_opcua_MoreNotifications;
|
|
extern int hf_opcua_Name;
|
|
extern int hf_opcua_NamespaceUri;
|
|
extern int hf_opcua_NextSequenceNumber;
|
|
extern int hf_opcua_NotificationsCount;
|
|
extern int hf_opcua_NumValuesPerNode;
|
|
extern int hf_opcua_Offset;
|
|
extern int hf_opcua_OperandStatusCodes;
|
|
extern int hf_opcua_OperationResults;
|
|
extern int hf_opcua_OperationTimeout;
|
|
extern int hf_opcua_OrganizationUri;
|
|
extern int hf_opcua_Password;
|
|
extern int hf_opcua_PercentDataBad;
|
|
extern int hf_opcua_PercentDataGood;
|
|
extern int hf_opcua_PolicyId;
|
|
extern int hf_opcua_Priority;
|
|
extern int hf_opcua_ProcessingInterval;
|
|
extern int hf_opcua_ProductName;
|
|
extern int hf_opcua_ProductUri;
|
|
extern int hf_opcua_ProfileId;
|
|
extern int hf_opcua_ProfileUris;
|
|
extern int hf_opcua_PublishRequestCount;
|
|
extern int hf_opcua_PublishTime;
|
|
extern int hf_opcua_PublishingEnabled;
|
|
extern int hf_opcua_PublishingInterval;
|
|
extern int hf_opcua_PublishingIntervalCount;
|
|
extern int hf_opcua_QueueSize;
|
|
extern int hf_opcua_Real;
|
|
extern int hf_opcua_RecordId;
|
|
extern int hf_opcua_RejectedRequestsCount;
|
|
extern int hf_opcua_RejectedSessionCount;
|
|
extern int hf_opcua_ReleaseContinuationPoint;
|
|
extern int hf_opcua_ReleaseContinuationPoints;
|
|
extern int hf_opcua_RemainingPathIndex;
|
|
extern int hf_opcua_RemoveResults;
|
|
extern int hf_opcua_RepublishMessageCount;
|
|
extern int hf_opcua_RepublishMessageRequestCount;
|
|
extern int hf_opcua_RepublishRequestCount;
|
|
extern int hf_opcua_ReqTimes;
|
|
extern int hf_opcua_RequestHandle;
|
|
extern int hf_opcua_RequestedLifetime;
|
|
extern int hf_opcua_RequestedLifetimeCount;
|
|
extern int hf_opcua_RequestedMaxKeepAliveCount;
|
|
extern int hf_opcua_RequestedMaxReferencesPerNode;
|
|
extern int hf_opcua_RequestedPublishingInterval;
|
|
extern int hf_opcua_RequestedSessionTimeout;
|
|
extern int hf_opcua_Results;
|
|
extern int hf_opcua_RetransmitSequenceNumber;
|
|
extern int hf_opcua_ReturnBounds;
|
|
extern int hf_opcua_ReturnDiagnostics;
|
|
extern int hf_opcua_RevisedContinuationPoint;
|
|
extern int hf_opcua_RevisedLifetime;
|
|
extern int hf_opcua_RevisedLifetimeCount;
|
|
extern int hf_opcua_RevisedMaxKeepAliveCount;
|
|
extern int hf_opcua_RevisedProcessingInterval;
|
|
extern int hf_opcua_RevisedPublishingInterval;
|
|
extern int hf_opcua_RevisedQueueSize;
|
|
extern int hf_opcua_RevisedSamplingInterval;
|
|
extern int hf_opcua_RevisedSessionTimeout;
|
|
extern int hf_opcua_RevisedStartTime;
|
|
extern int hf_opcua_SByte;
|
|
extern int hf_opcua_SBytes;
|
|
extern int hf_opcua_SamplingInterval;
|
|
extern int hf_opcua_SecondsTillShutdown;
|
|
extern int hf_opcua_SecurityLevel;
|
|
extern int hf_opcua_SecurityPolicyUri;
|
|
extern int hf_opcua_SecurityRejectedRequestsCount;
|
|
extern int hf_opcua_SecurityRejectedSessionCount;
|
|
extern int hf_opcua_SecurityTokenLifetime;
|
|
extern int hf_opcua_SelectClauseResults;
|
|
extern int hf_opcua_SemaphoreFilePath;
|
|
extern int hf_opcua_SendInitialValues;
|
|
extern int hf_opcua_SequenceNumber;
|
|
extern int hf_opcua_ServerCapabilities;
|
|
extern int hf_opcua_ServerCapabilityFilter;
|
|
extern int hf_opcua_ServerCertificate;
|
|
extern int hf_opcua_ServerId;
|
|
extern int hf_opcua_ServerName;
|
|
extern int hf_opcua_ServerNonce;
|
|
extern int hf_opcua_ServerProtocolVersion;
|
|
extern int hf_opcua_ServerUri;
|
|
extern int hf_opcua_ServerUris;
|
|
extern int hf_opcua_ServerViewCount;
|
|
extern int hf_opcua_ServiceLevel;
|
|
extern int hf_opcua_ServiceResult;
|
|
extern int hf_opcua_SessionAbortCount;
|
|
extern int hf_opcua_SessionName;
|
|
extern int hf_opcua_SessionTimeoutCount;
|
|
extern int hf_opcua_Signature;
|
|
extern int hf_opcua_SoftwareVersion;
|
|
extern int hf_opcua_SpecifiedAttributes;
|
|
extern int hf_opcua_SpecifiedLists;
|
|
extern int hf_opcua_StartTime;
|
|
extern int hf_opcua_StartingRecordId;
|
|
extern int hf_opcua_Status;
|
|
extern int hf_opcua_StatusCode;
|
|
extern int hf_opcua_StatusCodes;
|
|
extern int hf_opcua_String;
|
|
extern int hf_opcua_StringTable;
|
|
extern int hf_opcua_Strings;
|
|
extern int hf_opcua_SubscriptionId;
|
|
extern int hf_opcua_SubscriptionIds;
|
|
extern int hf_opcua_Symmetric;
|
|
extern int hf_opcua_TargetServerUri;
|
|
extern int hf_opcua_TestId;
|
|
extern int hf_opcua_TicketData;
|
|
extern int hf_opcua_TimeoutHint;
|
|
extern int hf_opcua_Timestamp;
|
|
extern int hf_opcua_TokenData;
|
|
extern int hf_opcua_TokenId;
|
|
extern int hf_opcua_TotalCount;
|
|
extern int hf_opcua_TransferRequestCount;
|
|
extern int hf_opcua_TransferredToAltClientCount;
|
|
extern int hf_opcua_TransferredToSameClientCount;
|
|
extern int hf_opcua_TransportProfileUri;
|
|
extern int hf_opcua_TransportProtocol;
|
|
extern int hf_opcua_TreatUncertainAsBad;
|
|
extern int hf_opcua_TriggeringItemId;
|
|
extern int hf_opcua_TrustedCertificates;
|
|
extern int hf_opcua_TrustedCrls;
|
|
extern int hf_opcua_UInt16;
|
|
extern int hf_opcua_UInt16s;
|
|
extern int hf_opcua_UInt32;
|
|
extern int hf_opcua_UInt32s;
|
|
extern int hf_opcua_UInt64;
|
|
extern int hf_opcua_UInt64s;
|
|
extern int hf_opcua_UnacknowledgedMessageCount;
|
|
extern int hf_opcua_UnauthorizedRequestCount;
|
|
extern int hf_opcua_UnitId;
|
|
extern int hf_opcua_UnsupportedUnitIds;
|
|
extern int hf_opcua_UseBinaryEncoding;
|
|
extern int hf_opcua_UseServerCapabilitiesDefaults;
|
|
extern int hf_opcua_UseSimpleBounds;
|
|
extern int hf_opcua_UseSlopedExtrapolation;
|
|
extern int hf_opcua_UserAccessLevel;
|
|
extern int hf_opcua_UserExecutable;
|
|
extern int hf_opcua_UserName;
|
|
extern int hf_opcua_UserWriteMask;
|
|
extern int hf_opcua_ValidBits;
|
|
extern int hf_opcua_Value;
|
|
extern int hf_opcua_ValueRank;
|
|
extern int hf_opcua_VendorName;
|
|
extern int hf_opcua_VendorProductCertificate;
|
|
extern int hf_opcua_Verb;
|
|
extern int hf_opcua_ViewVersion;
|
|
extern int hf_opcua_WriteMask;
|
|
extern int hf_opcua_X;
|
|
extern int hf_opcua_XmlElement;
|
|
extern int hf_opcua_XmlElements;
|
|
|
|
/** Register field types. */
|
|
void registerFieldTypes(int proto);
|
|
|