summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-m3ap.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-m3ap.c')
-rw-r--r--epan/dissectors/packet-m3ap.c524
1 files changed, 263 insertions, 261 deletions
diff --git a/epan/dissectors/packet-m3ap.c b/epan/dissectors/packet-m3ap.c
index aa764004..20f3b49c 100644
--- a/epan/dissectors/packet-m3ap.c
+++ b/epan/dissectors/packet-m3ap.c
@@ -1,7 +1,7 @@
/* Do not modify this file. Changes will be overwritten. */
/* Generated automatically by the ASN.1 to Wireshark dissector compiler */
/* packet-m3ap.c */
-/* asn2wrs.py -L -p m3ap -c ./m3ap.cnf -s ./packet-m3ap-template -D . -O ../.. M3AP-CommonDataTypes.asn M3AP-Constants.asn M3AP-Containers.asn M3AP-IEs.asn M3AP-PDU-Contents.asn M3AP-PDU-Descriptions.asn */
+/* asn2wrs.py -q -L -p m3ap -c ./m3ap.cnf -s ./packet-m3ap-template -D . -O ../.. M3AP-CommonDataTypes.asn M3AP-Constants.asn M3AP-Containers.asn M3AP-IEs.asn M3AP-PDU-Contents.asn M3AP-PDU-Descriptions.asn */
/* packet-m3ap.c
* Routines for M3 Application Protocol packet dissection
@@ -24,6 +24,8 @@
#include <epan/sctpppids.h>
#include <epan/expert.h>
#include <epan/proto_data.h>
+#include <epan/unit_strings.h>
+#include <wsutil/array.h>
#include "packet-ber.h"
#include "packet-per.h"
@@ -39,7 +41,7 @@ void proto_reg_handoff_m3ap(void);
/* M3AP uses port 36444 as recommended by IANA. */
#define M3AP_PORT 36444
-static dissector_handle_t m3ap_handle=NULL;
+static dissector_handle_t m3ap_handle;
#define maxPrivateIEs 65535
#define maxProtocolExtensions 65535
@@ -90,163 +92,163 @@ typedef enum _ProtocolIE_ID_enum {
} ProtocolIE_ID_enum;
/* Initialize the protocol and registered fields */
-static int proto_m3ap = -1;
-
-static int hf_m3ap_Absolute_Time_ofMBMS_Data_value = -1;
-static int hf_m3ap_IPAddress_v4 = -1;
-static int hf_m3ap_IPAddress_v6 = -1;
-
-static int hf_m3ap_Absolute_Time_ofMBMS_Data_PDU = -1; /* Absolute_Time_ofMBMS_Data */
-static int hf_m3ap_AllocationAndRetentionPriority_PDU = -1; /* AllocationAndRetentionPriority */
-static int hf_m3ap_Cause_PDU = -1; /* Cause */
-static int hf_m3ap_CriticalityDiagnostics_PDU = -1; /* CriticalityDiagnostics */
-static int hf_m3ap_Global_MCE_ID_PDU = -1; /* Global_MCE_ID */
-static int hf_m3ap_MBMS_Cell_List_PDU = -1; /* MBMS_Cell_List */
-static int hf_m3ap_MBMS_E_RAB_QoS_Parameters_PDU = -1; /* MBMS_E_RAB_QoS_Parameters */
-static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionItem_PDU = -1; /* MBMS_Service_associatedLogicalM3_ConnectionItem */
-static int hf_m3ap_MBMS_Service_Area_PDU = -1; /* MBMS_Service_Area */
-static int hf_m3ap_MBMS_Session_Duration_PDU = -1; /* MBMS_Session_Duration */
-static int hf_m3ap_MBMS_Session_ID_PDU = -1; /* MBMS_Session_ID */
-static int hf_m3ap_MCE_MBMS_M3AP_ID_PDU = -1; /* MCE_MBMS_M3AP_ID */
-static int hf_m3ap_MCEname_PDU = -1; /* MCEname */
-static int hf_m3ap_MinimumTimeToMBMSDataTransfer_PDU = -1; /* MinimumTimeToMBMSDataTransfer */
-static int hf_m3ap_MME_MBMS_M3AP_ID_PDU = -1; /* MME_MBMS_M3AP_ID */
-static int hf_m3ap_Reestablishment_PDU = -1; /* Reestablishment */
-static int hf_m3ap_TimeToWait_PDU = -1; /* TimeToWait */
-static int hf_m3ap_TMGI_PDU = -1; /* TMGI */
-static int hf_m3ap_TNL_Information_PDU = -1; /* TNL_Information */
-static int hf_m3ap_MBMSSessionStartRequest_PDU = -1; /* MBMSSessionStartRequest */
-static int hf_m3ap_MBMSSessionStartResponse_PDU = -1; /* MBMSSessionStartResponse */
-static int hf_m3ap_MBMSSessionStartFailure_PDU = -1; /* MBMSSessionStartFailure */
-static int hf_m3ap_MBMSSessionStopRequest_PDU = -1; /* MBMSSessionStopRequest */
-static int hf_m3ap_MBMSSessionStopResponse_PDU = -1; /* MBMSSessionStopResponse */
-static int hf_m3ap_MBMSSessionUpdateRequest_PDU = -1; /* MBMSSessionUpdateRequest */
-static int hf_m3ap_MBMSSessionUpdateResponse_PDU = -1; /* MBMSSessionUpdateResponse */
-static int hf_m3ap_MBMSSessionUpdateFailure_PDU = -1; /* MBMSSessionUpdateFailure */
-static int hf_m3ap_ErrorIndication_PDU = -1; /* ErrorIndication */
-static int hf_m3ap_Reset_PDU = -1; /* Reset */
-static int hf_m3ap_ResetType_PDU = -1; /* ResetType */
-static int hf_m3ap_ResetAcknowledge_PDU = -1; /* ResetAcknowledge */
-static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck_PDU = -1; /* MBMS_Service_associatedLogicalM3_ConnectionListResAck */
-static int hf_m3ap_PrivateMessage_PDU = -1; /* PrivateMessage */
-static int hf_m3ap_M3SetupRequest_PDU = -1; /* M3SetupRequest */
-static int hf_m3ap_MBMSServiceAreaListItem_PDU = -1; /* MBMSServiceAreaListItem */
-static int hf_m3ap_M3SetupResponse_PDU = -1; /* M3SetupResponse */
-static int hf_m3ap_M3SetupFailure_PDU = -1; /* M3SetupFailure */
-static int hf_m3ap_MCEConfigurationUpdate_PDU = -1; /* MCEConfigurationUpdate */
-static int hf_m3ap_MCEConfigurationUpdateAcknowledge_PDU = -1; /* MCEConfigurationUpdateAcknowledge */
-static int hf_m3ap_MCEConfigurationUpdateFailure_PDU = -1; /* MCEConfigurationUpdateFailure */
-static int hf_m3ap_M3AP_PDU_PDU = -1; /* M3AP_PDU */
-static int hf_m3ap_local = -1; /* INTEGER_0_maxPrivateIEs */
-static int hf_m3ap_global = -1; /* OBJECT_IDENTIFIER */
-static int hf_m3ap_ProtocolIE_Container_item = -1; /* ProtocolIE_Field */
-static int hf_m3ap_id = -1; /* ProtocolIE_ID */
-static int hf_m3ap_criticality = -1; /* Criticality */
-static int hf_m3ap_ie_field_value = -1; /* T_ie_field_value */
-static int hf_m3ap_ProtocolExtensionContainer_item = -1; /* ProtocolExtensionField */
-static int hf_m3ap_ext_id = -1; /* ProtocolIE_ID */
-static int hf_m3ap_extensionValue = -1; /* T_extensionValue */
-static int hf_m3ap_PrivateIE_Container_item = -1; /* PrivateIE_Field */
-static int hf_m3ap_private_id = -1; /* PrivateIE_ID */
-static int hf_m3ap_private_value = -1; /* T_private_value */
-static int hf_m3ap_priorityLevel = -1; /* PriorityLevel */
-static int hf_m3ap_pre_emptionCapability = -1; /* Pre_emptionCapability */
-static int hf_m3ap_pre_emptionVulnerability = -1; /* Pre_emptionVulnerability */
-static int hf_m3ap_iE_Extensions = -1; /* ProtocolExtensionContainer */
-static int hf_m3ap_radioNetwork = -1; /* CauseRadioNetwork */
-static int hf_m3ap_transport = -1; /* CauseTransport */
-static int hf_m3ap_nAS = -1; /* CauseNAS */
-static int hf_m3ap_protocol = -1; /* CauseProtocol */
-static int hf_m3ap_misc = -1; /* CauseMisc */
-static int hf_m3ap_procedureCode = -1; /* ProcedureCode */
-static int hf_m3ap_triggeringMessage = -1; /* TriggeringMessage */
-static int hf_m3ap_procedureCriticality = -1; /* Criticality */
-static int hf_m3ap_iEsCriticalityDiagnostics = -1; /* CriticalityDiagnostics_IE_List */
-static int hf_m3ap_CriticalityDiagnostics_IE_List_item = -1; /* CriticalityDiagnostics_IE_List_item */
-static int hf_m3ap_iECriticality = -1; /* Criticality */
-static int hf_m3ap_iE_ID = -1; /* ProtocolIE_ID */
-static int hf_m3ap_typeOfError = -1; /* TypeOfError */
-static int hf_m3ap_pLMN_Identity = -1; /* PLMN_Identity */
-static int hf_m3ap_eUTRANcellIdentifier = -1; /* EUTRANCellIdentifier */
-static int hf_m3ap_mCE_ID = -1; /* MCE_ID */
-static int hf_m3ap_extendedMCE_ID = -1; /* ExtendedMCE_ID */
-static int hf_m3ap_mBMS_E_RAB_MaximumBitrateDL = -1; /* BitRate */
-static int hf_m3ap_mBMS_E_RAB_GuaranteedBitrateDL = -1; /* BitRate */
-static int hf_m3ap_MBMS_Cell_List_item = -1; /* ECGI */
-static int hf_m3ap_qCI = -1; /* QCI */
-static int hf_m3ap_gbrQosInformation = -1; /* GBR_QosInformation */
-static int hf_m3ap_mME_MBMS_M3AP_ID = -1; /* MME_MBMS_M3AP_ID */
-static int hf_m3ap_mCE_MBMS_M3AP_ID = -1; /* MCE_MBMS_M3AP_ID */
-static int hf_m3ap_pLMNidentity = -1; /* PLMN_Identity */
-static int hf_m3ap_serviceID = -1; /* OCTET_STRING_SIZE_3 */
-static int hf_m3ap_iPMCAddress = -1; /* IPAddress */
-static int hf_m3ap_iPSourceAddress = -1; /* IPAddress */
-static int hf_m3ap_gTP_DLTEID = -1; /* GTP_TEID */
-static int hf_m3ap_protocolIEs = -1; /* ProtocolIE_Container */
-static int hf_m3ap_m3_Interface = -1; /* ResetAll */
-static int hf_m3ap_partOfM3_Interface = -1; /* MBMS_Service_associatedLogicalM3_ConnectionListRes */
-static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListRes_item = -1; /* ProtocolIE_Single_Container */
-static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck_item = -1; /* ProtocolIE_Single_Container */
-static int hf_m3ap_privateIEs = -1; /* PrivateIE_Container */
-static int hf_m3ap_MBMSServiceAreaListItem_item = -1; /* MBMSServiceArea1 */
-static int hf_m3ap_initiatingMessage = -1; /* InitiatingMessage */
-static int hf_m3ap_successfulOutcome = -1; /* SuccessfulOutcome */
-static int hf_m3ap_unsuccessfulOutcome = -1; /* UnsuccessfulOutcome */
-static int hf_m3ap_initiatingMessagevalue = -1; /* InitiatingMessage_value */
-static int hf_m3ap_successfulOutcome_value = -1; /* SuccessfulOutcome_value */
-static int hf_m3ap_unsuccessfulOutcome_value = -1; /* UnsuccessfulOutcome_value */
+static int proto_m3ap;
+
+static int hf_m3ap_Absolute_Time_ofMBMS_Data_value;
+static int hf_m3ap_IPAddress_v4;
+static int hf_m3ap_IPAddress_v6;
+
+static int hf_m3ap_Absolute_Time_ofMBMS_Data_PDU; /* Absolute_Time_ofMBMS_Data */
+static int hf_m3ap_AllocationAndRetentionPriority_PDU; /* AllocationAndRetentionPriority */
+static int hf_m3ap_Cause_PDU; /* Cause */
+static int hf_m3ap_CriticalityDiagnostics_PDU; /* CriticalityDiagnostics */
+static int hf_m3ap_Global_MCE_ID_PDU; /* Global_MCE_ID */
+static int hf_m3ap_MBMS_Cell_List_PDU; /* MBMS_Cell_List */
+static int hf_m3ap_MBMS_E_RAB_QoS_Parameters_PDU; /* MBMS_E_RAB_QoS_Parameters */
+static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionItem_PDU; /* MBMS_Service_associatedLogicalM3_ConnectionItem */
+static int hf_m3ap_MBMS_Service_Area_PDU; /* MBMS_Service_Area */
+static int hf_m3ap_MBMS_Session_Duration_PDU; /* MBMS_Session_Duration */
+static int hf_m3ap_MBMS_Session_ID_PDU; /* MBMS_Session_ID */
+static int hf_m3ap_MCE_MBMS_M3AP_ID_PDU; /* MCE_MBMS_M3AP_ID */
+static int hf_m3ap_MCEname_PDU; /* MCEname */
+static int hf_m3ap_MinimumTimeToMBMSDataTransfer_PDU; /* MinimumTimeToMBMSDataTransfer */
+static int hf_m3ap_MME_MBMS_M3AP_ID_PDU; /* MME_MBMS_M3AP_ID */
+static int hf_m3ap_Reestablishment_PDU; /* Reestablishment */
+static int hf_m3ap_TimeToWait_PDU; /* TimeToWait */
+static int hf_m3ap_TMGI_PDU; /* TMGI */
+static int hf_m3ap_TNL_Information_PDU; /* TNL_Information */
+static int hf_m3ap_MBMSSessionStartRequest_PDU; /* MBMSSessionStartRequest */
+static int hf_m3ap_MBMSSessionStartResponse_PDU; /* MBMSSessionStartResponse */
+static int hf_m3ap_MBMSSessionStartFailure_PDU; /* MBMSSessionStartFailure */
+static int hf_m3ap_MBMSSessionStopRequest_PDU; /* MBMSSessionStopRequest */
+static int hf_m3ap_MBMSSessionStopResponse_PDU; /* MBMSSessionStopResponse */
+static int hf_m3ap_MBMSSessionUpdateRequest_PDU; /* MBMSSessionUpdateRequest */
+static int hf_m3ap_MBMSSessionUpdateResponse_PDU; /* MBMSSessionUpdateResponse */
+static int hf_m3ap_MBMSSessionUpdateFailure_PDU; /* MBMSSessionUpdateFailure */
+static int hf_m3ap_ErrorIndication_PDU; /* ErrorIndication */
+static int hf_m3ap_Reset_PDU; /* Reset */
+static int hf_m3ap_ResetType_PDU; /* ResetType */
+static int hf_m3ap_ResetAcknowledge_PDU; /* ResetAcknowledge */
+static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck_PDU; /* MBMS_Service_associatedLogicalM3_ConnectionListResAck */
+static int hf_m3ap_PrivateMessage_PDU; /* PrivateMessage */
+static int hf_m3ap_M3SetupRequest_PDU; /* M3SetupRequest */
+static int hf_m3ap_MBMSServiceAreaListItem_PDU; /* MBMSServiceAreaListItem */
+static int hf_m3ap_M3SetupResponse_PDU; /* M3SetupResponse */
+static int hf_m3ap_M3SetupFailure_PDU; /* M3SetupFailure */
+static int hf_m3ap_MCEConfigurationUpdate_PDU; /* MCEConfigurationUpdate */
+static int hf_m3ap_MCEConfigurationUpdateAcknowledge_PDU; /* MCEConfigurationUpdateAcknowledge */
+static int hf_m3ap_MCEConfigurationUpdateFailure_PDU; /* MCEConfigurationUpdateFailure */
+static int hf_m3ap_M3AP_PDU_PDU; /* M3AP_PDU */
+static int hf_m3ap_local; /* INTEGER_0_maxPrivateIEs */
+static int hf_m3ap_global; /* OBJECT_IDENTIFIER */
+static int hf_m3ap_ProtocolIE_Container_item; /* ProtocolIE_Field */
+static int hf_m3ap_id; /* ProtocolIE_ID */
+static int hf_m3ap_criticality; /* Criticality */
+static int hf_m3ap_ie_field_value; /* T_ie_field_value */
+static int hf_m3ap_ProtocolExtensionContainer_item; /* ProtocolExtensionField */
+static int hf_m3ap_ext_id; /* ProtocolIE_ID */
+static int hf_m3ap_extensionValue; /* T_extensionValue */
+static int hf_m3ap_PrivateIE_Container_item; /* PrivateIE_Field */
+static int hf_m3ap_private_id; /* PrivateIE_ID */
+static int hf_m3ap_private_value; /* T_private_value */
+static int hf_m3ap_priorityLevel; /* PriorityLevel */
+static int hf_m3ap_pre_emptionCapability; /* Pre_emptionCapability */
+static int hf_m3ap_pre_emptionVulnerability; /* Pre_emptionVulnerability */
+static int hf_m3ap_iE_Extensions; /* ProtocolExtensionContainer */
+static int hf_m3ap_radioNetwork; /* CauseRadioNetwork */
+static int hf_m3ap_transport; /* CauseTransport */
+static int hf_m3ap_nAS; /* CauseNAS */
+static int hf_m3ap_protocol; /* CauseProtocol */
+static int hf_m3ap_misc; /* CauseMisc */
+static int hf_m3ap_procedureCode; /* ProcedureCode */
+static int hf_m3ap_triggeringMessage; /* TriggeringMessage */
+static int hf_m3ap_procedureCriticality; /* Criticality */
+static int hf_m3ap_iEsCriticalityDiagnostics; /* CriticalityDiagnostics_IE_List */
+static int hf_m3ap_CriticalityDiagnostics_IE_List_item; /* CriticalityDiagnostics_IE_List_item */
+static int hf_m3ap_iECriticality; /* Criticality */
+static int hf_m3ap_iE_ID; /* ProtocolIE_ID */
+static int hf_m3ap_typeOfError; /* TypeOfError */
+static int hf_m3ap_pLMN_Identity; /* PLMN_Identity */
+static int hf_m3ap_eUTRANcellIdentifier; /* EUTRANCellIdentifier */
+static int hf_m3ap_mCE_ID; /* MCE_ID */
+static int hf_m3ap_extendedMCE_ID; /* ExtendedMCE_ID */
+static int hf_m3ap_mBMS_E_RAB_MaximumBitrateDL; /* BitRate */
+static int hf_m3ap_mBMS_E_RAB_GuaranteedBitrateDL; /* BitRate */
+static int hf_m3ap_MBMS_Cell_List_item; /* ECGI */
+static int hf_m3ap_qCI; /* QCI */
+static int hf_m3ap_gbrQosInformation; /* GBR_QosInformation */
+static int hf_m3ap_mME_MBMS_M3AP_ID; /* MME_MBMS_M3AP_ID */
+static int hf_m3ap_mCE_MBMS_M3AP_ID; /* MCE_MBMS_M3AP_ID */
+static int hf_m3ap_pLMNidentity; /* PLMN_Identity */
+static int hf_m3ap_serviceID; /* OCTET_STRING_SIZE_3 */
+static int hf_m3ap_iPMCAddress; /* IPAddress */
+static int hf_m3ap_iPSourceAddress; /* IPAddress */
+static int hf_m3ap_gTP_DLTEID; /* GTP_TEID */
+static int hf_m3ap_protocolIEs; /* ProtocolIE_Container */
+static int hf_m3ap_m3_Interface; /* ResetAll */
+static int hf_m3ap_partOfM3_Interface; /* MBMS_Service_associatedLogicalM3_ConnectionListRes */
+static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListRes_item; /* ProtocolIE_Single_Container */
+static int hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck_item; /* ProtocolIE_Single_Container */
+static int hf_m3ap_privateIEs; /* PrivateIE_Container */
+static int hf_m3ap_MBMSServiceAreaListItem_item; /* MBMSServiceArea1 */
+static int hf_m3ap_initiatingMessage; /* InitiatingMessage */
+static int hf_m3ap_successfulOutcome; /* SuccessfulOutcome */
+static int hf_m3ap_unsuccessfulOutcome; /* UnsuccessfulOutcome */
+static int hf_m3ap_initiatingMessagevalue; /* InitiatingMessage_value */
+static int hf_m3ap_successfulOutcome_value; /* SuccessfulOutcome_value */
+static int hf_m3ap_unsuccessfulOutcome_value; /* UnsuccessfulOutcome_value */
/* Initialize the subtree pointers */
-static int ett_m3ap = -1;
-static int ett_m3ap_IPAddress = -1;
-static gint ett_m3ap_PrivateIE_ID = -1;
-static gint ett_m3ap_ProtocolIE_Container = -1;
-static gint ett_m3ap_ProtocolIE_Field = -1;
-static gint ett_m3ap_ProtocolExtensionContainer = -1;
-static gint ett_m3ap_ProtocolExtensionField = -1;
-static gint ett_m3ap_PrivateIE_Container = -1;
-static gint ett_m3ap_PrivateIE_Field = -1;
-static gint ett_m3ap_AllocationAndRetentionPriority = -1;
-static gint ett_m3ap_Cause = -1;
-static gint ett_m3ap_CriticalityDiagnostics = -1;
-static gint ett_m3ap_CriticalityDiagnostics_IE_List = -1;
-static gint ett_m3ap_CriticalityDiagnostics_IE_List_item = -1;
-static gint ett_m3ap_ECGI = -1;
-static gint ett_m3ap_Global_MCE_ID = -1;
-static gint ett_m3ap_GBR_QosInformation = -1;
-static gint ett_m3ap_MBMS_Cell_List = -1;
-static gint ett_m3ap_MBMS_E_RAB_QoS_Parameters = -1;
-static gint ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionItem = -1;
-static gint ett_m3ap_TMGI = -1;
-static gint ett_m3ap_TNL_Information = -1;
-static gint ett_m3ap_MBMSSessionStartRequest = -1;
-static gint ett_m3ap_MBMSSessionStartResponse = -1;
-static gint ett_m3ap_MBMSSessionStartFailure = -1;
-static gint ett_m3ap_MBMSSessionStopRequest = -1;
-static gint ett_m3ap_MBMSSessionStopResponse = -1;
-static gint ett_m3ap_MBMSSessionUpdateRequest = -1;
-static gint ett_m3ap_MBMSSessionUpdateResponse = -1;
-static gint ett_m3ap_MBMSSessionUpdateFailure = -1;
-static gint ett_m3ap_ErrorIndication = -1;
-static gint ett_m3ap_Reset = -1;
-static gint ett_m3ap_ResetType = -1;
-static gint ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListRes = -1;
-static gint ett_m3ap_ResetAcknowledge = -1;
-static gint ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck = -1;
-static gint ett_m3ap_PrivateMessage = -1;
-static gint ett_m3ap_M3SetupRequest = -1;
-static gint ett_m3ap_MBMSServiceAreaListItem = -1;
-static gint ett_m3ap_M3SetupResponse = -1;
-static gint ett_m3ap_M3SetupFailure = -1;
-static gint ett_m3ap_MCEConfigurationUpdate = -1;
-static gint ett_m3ap_MCEConfigurationUpdateAcknowledge = -1;
-static gint ett_m3ap_MCEConfigurationUpdateFailure = -1;
-static gint ett_m3ap_M3AP_PDU = -1;
-static gint ett_m3ap_InitiatingMessage = -1;
-static gint ett_m3ap_SuccessfulOutcome = -1;
-static gint ett_m3ap_UnsuccessfulOutcome = -1;
-
-static expert_field ei_m3ap_invalid_ip_address_len = EI_INIT;
+static int ett_m3ap;
+static int ett_m3ap_IPAddress;
+static int ett_m3ap_PrivateIE_ID;
+static int ett_m3ap_ProtocolIE_Container;
+static int ett_m3ap_ProtocolIE_Field;
+static int ett_m3ap_ProtocolExtensionContainer;
+static int ett_m3ap_ProtocolExtensionField;
+static int ett_m3ap_PrivateIE_Container;
+static int ett_m3ap_PrivateIE_Field;
+static int ett_m3ap_AllocationAndRetentionPriority;
+static int ett_m3ap_Cause;
+static int ett_m3ap_CriticalityDiagnostics;
+static int ett_m3ap_CriticalityDiagnostics_IE_List;
+static int ett_m3ap_CriticalityDiagnostics_IE_List_item;
+static int ett_m3ap_ECGI;
+static int ett_m3ap_Global_MCE_ID;
+static int ett_m3ap_GBR_QosInformation;
+static int ett_m3ap_MBMS_Cell_List;
+static int ett_m3ap_MBMS_E_RAB_QoS_Parameters;
+static int ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionItem;
+static int ett_m3ap_TMGI;
+static int ett_m3ap_TNL_Information;
+static int ett_m3ap_MBMSSessionStartRequest;
+static int ett_m3ap_MBMSSessionStartResponse;
+static int ett_m3ap_MBMSSessionStartFailure;
+static int ett_m3ap_MBMSSessionStopRequest;
+static int ett_m3ap_MBMSSessionStopResponse;
+static int ett_m3ap_MBMSSessionUpdateRequest;
+static int ett_m3ap_MBMSSessionUpdateResponse;
+static int ett_m3ap_MBMSSessionUpdateFailure;
+static int ett_m3ap_ErrorIndication;
+static int ett_m3ap_Reset;
+static int ett_m3ap_ResetType;
+static int ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListRes;
+static int ett_m3ap_ResetAcknowledge;
+static int ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck;
+static int ett_m3ap_PrivateMessage;
+static int ett_m3ap_M3SetupRequest;
+static int ett_m3ap_MBMSServiceAreaListItem;
+static int ett_m3ap_M3SetupResponse;
+static int ett_m3ap_M3SetupFailure;
+static int ett_m3ap_MCEConfigurationUpdate;
+static int ett_m3ap_MCEConfigurationUpdateAcknowledge;
+static int ett_m3ap_MCEConfigurationUpdateFailure;
+static int ett_m3ap_M3AP_PDU;
+static int ett_m3ap_InitiatingMessage;
+static int ett_m3ap_SuccessfulOutcome;
+static int ett_m3ap_UnsuccessfulOutcome;
+
+static expert_field ei_m3ap_invalid_ip_address_len;
struct m3ap_private_data {
e212_number_type_t number_type;
@@ -259,11 +261,11 @@ enum{
};
/* Global variables */
-static guint32 ProcedureCode;
-static guint32 ProtocolIE_ID;
-/*static guint32 ProtocolExtensionID; */
+static uint32_t ProcedureCode;
+static uint32_t ProtocolIE_ID;
+/*static uint32_t ProtocolExtensionID; */
static int global_m3ap_port = M3AP_PORT;
-static guint32 message_type;
+static uint32_t message_type;
/* Dissector tables */
static dissector_table_t m3ap_ies_dissector_table;
@@ -301,7 +303,7 @@ static const value_string m3ap_Criticality_vals[] = {
static int
dissect_m3ap_Criticality(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 3, NULL, FALSE, 0, NULL);
+ 3, NULL, false, 0, NULL);
return offset;
}
@@ -311,7 +313,7 @@ dissect_m3ap_Criticality(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_
static int
dissect_m3ap_INTEGER_0_maxPrivateIEs(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, maxPrivateIEs, NULL, FALSE);
+ 0U, maxPrivateIEs, NULL, false);
return offset;
}
@@ -366,7 +368,7 @@ static value_string_ext m3ap_ProcedureCode_vals_ext = VALUE_STRING_EXT_INIT(m3ap
static int
dissect_m3ap_ProcedureCode(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, 255U, &ProcedureCode, FALSE);
+ 0U, 255U, &ProcedureCode, false);
return offset;
}
@@ -408,7 +410,7 @@ static value_string_ext m3ap_ProtocolIE_ID_vals_ext = VALUE_STRING_EXT_INIT(m3ap
static int
dissect_m3ap_ProtocolIE_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, maxProtocolIEs, &ProtocolIE_ID, FALSE);
+ 0U, maxProtocolIEs, &ProtocolIE_ID, false);
if (tree) {
proto_item_append_text(proto_item_get_parent_nth(actx->created_item, 2), ": %s", val_to_str_ext(ProtocolIE_ID, &m3ap_ProtocolIE_ID_vals_ext, "unknown (%d)"));
@@ -428,7 +430,7 @@ static const value_string m3ap_TriggeringMessage_vals[] = {
static int
dissect_m3ap_TriggeringMessage(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 3, NULL, FALSE, 0, NULL);
+ 3, NULL, false, 0, NULL);
return offset;
}
@@ -467,7 +469,7 @@ static int
dissect_m3ap_ProtocolIE_Container(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_ProtocolIE_Container, ProtocolIE_Container_sequence_of,
- 0, maxProtocolIEs, FALSE);
+ 0, maxProtocolIEs, false);
return offset;
}
@@ -515,7 +517,7 @@ static int
dissect_m3ap_ProtocolExtensionContainer(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_ProtocolExtensionContainer, ProtocolExtensionContainer_sequence_of,
- 1, maxProtocolExtensions, FALSE);
+ 1, maxProtocolExtensions, false);
return offset;
}
@@ -554,7 +556,7 @@ static int
dissect_m3ap_PrivateIE_Container(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_PrivateIE_Container, PrivateIE_Container_sequence_of,
- 1, maxPrivateIEs, FALSE);
+ 1, maxPrivateIEs, false);
return offset;
}
@@ -566,7 +568,7 @@ dissect_m3ap_Absolute_Time_ofMBMS_Data(tvbuff_t *tvb _U_, int offset _U_, asn1_c
tvbuff_t *parameter_tvb=NULL;
offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
- 64, 64, FALSE, NULL, 0, &parameter_tvb, NULL);
+ 64, 64, false, NULL, 0, &parameter_tvb, NULL);
if (!parameter_tvb)
@@ -590,7 +592,7 @@ static const value_string m3ap_PriorityLevel_vals[] = {
static int
dissect_m3ap_PriorityLevel(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, 15U, NULL, FALSE);
+ 0U, 15U, NULL, false);
return offset;
}
@@ -606,7 +608,7 @@ static const value_string m3ap_Pre_emptionCapability_vals[] = {
static int
dissect_m3ap_Pre_emptionCapability(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 2, NULL, FALSE, 0, NULL);
+ 2, NULL, false, 0, NULL);
return offset;
}
@@ -622,7 +624,7 @@ static const value_string m3ap_Pre_emptionVulnerability_vals[] = {
static int
dissect_m3ap_Pre_emptionVulnerability(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 2, NULL, FALSE, 0, NULL);
+ 2, NULL, false, 0, NULL);
return offset;
}
@@ -649,7 +651,7 @@ dissect_m3ap_AllocationAndRetentionPriority(tvbuff_t *tvb _U_, int offset _U_, a
static int
dissect_m3ap_BitRate(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer_64b(tvb, offset, actx, tree, hf_index,
- 0U, G_GUINT64_CONSTANT(10000000000), NULL, FALSE);
+ 0U, UINT64_C(10000000000), NULL, false);
return offset;
}
@@ -672,7 +674,7 @@ static const value_string m3ap_CauseRadioNetwork_vals[] = {
static int
dissect_m3ap_CauseRadioNetwork(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 8, NULL, TRUE, 1, NULL);
+ 8, NULL, true, 1, NULL);
return offset;
}
@@ -688,7 +690,7 @@ static const value_string m3ap_CauseTransport_vals[] = {
static int
dissect_m3ap_CauseTransport(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 2, NULL, TRUE, 0, NULL);
+ 2, NULL, true, 0, NULL);
return offset;
}
@@ -703,7 +705,7 @@ static const value_string m3ap_CauseNAS_vals[] = {
static int
dissect_m3ap_CauseNAS(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 1, NULL, TRUE, 0, NULL);
+ 1, NULL, true, 0, NULL);
return offset;
}
@@ -724,7 +726,7 @@ static const value_string m3ap_CauseProtocol_vals[] = {
static int
dissect_m3ap_CauseProtocol(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 7, NULL, TRUE, 0, NULL);
+ 7, NULL, true, 0, NULL);
return offset;
}
@@ -743,7 +745,7 @@ static const value_string m3ap_CauseMisc_vals[] = {
static int
dissect_m3ap_CauseMisc(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 5, NULL, TRUE, 0, NULL);
+ 5, NULL, true, 0, NULL);
return offset;
}
@@ -787,7 +789,7 @@ static const value_string m3ap_TypeOfError_vals[] = {
static int
dissect_m3ap_TypeOfError(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 2, NULL, TRUE, 0, NULL);
+ 2, NULL, true, 0, NULL);
return offset;
}
@@ -818,7 +820,7 @@ static int
dissect_m3ap_CriticalityDiagnostics_IE_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_CriticalityDiagnostics_IE_List, CriticalityDiagnostics_IE_List_sequence_of,
- 1, maxnooferrors, FALSE);
+ 1, maxnooferrors, false);
return offset;
}
@@ -850,11 +852,11 @@ dissect_m3ap_PLMN_Identity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _
e212_number_type_t number_type = m3ap_data->number_type;
m3ap_data->number_type = E212_NONE;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 3, 3, FALSE, &parameter_tvb);
+ 3, 3, false, &parameter_tvb);
if (!parameter_tvb)
return offset;
- dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, number_type, FALSE);
+ dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, number_type, false);
return offset;
}
@@ -864,7 +866,7 @@ dissect_m3ap_PLMN_Identity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _
static int
dissect_m3ap_EUTRANCellIdentifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index,
- 28, 28, FALSE, NULL, 0, NULL, NULL);
+ 28, 28, false, NULL, 0, NULL, NULL);
return offset;
}
@@ -894,7 +896,7 @@ dissect_m3ap_ECGI(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto
static int
dissect_m3ap_ExtendedMCE_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 1, 1, FALSE, NULL);
+ 1, 1, false, NULL);
return offset;
}
@@ -904,7 +906,7 @@ dissect_m3ap_ExtendedMCE_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx
static int
dissect_m3ap_MCE_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 2, 2, FALSE, NULL);
+ 2, 2, false, NULL);
return offset;
}
@@ -947,7 +949,7 @@ dissect_m3ap_GBR_QosInformation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *a
static int
dissect_m3ap_GTP_TEID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 4, 4, FALSE, NULL);
+ 4, 4, false, NULL);
return offset;
}
@@ -957,11 +959,11 @@ dissect_m3ap_GTP_TEID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p
static int
dissect_m3ap_IPAddress(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
tvbuff_t *parameter_tvb=NULL;
- gint tvb_len;
+ int tvb_len;
proto_tree *subtree;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 4, 16, TRUE, &parameter_tvb);
+ 4, 16, true, &parameter_tvb);
if (!parameter_tvb)
@@ -993,7 +995,7 @@ static int
dissect_m3ap_MBMS_Cell_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_MBMS_Cell_List, MBMS_Cell_List_sequence_of,
- 1, maxnoofCellsforMBMS, FALSE);
+ 1, maxnoofCellsforMBMS, false);
return offset;
}
@@ -1003,7 +1005,7 @@ dissect_m3ap_MBMS_Cell_List(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx
static int
dissect_m3ap_QCI(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, 255U, NULL, FALSE);
+ 0U, 255U, NULL, false);
return offset;
}
@@ -1029,7 +1031,7 @@ dissect_m3ap_MBMS_E_RAB_QoS_Parameters(tvbuff_t *tvb _U_, int offset _U_, asn1_c
static int
dissect_m3ap_MME_MBMS_M3AP_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, 65535U, NULL, FALSE);
+ 0U, 65535U, NULL, false);
return offset;
}
@@ -1039,7 +1041,7 @@ dissect_m3ap_MME_MBMS_M3AP_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *act
static int
dissect_m3ap_MCE_MBMS_M3AP_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, 65535U, NULL, FALSE);
+ 0U, 65535U, NULL, false);
return offset;
}
@@ -1065,7 +1067,7 @@ dissect_m3ap_MBMS_Service_associatedLogicalM3_ConnectionItem(tvbuff_t *tvb _U_,
static int
dissect_m3ap_MBMSServiceArea1(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 2, 2, FALSE, NULL);
+ 2, 2, false, NULL);
return offset;
}
@@ -1075,10 +1077,10 @@ dissect_m3ap_MBMSServiceArea1(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *act
static int
dissect_m3ap_MBMS_Service_Area(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
tvbuff_t *parameter_tvb=NULL;
- guint16 tvb_len;
+ uint16_t tvb_len;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- NO_BOUND, NO_BOUND, FALSE, &parameter_tvb);
+ NO_BOUND, NO_BOUND, false, &parameter_tvb);
if (!parameter_tvb)
@@ -1096,10 +1098,10 @@ dissect_m3ap_MBMS_Service_Area(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *ac
static int
dissect_m3ap_MBMS_Session_Duration(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
tvbuff_t *parameter_tvb=NULL;
- guint16 tvb_len;
+ uint16_t tvb_len;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 3, 3, FALSE, &parameter_tvb);
+ 3, 3, false, &parameter_tvb);
if (!parameter_tvb)
return offset;
@@ -1117,7 +1119,7 @@ dissect_m3ap_MBMS_Session_Duration(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t
static int
dissect_m3ap_MBMS_Session_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 1, 1, FALSE, NULL);
+ 1, 1, false, NULL);
return offset;
}
@@ -1127,7 +1129,7 @@ dissect_m3ap_MBMS_Session_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx
static int
dissect_m3ap_MCEname(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_PrintableString(tvb, offset, actx, tree, hf_index,
- 1, 150, TRUE,
+ 1, 150, true,
NULL);
return offset;
@@ -1138,10 +1140,10 @@ dissect_m3ap_MCEname(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, pr
static int
dissect_m3ap_MinimumTimeToMBMSDataTransfer(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
tvbuff_t *parameter_tvb=NULL;
- guint16 tvb_len;
+ uint16_t tvb_len;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 1, 1, FALSE, &parameter_tvb);
+ 1, 1, false, &parameter_tvb);
if (!parameter_tvb)
@@ -1163,7 +1165,7 @@ static const value_string m3ap_Reestablishment_vals[] = {
static int
dissect_m3ap_Reestablishment(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 1, NULL, TRUE, 0, NULL);
+ 1, NULL, true, 0, NULL);
return offset;
}
@@ -1183,7 +1185,7 @@ static const value_string m3ap_TimeToWait_vals[] = {
static int
dissect_m3ap_TimeToWait(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 6, NULL, TRUE, 0, NULL);
+ 6, NULL, true, 0, NULL);
return offset;
}
@@ -1193,7 +1195,7 @@ dissect_m3ap_TimeToWait(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_,
static int
dissect_m3ap_OCTET_STRING_SIZE_3(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
- 3, 3, FALSE, NULL);
+ 3, 3, false, NULL);
return offset;
}
@@ -1391,7 +1393,7 @@ static const value_string m3ap_ResetAll_vals[] = {
static int
dissect_m3ap_ResetAll(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
- 1, NULL, TRUE, 0, NULL);
+ 1, NULL, true, 0, NULL);
return offset;
}
@@ -1405,7 +1407,7 @@ static int
dissect_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListRes(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListRes, MBMS_Service_associatedLogicalM3_ConnectionListRes_sequence_of,
- 1, maxNrOfIndividualM3ConnectionsToReset, FALSE);
+ 1, maxNrOfIndividualM3ConnectionsToReset, false);
return offset;
}
@@ -1456,7 +1458,7 @@ static int
dissect_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck, MBMS_Service_associatedLogicalM3_ConnectionListResAck_sequence_of,
- 1, maxNrOfIndividualM3ConnectionsToReset, FALSE);
+ 1, maxNrOfIndividualM3ConnectionsToReset, false);
return offset;
}
@@ -1500,7 +1502,7 @@ static int
dissect_m3ap_MBMSServiceAreaListItem(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_m3ap_MBMSServiceAreaListItem, MBMSServiceAreaListItem_sequence_of,
- 1, maxnoofMBMSServiceAreaIdentitiesPerMCE, FALSE);
+ 1, maxnoofMBMSServiceAreaIdentitiesPerMCE, false);
return offset;
}
@@ -1696,7 +1698,7 @@ dissect_m3ap_M3AP_PDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p
static int dissect_Absolute_Time_ofMBMS_Data_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_Absolute_Time_ofMBMS_Data(tvb, offset, &asn1_ctx, tree, hf_m3ap_Absolute_Time_ofMBMS_Data_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1704,7 +1706,7 @@ static int dissect_Absolute_Time_ofMBMS_Data_PDU(tvbuff_t *tvb _U_, packet_info
static int dissect_AllocationAndRetentionPriority_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_AllocationAndRetentionPriority(tvb, offset, &asn1_ctx, tree, hf_m3ap_AllocationAndRetentionPriority_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1712,7 +1714,7 @@ static int dissect_AllocationAndRetentionPriority_PDU(tvbuff_t *tvb _U_, packet_
static int dissect_Cause_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_Cause(tvb, offset, &asn1_ctx, tree, hf_m3ap_Cause_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1720,7 +1722,7 @@ static int dissect_Cause_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tr
static int dissect_CriticalityDiagnostics_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_CriticalityDiagnostics(tvb, offset, &asn1_ctx, tree, hf_m3ap_CriticalityDiagnostics_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1728,7 +1730,7 @@ static int dissect_CriticalityDiagnostics_PDU(tvbuff_t *tvb _U_, packet_info *pi
static int dissect_Global_MCE_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_Global_MCE_ID(tvb, offset, &asn1_ctx, tree, hf_m3ap_Global_MCE_ID_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1736,7 +1738,7 @@ static int dissect_Global_MCE_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_,
static int dissect_MBMS_Cell_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMS_Cell_List(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMS_Cell_List_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1744,7 +1746,7 @@ static int dissect_MBMS_Cell_List_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_,
static int dissect_MBMS_E_RAB_QoS_Parameters_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMS_E_RAB_QoS_Parameters(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMS_E_RAB_QoS_Parameters_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1752,7 +1754,7 @@ static int dissect_MBMS_E_RAB_QoS_Parameters_PDU(tvbuff_t *tvb _U_, packet_info
static int dissect_MBMS_Service_associatedLogicalM3_ConnectionItem_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMS_Service_associatedLogicalM3_ConnectionItem(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionItem_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1760,7 +1762,7 @@ static int dissect_MBMS_Service_associatedLogicalM3_ConnectionItem_PDU(tvbuff_t
static int dissect_MBMS_Service_Area_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMS_Service_Area(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMS_Service_Area_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1768,7 +1770,7 @@ static int dissect_MBMS_Service_Area_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _
static int dissect_MBMS_Session_Duration_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMS_Session_Duration(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMS_Session_Duration_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1776,7 +1778,7 @@ static int dissect_MBMS_Session_Duration_PDU(tvbuff_t *tvb _U_, packet_info *pin
static int dissect_MBMS_Session_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMS_Session_ID(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMS_Session_ID_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1784,7 +1786,7 @@ static int dissect_MBMS_Session_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_
static int dissect_MCE_MBMS_M3AP_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MCE_MBMS_M3AP_ID(tvb, offset, &asn1_ctx, tree, hf_m3ap_MCE_MBMS_M3AP_ID_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1792,7 +1794,7 @@ static int dissect_MCE_MBMS_M3AP_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U
static int dissect_MCEname_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MCEname(tvb, offset, &asn1_ctx, tree, hf_m3ap_MCEname_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1800,7 +1802,7 @@ static int dissect_MCEname_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_
static int dissect_MinimumTimeToMBMSDataTransfer_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MinimumTimeToMBMSDataTransfer(tvb, offset, &asn1_ctx, tree, hf_m3ap_MinimumTimeToMBMSDataTransfer_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1808,7 +1810,7 @@ static int dissect_MinimumTimeToMBMSDataTransfer_PDU(tvbuff_t *tvb _U_, packet_i
static int dissect_MME_MBMS_M3AP_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MME_MBMS_M3AP_ID(tvb, offset, &asn1_ctx, tree, hf_m3ap_MME_MBMS_M3AP_ID_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1816,7 +1818,7 @@ static int dissect_MME_MBMS_M3AP_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U
static int dissect_Reestablishment_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_Reestablishment(tvb, offset, &asn1_ctx, tree, hf_m3ap_Reestablishment_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1824,7 +1826,7 @@ static int dissect_Reestablishment_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_
static int dissect_TimeToWait_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_TimeToWait(tvb, offset, &asn1_ctx, tree, hf_m3ap_TimeToWait_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1832,7 +1834,7 @@ static int dissect_TimeToWait_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, pro
static int dissect_TMGI_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_TMGI(tvb, offset, &asn1_ctx, tree, hf_m3ap_TMGI_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1840,7 +1842,7 @@ static int dissect_TMGI_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tre
static int dissect_TNL_Information_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_TNL_Information(tvb, offset, &asn1_ctx, tree, hf_m3ap_TNL_Information_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1848,7 +1850,7 @@ static int dissect_TNL_Information_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_
static int dissect_MBMSSessionStartRequest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionStartRequest(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionStartRequest_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1856,7 +1858,7 @@ static int dissect_MBMSSessionStartRequest_PDU(tvbuff_t *tvb _U_, packet_info *p
static int dissect_MBMSSessionStartResponse_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionStartResponse(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionStartResponse_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1864,7 +1866,7 @@ static int dissect_MBMSSessionStartResponse_PDU(tvbuff_t *tvb _U_, packet_info *
static int dissect_MBMSSessionStartFailure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionStartFailure(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionStartFailure_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1872,7 +1874,7 @@ static int dissect_MBMSSessionStartFailure_PDU(tvbuff_t *tvb _U_, packet_info *p
static int dissect_MBMSSessionStopRequest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionStopRequest(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionStopRequest_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1880,7 +1882,7 @@ static int dissect_MBMSSessionStopRequest_PDU(tvbuff_t *tvb _U_, packet_info *pi
static int dissect_MBMSSessionStopResponse_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionStopResponse(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionStopResponse_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1888,7 +1890,7 @@ static int dissect_MBMSSessionStopResponse_PDU(tvbuff_t *tvb _U_, packet_info *p
static int dissect_MBMSSessionUpdateRequest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionUpdateRequest(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionUpdateRequest_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1896,7 +1898,7 @@ static int dissect_MBMSSessionUpdateRequest_PDU(tvbuff_t *tvb _U_, packet_info *
static int dissect_MBMSSessionUpdateResponse_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionUpdateResponse(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionUpdateResponse_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1904,7 +1906,7 @@ static int dissect_MBMSSessionUpdateResponse_PDU(tvbuff_t *tvb _U_, packet_info
static int dissect_MBMSSessionUpdateFailure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSSessionUpdateFailure(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSSessionUpdateFailure_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1912,7 +1914,7 @@ static int dissect_MBMSSessionUpdateFailure_PDU(tvbuff_t *tvb _U_, packet_info *
static int dissect_ErrorIndication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_ErrorIndication(tvb, offset, &asn1_ctx, tree, hf_m3ap_ErrorIndication_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1920,7 +1922,7 @@ static int dissect_ErrorIndication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_
static int dissect_Reset_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_Reset(tvb, offset, &asn1_ctx, tree, hf_m3ap_Reset_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1928,7 +1930,7 @@ static int dissect_Reset_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tr
static int dissect_ResetType_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_ResetType(tvb, offset, &asn1_ctx, tree, hf_m3ap_ResetType_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1936,7 +1938,7 @@ static int dissect_ResetType_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot
static int dissect_ResetAcknowledge_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_ResetAcknowledge(tvb, offset, &asn1_ctx, tree, hf_m3ap_ResetAcknowledge_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1944,7 +1946,7 @@ static int dissect_ResetAcknowledge_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U
static int dissect_MBMS_Service_associatedLogicalM3_ConnectionListResAck_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMS_Service_associatedLogicalM3_ConnectionListResAck_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1952,7 +1954,7 @@ static int dissect_MBMS_Service_associatedLogicalM3_ConnectionListResAck_PDU(tvb
static int dissect_PrivateMessage_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_PrivateMessage(tvb, offset, &asn1_ctx, tree, hf_m3ap_PrivateMessage_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1960,7 +1962,7 @@ static int dissect_PrivateMessage_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_,
static int dissect_M3SetupRequest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_M3SetupRequest(tvb, offset, &asn1_ctx, tree, hf_m3ap_M3SetupRequest_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1968,7 +1970,7 @@ static int dissect_M3SetupRequest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_,
static int dissect_MBMSServiceAreaListItem_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MBMSServiceAreaListItem(tvb, offset, &asn1_ctx, tree, hf_m3ap_MBMSServiceAreaListItem_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1976,7 +1978,7 @@ static int dissect_MBMSServiceAreaListItem_PDU(tvbuff_t *tvb _U_, packet_info *p
static int dissect_M3SetupResponse_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_M3SetupResponse(tvb, offset, &asn1_ctx, tree, hf_m3ap_M3SetupResponse_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1984,7 +1986,7 @@ static int dissect_M3SetupResponse_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_
static int dissect_M3SetupFailure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_M3SetupFailure(tvb, offset, &asn1_ctx, tree, hf_m3ap_M3SetupFailure_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -1992,7 +1994,7 @@ static int dissect_M3SetupFailure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_,
static int dissect_MCEConfigurationUpdate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MCEConfigurationUpdate(tvb, offset, &asn1_ctx, tree, hf_m3ap_MCEConfigurationUpdate_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -2000,7 +2002,7 @@ static int dissect_MCEConfigurationUpdate_PDU(tvbuff_t *tvb _U_, packet_info *pi
static int dissect_MCEConfigurationUpdateAcknowledge_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MCEConfigurationUpdateAcknowledge(tvb, offset, &asn1_ctx, tree, hf_m3ap_MCEConfigurationUpdateAcknowledge_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -2008,7 +2010,7 @@ static int dissect_MCEConfigurationUpdateAcknowledge_PDU(tvbuff_t *tvb _U_, pack
static int dissect_MCEConfigurationUpdateFailure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_MCEConfigurationUpdateFailure(tvb, offset, &asn1_ctx, tree, hf_m3ap_MCEConfigurationUpdateFailure_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -2016,7 +2018,7 @@ static int dissect_MCEConfigurationUpdateFailure_PDU(tvbuff_t *tvb _U_, packet_i
static int dissect_M3AP_PDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
int offset = 0;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo);
offset = dissect_m3ap_M3AP_PDU(tvb, offset, &asn1_ctx, tree, hf_m3ap_M3AP_PDU_PDU);
offset += 7; offset >>= 3;
return offset;
@@ -2025,27 +2027,27 @@ static int dissect_M3AP_PDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto
static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
- return (dissector_try_uint_new(m3ap_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree, FALSE, NULL)) ? tvb_captured_length(tvb) : 0;
+ return (dissector_try_uint_new(m3ap_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree, false, NULL)) ? tvb_captured_length(tvb) : 0;
}
static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
- return (dissector_try_uint_new(m3ap_extension_dissector_table, ProtocolIE_ID, tvb, pinfo, tree, FALSE, NULL)) ? tvb_captured_length(tvb) : 0;
+ return (dissector_try_uint_new(m3ap_extension_dissector_table, ProtocolIE_ID, tvb, pinfo, tree, false, NULL)) ? tvb_captured_length(tvb) : 0;
}
static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
- return (dissector_try_uint_new(m3ap_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree, FALSE, NULL)) ? tvb_captured_length(tvb) : 0;
+ return (dissector_try_uint_new(m3ap_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree, false, NULL)) ? tvb_captured_length(tvb) : 0;
}
static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
- return (dissector_try_uint_new(m3ap_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree, FALSE, NULL)) ? tvb_captured_length(tvb) : 0;
+ return (dissector_try_uint_new(m3ap_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree, false, NULL)) ? tvb_captured_length(tvb) : 0;
}
static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
- return (dissector_try_uint_new(m3ap_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree, FALSE, NULL)) ? tvb_captured_length(tvb) : 0;
+ return (dissector_try_uint_new(m3ap_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree, false, NULL)) ? tvb_captured_length(tvb) : 0;
}
@@ -2386,11 +2388,11 @@ void proto_register_m3ap(void) {
NULL, HFILL }},
{ &hf_m3ap_mBMS_E_RAB_MaximumBitrateDL,
{ "mBMS-E-RAB-MaximumBitrateDL", "m3ap.mBMS_E_RAB_MaximumBitrateDL",
- FT_UINT64, BASE_DEC|BASE_UNIT_STRING, &units_bit_sec, 0,
+ FT_UINT64, BASE_DEC|BASE_UNIT_STRING, UNS(&units_bit_sec), 0,
"BitRate", HFILL }},
{ &hf_m3ap_mBMS_E_RAB_GuaranteedBitrateDL,
{ "mBMS-E-RAB-GuaranteedBitrateDL", "m3ap.mBMS_E_RAB_GuaranteedBitrateDL",
- FT_UINT64, BASE_DEC|BASE_UNIT_STRING, &units_bit_sec, 0,
+ FT_UINT64, BASE_DEC|BASE_UNIT_STRING, UNS(&units_bit_sec), 0,
"BitRate", HFILL }},
{ &hf_m3ap_MBMS_Cell_List_item,
{ "ECGI", "m3ap.ECGI_element",
@@ -2487,7 +2489,7 @@ void proto_register_m3ap(void) {
};
/* List of subtrees */
- static gint *ett[] = {
+ static int *ett[] = {
&ett_m3ap,
&ett_m3ap_IPAddress,
&ett_m3ap_PrivateIE_ID,
@@ -2567,12 +2569,12 @@ void proto_register_m3ap(void) {
void
proto_reg_handoff_m3ap(void)
{
- static gboolean inited = FALSE;
- static guint SctpPort;
+ static bool inited = false;
+ static unsigned SctpPort;
if( !inited ) {
dissector_add_uint("sctp.ppi", PROTO_3GPP_M3AP_PROTOCOL_ID, m3ap_handle);
- inited = TRUE;
+ inited = true;
dissector_add_uint("m3ap.ies", id_MME_MBMS_M3AP_ID, create_dissector_handle(dissect_MME_MBMS_M3AP_ID_PDU, proto_m3ap));
dissector_add_uint("m3ap.ies", id_MCE_MBMS_M3AP_ID, create_dissector_handle(dissect_MCE_MBMS_M3AP_ID_PDU, proto_m3ap));
dissector_add_uint("m3ap.ies", id_TMGI, create_dissector_handle(dissect_TMGI_PDU, proto_m3ap));