diff options
Diffstat (limited to 'epan/dissectors/packet-lcsap.c')
-rw-r--r-- | epan/dissectors/packet-lcsap.c | 758 |
1 files changed, 380 insertions, 378 deletions
diff --git a/epan/dissectors/packet-lcsap.c b/epan/dissectors/packet-lcsap.c index db8e89e1..5b661e9f 100644 --- a/epan/dissectors/packet-lcsap.c +++ b/epan/dissectors/packet-lcsap.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-lcsap.c */ -/* asn2wrs.py -L -p lcsap -c ./lcsap.cnf -s ./packet-lcsap-template -D . -O ../.. LCS-AP-CommonDataTypes.asn LCS-AP-Constants.asn LCS-AP-Containers.asn LCS-AP-IEs.asn LCS-AP-PDU-Contents.asn LCS-AP-PDU-Descriptions.asn */ +/* asn2wrs.py -q -L -p lcsap -c ./lcsap.cnf -s ./packet-lcsap-template -D . -O ../.. LCS-AP-CommonDataTypes.asn LCS-AP-Constants.asn LCS-AP-Containers.asn LCS-AP-IEs.asn LCS-AP-PDU-Contents.asn LCS-AP-PDU-Descriptions.asn */ /* packet-lcsap.c * Routines for LCS-AP packet dissembly. @@ -27,6 +27,7 @@ #include <epan/prefs.h> #include <epan/sctpppids.h> #include <epan/expert.h> +#include <wsutil/array.h> #include "packet-ber.h" #include "packet-per.h" @@ -102,248 +103,248 @@ typedef enum _ProtocolIE_ID_enum { } ProtocolIE_ID_enum; /* Initialize the protocol and registered fields */ -static int proto_lcsap = -1; - -static int hf_lcsap_pos_method = -1; -static int hf_lcsap_pos_usage = -1; -static int hf_lcsap_gnss_pos_method = -1; -static int hf_lcsap_gnss_id = -1; -static int hf_lcsap_gnss_pos_usage = -1; -static int hf_lcsap_APDU_PDU = -1; /* APDU */ -static int hf_lcsap_Accuracy_Fulfillment_Indicator_PDU = -1; /* Accuracy_Fulfillment_Indicator */ -static int hf_lcsap_Additional_PositioningDataSet_PDU = -1; /* Additional_PositioningDataSet */ -static int hf_lcsap_Barometric_Pressure_PDU = -1; /* Barometric_Pressure */ -static int hf_lcsap_Cell_Portion_ID_PDU = -1; /* Cell_Portion_ID */ -static int hf_lcsap_Ciphering_Data_PDU = -1; /* Ciphering_Data */ -static int hf_lcsap_Ciphering_Data_Ack_PDU = -1; /* Ciphering_Data_Ack */ -static int hf_lcsap_Ciphering_Data_Error_Report_PDU = -1; /* Ciphering_Data_Error_Report */ -static int hf_lcsap_Civic_Address_PDU = -1; /* Civic_Address */ -static int hf_lcsap_lcsap_Correlation_ID_PDU = -1; /* Correlation_ID */ -static int hf_lcsap_E_CGI_PDU = -1; /* E_CGI */ -static int hf_lcsap_Coverage_Level_PDU = -1; /* Coverage_Level */ -static int hf_lcsap_Geographical_Area_PDU = -1; /* Geographical_Area */ -static int hf_lcsap_IMSI_PDU = -1; /* IMSI */ -static int hf_lcsap_IMEI_PDU = -1; /* IMEI */ -static int hf_lcsap_Include_Velocity_PDU = -1; /* Include_Velocity */ -static int hf_lcsap_Location_Type_PDU = -1; /* Location_Type */ -static int hf_lcsap_LCS_Cause_PDU = -1; /* LCS_Cause */ -static int hf_lcsap_LCS_Client_Type_PDU = -1; /* LCS_Client_Type */ -static int hf_lcsap_LCS_Priority_PDU = -1; /* LCS_Priority */ -static int hf_lcsap_LCS_QoS_PDU = -1; /* LCS_QoS */ -static int hf_lcsap_LCS_Service_Type_ID_PDU = -1; /* LCS_Service_Type_ID */ -static int hf_lcsap_MultipleAPDUs_PDU = -1; /* MultipleAPDUs */ -static int hf_lcsap_Network_Element_PDU = -1; /* Network_Element */ -static int hf_lcsap_Payload_Type_PDU = -1; /* Payload_Type */ -static int hf_lcsap_lcsap_Positioning_Data_PDU = -1; /* Positioning_Data */ -static int hf_lcsap_RAT_Type_PDU = -1; /* RAT_Type */ -static int hf_lcsap_Return_Error_Type_PDU = -1; /* Return_Error_Type */ -static int hf_lcsap_Return_Error_Cause_PDU = -1; /* Return_Error_Cause */ -static int hf_lcsap_UE_Positioning_Capability_PDU = -1; /* UE_Positioning_Capability */ -static int hf_lcsap_UE_Country_Determination_Indication_PDU = -1; /* UE_Country_Determination_Indication */ -static int hf_lcsap_UE_Area_Indication_PDU = -1; /* UE_Area_Indication */ -static int hf_lcsap_Velocity_Estimate_PDU = -1; /* Velocity_Estimate */ -static int hf_lcsap_Location_Request_PDU = -1; /* Location_Request */ -static int hf_lcsap_Location_Response_PDU = -1; /* Location_Response */ -static int hf_lcsap_Location_Abort_Request_PDU = -1; /* Location_Abort_Request */ -static int hf_lcsap_Connection_Oriented_Information_PDU = -1; /* Connection_Oriented_Information */ -static int hf_lcsap_Connectionless_Information_PDU = -1; /* Connectionless_Information */ -static int hf_lcsap_Reset_Request_PDU = -1; /* Reset_Request */ -static int hf_lcsap_Reset_Acknowledge_PDU = -1; /* Reset_Acknowledge */ -static int hf_lcsap_Ciphering_Key_Data_PDU = -1; /* Ciphering_Key_Data */ -static int hf_lcsap_Ciphering_Key_Data_Result_PDU = -1; /* Ciphering_Key_Data_Result */ -static int hf_lcsap_LCS_AP_PDU_PDU = -1; /* LCS_AP_PDU */ -static int hf_lcsap_ProtocolIE_Container_item = -1; /* ProtocolIE_Field */ -static int hf_lcsap_id = -1; /* ProtocolIE_ID */ -static int hf_lcsap_criticality = -1; /* Criticality */ -static int hf_lcsap_ie_field_value = -1; /* T_ie_field_value */ -static int hf_lcsap_ProtocolExtensionContainer_item = -1; /* ProtocolExtensionField */ -static int hf_lcsap_ext_id = -1; /* ProtocolExtensionID */ -static int hf_lcsap_extensionValue = -1; /* T_extensionValue */ -static int hf_lcsap_Additional_PositioningDataSet_item = -1; /* Additional_PositioningMethodAndUsage */ -static int hf_lcsap_direction_Of_Altitude = -1; /* Direction_Of_Altitude */ -static int hf_lcsap_altitude = -1; /* Altitude */ -static int hf_lcsap_Ciphering_Data_item = -1; /* Ciphering_Data_Set */ -static int hf_lcsap_Ciphering_Data_Ack_item = -1; /* Ciphering_Set_ID */ -static int hf_lcsap_Ciphering_Data_Error_Report_item = -1; /* Ciphering_Data_Error_Report_Contents */ -static int hf_lcsap_ciphering_Set_ID = -1; /* Ciphering_Set_ID */ -static int hf_lcsap_ciphering_Key = -1; /* Ciphering_Key */ -static int hf_lcsap_c0 = -1; /* C0 */ -static int hf_lcsap_sib_Types = -1; /* SIB_Types */ -static int hf_lcsap_validity_Start_Time = -1; /* Validity_Start_Time */ -static int hf_lcsap_validity_Duration = -1; /* Validity_Duration */ -static int hf_lcsap_tais_List = -1; /* TAIs_List */ -static int hf_lcsap_storage_Outcome = -1; /* Storage_Outcome */ -static int hf_lcsap_pLMNidentity = -1; /* PLMN_ID */ -static int hf_lcsap_cell_ID = -1; /* CellIdentity */ -static int hf_lcsap_iE_Extensions = -1; /* ProtocolExtensionContainer */ -static int hf_lcsap_geographical_Coordinates = -1; /* Geographical_Coordinates */ -static int hf_lcsap_uncertainty_Ellipse = -1; /* Uncertainty_Ellipse */ -static int hf_lcsap_confidence = -1; /* Confidence */ -static int hf_lcsap_altitude_And_Direction = -1; /* Altitude_And_Direction */ -static int hf_lcsap_uncertainty_Altitude = -1; /* Uncertainty_Altitude */ -static int hf_lcsap_inner_Radius = -1; /* Inner_Radius */ -static int hf_lcsap_uncertainty_Radius = -1; /* Uncertainty_Code */ -static int hf_lcsap_offset_Angle = -1; /* Angle */ -static int hf_lcsap_included_Angle = -1; /* Angle */ -static int hf_lcsap_macro_eNB_ID = -1; /* Macro_eNB_ID */ -static int hf_lcsap_home_eNB_ID = -1; /* Home_eNB_ID */ -static int hf_lcsap_short_macro_eNB_ID = -1; /* Short_Macro_eNB_ID */ -static int hf_lcsap_long_macro_eNB_ID = -1; /* Long_Macro_eNB_ID */ -static int hf_lcsap_point = -1; /* Point */ -static int hf_lcsap_point_With_Uncertainty = -1; /* Point_With_Uncertainty */ -static int hf_lcsap_ellipsoidPoint_With_Uncertainty_Ellipse = -1; /* Ellipsoid_Point_With_Uncertainty_Ellipse */ -static int hf_lcsap_polygon = -1; /* Polygon */ -static int hf_lcsap_ellipsoid_Point_With_Altitude = -1; /* Ellipsoid_Point_With_Altitude */ -static int hf_lcsap_ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid = -1; /* Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid */ -static int hf_lcsap_ellipsoid_Arc = -1; /* Ellipsoid_Arc */ -static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Uncertainty_Ellipse = -1; /* High_Accuracy_Ellipsoid_Point_With_Uncertainty_Ellipse */ -static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid = -1; /* High_Accuracy_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid */ -static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Scalable_Uncertainty_Ellipse = -1; /* High_Accuracy_Ellipsoid_Point_With_Scalable_Uncertainty_Ellipse */ -static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Altitude_And_Scalable_Uncertainty_Ellipsoid = -1; /* High_Accuracy_Ellipsoid_Point_With_Altitude_And_Scalable_Uncertainty_Ellipsoid */ -static int hf_lcsap_latitudeSign = -1; /* LatitudeSign */ -static int hf_lcsap_degreesLatitude = -1; /* DegreesLatitude */ -static int hf_lcsap_degreesLongitude = -1; /* DegreesLongitude */ -static int hf_lcsap_pLMN_ID = -1; /* PLMN_ID */ -static int hf_lcsap_eNB_ID = -1; /* ENB_ID */ -static int hf_lcsap_GNSS_Positioning_Data_Set_item = -1; /* GNSS_Positioning_Method_And_Usage */ -static int hf_lcsap_high_Accuracy_Geographical_Coordinates = -1; /* High_Accuracy_Geographical_Coordinates */ -static int hf_lcsap_high_Accuracy_Uncertainty_Ellipse = -1; /* High_Accuracy_Uncertainty_Ellipse */ -static int hf_lcsap_high_Accuracy_Scalable_Uncertainty_Ellipse = -1; /* High_Accuracy_Scalable_Uncertainty_Ellipse */ -static int hf_lcsap_high_Accuracy_Altitude = -1; /* High_Accuracy_Altitude */ -static int hf_lcsap_high_Accuracy_Uncertainty_Altitude = -1; /* High_Accuracy_Uncertainty_Code */ -static int hf_lcsap_vertical_Confidence = -1; /* Confidence */ -static int hf_lcsap_high_Accuracy_Scalable_Uncertainty_Altitude = -1; /* High_Accuracy_Scalable_Uncertainty_Altitude */ -static int hf_lcsap_high_Accuracy_DegreesLatitude = -1; /* High_Accuracy_DegreesLatitude */ -static int hf_lcsap_high_Accuracy_DegreesLongitude = -1; /* High_Accuracy_DegreesLongitude */ -static int hf_lcsap_high_Accuracy_Uncertainty_SemiMajor = -1; /* High_Accuracy_Uncertainty_Code */ -static int hf_lcsap_high_Accuracy_Uncertainty_SemiMinor = -1; /* High_Accuracy_Uncertainty_Code */ -static int hf_lcsap_orientation_Major_Axis = -1; /* INTEGER_0_179 */ -static int hf_lcsap_high_Accuracy_Extended_Uncertainty_SemiMajor = -1; /* High_Accuracy_Extended_Uncertainty_Code */ -static int hf_lcsap_high_Accuracy_Extended_Uncertainty_SemiMinor = -1; /* High_Accuracy_Extended_Uncertainty_Code */ -static int hf_lcsap_high_Accuracy_Extended_Uncertainty_Ellipse = -1; /* High_Accuracy_Extended_Uncertainty_Ellipse */ -static int hf_lcsap_high_Accuracy_Extended_Uncertainty_Altitude = -1; /* High_Accuracy_Extended_Uncertainty_Code */ -static int hf_lcsap_bearing = -1; /* INTEGER_0_359 */ -static int hf_lcsap_horizontal_Speed = -1; /* INTEGER_0_2047 */ -static int hf_lcsap_horizontal_Speed_And_Bearing = -1; /* Horizontal_Speed_And_Bearing */ -static int hf_lcsap_vertical_Velocity = -1; /* Vertical_Velocity */ -static int hf_lcsap_uncertainty_Speed = -1; /* INTEGER_0_255 */ -static int hf_lcsap_horizontal_Uncertainty_Speed = -1; /* INTEGER_0_255 */ -static int hf_lcsap_vertical_Uncertainty_Speed = -1; /* INTEGER_0_255 */ -static int hf_lcsap_radio_Network_Layer = -1; /* Radio_Network_Layer_Cause */ -static int hf_lcsap_transport_Layer = -1; /* Transport_Layer_Cause */ -static int hf_lcsap_protocol = -1; /* Protocol_Cause */ -static int hf_lcsap_misc = -1; /* Misc_Cause */ -static int hf_lcsap_horizontal_Accuracy = -1; /* Horizontal_Accuracy */ -static int hf_lcsap_vertical_Requested = -1; /* Vertical_Requested */ -static int hf_lcsap_vertical_Accuracy = -1; /* Vertical_Accuracy */ -static int hf_lcsap_response_Time = -1; /* Response_Time */ -static int hf_lcsap_MultipleAPDUs_item = -1; /* APDU */ -static int hf_lcsap_global_eNB_ID = -1; /* Global_eNB_ID */ -static int hf_lcsap_e_SMLC_ID = -1; /* E_SMLC_ID */ -static int hf_lcsap_uncertainty_Code = -1; /* Uncertainty_Code */ -static int hf_lcsap_Polygon_item = -1; /* Polygon_Point */ -static int hf_lcsap_positioning_Data_Set = -1; /* Positioning_Data_Set */ -static int hf_lcsap_gNSS_Positioning_Data_Set = -1; /* GNSS_Positioning_Data_Set */ -static int hf_lcsap_Positioning_Data_Set_item = -1; /* Positioning_Method_And_Usage */ -static int hf_lcsap_uncertainty_SemiMajor = -1; /* Uncertainty_Code */ -static int hf_lcsap_uncertainty_SemiMinor = -1; /* Uncertainty_Code */ -static int hf_lcsap_orientation_Major_Axis_01 = -1; /* Orientation_Major_Axis */ -static int hf_lcsap_lPP = -1; /* BOOLEAN */ -static int hf_lcsap_country = -1; /* Country */ -static int hf_lcsap_international_area_indication = -1; /* International_Area_Indication */ -static int hf_lcsap_horizontal_Velocity = -1; /* Horizontal_Velocity */ -static int hf_lcsap_horizontal_With_Vertical_Velocity = -1; /* Horizontal_With_Vertical_Velocity */ -static int hf_lcsap_horizontal_Velocity_With_Uncertainty = -1; /* Horizontal_Velocity_With_Uncertainty */ -static int hf_lcsap_horizontal_With_Vertical_Velocity_And_Uncertainty = -1; /* Horizontal_With_Vertical_Velocity_And_Uncertainty */ -static int hf_lcsap_vertical_Speed = -1; /* INTEGER_0_255 */ -static int hf_lcsap_vertical_Speed_Direction = -1; /* Vertical_Speed_Direction */ -static int hf_lcsap_protocolIEs = -1; /* ProtocolIE_Container */ -static int hf_lcsap_protocolExtensions = -1; /* ProtocolExtensionContainer */ -static int hf_lcsap_initiatingMessage = -1; /* InitiatingMessage */ -static int hf_lcsap_successfulOutcome = -1; /* SuccessfulOutcome */ -static int hf_lcsap_unsuccessfulOutcome = -1; /* UnsuccessfulOutcome */ -static int hf_lcsap_procedureCode = -1; /* ProcedureCode */ -static int hf_lcsap_initiatingMessagevalue = -1; /* InitiatingMessage_value */ -static int hf_lcsap_successfulOutcome_value = -1; /* SuccessfulOutcome_value */ -static int hf_lcsap_unsuccessfulOutcome_value = -1; /* UnsuccessfulOutcome_value */ +static int proto_lcsap; + +static int hf_lcsap_pos_method; +static int hf_lcsap_pos_usage; +static int hf_lcsap_gnss_pos_method; +static int hf_lcsap_gnss_id; +static int hf_lcsap_gnss_pos_usage; +static int hf_lcsap_APDU_PDU; /* APDU */ +static int hf_lcsap_Accuracy_Fulfillment_Indicator_PDU; /* Accuracy_Fulfillment_Indicator */ +static int hf_lcsap_Additional_PositioningDataSet_PDU; /* Additional_PositioningDataSet */ +static int hf_lcsap_Barometric_Pressure_PDU; /* Barometric_Pressure */ +static int hf_lcsap_Cell_Portion_ID_PDU; /* Cell_Portion_ID */ +static int hf_lcsap_Ciphering_Data_PDU; /* Ciphering_Data */ +static int hf_lcsap_Ciphering_Data_Ack_PDU; /* Ciphering_Data_Ack */ +static int hf_lcsap_Ciphering_Data_Error_Report_PDU; /* Ciphering_Data_Error_Report */ +static int hf_lcsap_Civic_Address_PDU; /* Civic_Address */ +static int hf_lcsap_lcsap_Correlation_ID_PDU; /* Correlation_ID */ +static int hf_lcsap_E_CGI_PDU; /* E_CGI */ +static int hf_lcsap_Coverage_Level_PDU; /* Coverage_Level */ +static int hf_lcsap_Geographical_Area_PDU; /* Geographical_Area */ +static int hf_lcsap_IMSI_PDU; /* IMSI */ +static int hf_lcsap_IMEI_PDU; /* IMEI */ +static int hf_lcsap_Include_Velocity_PDU; /* Include_Velocity */ +static int hf_lcsap_Location_Type_PDU; /* Location_Type */ +static int hf_lcsap_LCS_Cause_PDU; /* LCS_Cause */ +static int hf_lcsap_LCS_Client_Type_PDU; /* LCS_Client_Type */ +static int hf_lcsap_LCS_Priority_PDU; /* LCS_Priority */ +static int hf_lcsap_LCS_QoS_PDU; /* LCS_QoS */ +static int hf_lcsap_LCS_Service_Type_ID_PDU; /* LCS_Service_Type_ID */ +static int hf_lcsap_MultipleAPDUs_PDU; /* MultipleAPDUs */ +static int hf_lcsap_Network_Element_PDU; /* Network_Element */ +static int hf_lcsap_Payload_Type_PDU; /* Payload_Type */ +static int hf_lcsap_lcsap_Positioning_Data_PDU; /* Positioning_Data */ +static int hf_lcsap_RAT_Type_PDU; /* RAT_Type */ +static int hf_lcsap_Return_Error_Type_PDU; /* Return_Error_Type */ +static int hf_lcsap_Return_Error_Cause_PDU; /* Return_Error_Cause */ +static int hf_lcsap_UE_Positioning_Capability_PDU; /* UE_Positioning_Capability */ +static int hf_lcsap_UE_Country_Determination_Indication_PDU; /* UE_Country_Determination_Indication */ +static int hf_lcsap_UE_Area_Indication_PDU; /* UE_Area_Indication */ +static int hf_lcsap_Velocity_Estimate_PDU; /* Velocity_Estimate */ +static int hf_lcsap_Location_Request_PDU; /* Location_Request */ +static int hf_lcsap_Location_Response_PDU; /* Location_Response */ +static int hf_lcsap_Location_Abort_Request_PDU; /* Location_Abort_Request */ +static int hf_lcsap_Connection_Oriented_Information_PDU; /* Connection_Oriented_Information */ +static int hf_lcsap_Connectionless_Information_PDU; /* Connectionless_Information */ +static int hf_lcsap_Reset_Request_PDU; /* Reset_Request */ +static int hf_lcsap_Reset_Acknowledge_PDU; /* Reset_Acknowledge */ +static int hf_lcsap_Ciphering_Key_Data_PDU; /* Ciphering_Key_Data */ +static int hf_lcsap_Ciphering_Key_Data_Result_PDU; /* Ciphering_Key_Data_Result */ +static int hf_lcsap_LCS_AP_PDU_PDU; /* LCS_AP_PDU */ +static int hf_lcsap_ProtocolIE_Container_item; /* ProtocolIE_Field */ +static int hf_lcsap_id; /* ProtocolIE_ID */ +static int hf_lcsap_criticality; /* Criticality */ +static int hf_lcsap_ie_field_value; /* T_ie_field_value */ +static int hf_lcsap_ProtocolExtensionContainer_item; /* ProtocolExtensionField */ +static int hf_lcsap_ext_id; /* ProtocolExtensionID */ +static int hf_lcsap_extensionValue; /* T_extensionValue */ +static int hf_lcsap_Additional_PositioningDataSet_item; /* Additional_PositioningMethodAndUsage */ +static int hf_lcsap_direction_Of_Altitude; /* Direction_Of_Altitude */ +static int hf_lcsap_altitude; /* Altitude */ +static int hf_lcsap_Ciphering_Data_item; /* Ciphering_Data_Set */ +static int hf_lcsap_Ciphering_Data_Ack_item; /* Ciphering_Set_ID */ +static int hf_lcsap_Ciphering_Data_Error_Report_item; /* Ciphering_Data_Error_Report_Contents */ +static int hf_lcsap_ciphering_Set_ID; /* Ciphering_Set_ID */ +static int hf_lcsap_ciphering_Key; /* Ciphering_Key */ +static int hf_lcsap_c0; /* C0 */ +static int hf_lcsap_sib_Types; /* SIB_Types */ +static int hf_lcsap_validity_Start_Time; /* Validity_Start_Time */ +static int hf_lcsap_validity_Duration; /* Validity_Duration */ +static int hf_lcsap_tais_List; /* TAIs_List */ +static int hf_lcsap_storage_Outcome; /* Storage_Outcome */ +static int hf_lcsap_pLMNidentity; /* PLMN_ID */ +static int hf_lcsap_cell_ID; /* CellIdentity */ +static int hf_lcsap_iE_Extensions; /* ProtocolExtensionContainer */ +static int hf_lcsap_geographical_Coordinates; /* Geographical_Coordinates */ +static int hf_lcsap_uncertainty_Ellipse; /* Uncertainty_Ellipse */ +static int hf_lcsap_confidence; /* Confidence */ +static int hf_lcsap_altitude_And_Direction; /* Altitude_And_Direction */ +static int hf_lcsap_uncertainty_Altitude; /* Uncertainty_Altitude */ +static int hf_lcsap_inner_Radius; /* Inner_Radius */ +static int hf_lcsap_uncertainty_Radius; /* Uncertainty_Code */ +static int hf_lcsap_offset_Angle; /* Angle */ +static int hf_lcsap_included_Angle; /* Angle */ +static int hf_lcsap_macro_eNB_ID; /* Macro_eNB_ID */ +static int hf_lcsap_home_eNB_ID; /* Home_eNB_ID */ +static int hf_lcsap_short_macro_eNB_ID; /* Short_Macro_eNB_ID */ +static int hf_lcsap_long_macro_eNB_ID; /* Long_Macro_eNB_ID */ +static int hf_lcsap_point; /* Point */ +static int hf_lcsap_point_With_Uncertainty; /* Point_With_Uncertainty */ +static int hf_lcsap_ellipsoidPoint_With_Uncertainty_Ellipse; /* Ellipsoid_Point_With_Uncertainty_Ellipse */ +static int hf_lcsap_polygon; /* Polygon */ +static int hf_lcsap_ellipsoid_Point_With_Altitude; /* Ellipsoid_Point_With_Altitude */ +static int hf_lcsap_ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid; /* Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid */ +static int hf_lcsap_ellipsoid_Arc; /* Ellipsoid_Arc */ +static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Uncertainty_Ellipse; /* High_Accuracy_Ellipsoid_Point_With_Uncertainty_Ellipse */ +static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid; /* High_Accuracy_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid */ +static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Scalable_Uncertainty_Ellipse; /* High_Accuracy_Ellipsoid_Point_With_Scalable_Uncertainty_Ellipse */ +static int hf_lcsap_high_Accuracy_Ellipsoid_Point_With_Altitude_And_Scalable_Uncertainty_Ellipsoid; /* High_Accuracy_Ellipsoid_Point_With_Altitude_And_Scalable_Uncertainty_Ellipsoid */ +static int hf_lcsap_latitudeSign; /* LatitudeSign */ +static int hf_lcsap_degreesLatitude; /* DegreesLatitude */ +static int hf_lcsap_degreesLongitude; /* DegreesLongitude */ +static int hf_lcsap_pLMN_ID; /* PLMN_ID */ +static int hf_lcsap_eNB_ID; /* ENB_ID */ +static int hf_lcsap_GNSS_Positioning_Data_Set_item; /* GNSS_Positioning_Method_And_Usage */ +static int hf_lcsap_high_Accuracy_Geographical_Coordinates; /* High_Accuracy_Geographical_Coordinates */ +static int hf_lcsap_high_Accuracy_Uncertainty_Ellipse; /* High_Accuracy_Uncertainty_Ellipse */ +static int hf_lcsap_high_Accuracy_Scalable_Uncertainty_Ellipse; /* High_Accuracy_Scalable_Uncertainty_Ellipse */ +static int hf_lcsap_high_Accuracy_Altitude; /* High_Accuracy_Altitude */ +static int hf_lcsap_high_Accuracy_Uncertainty_Altitude; /* High_Accuracy_Uncertainty_Code */ +static int hf_lcsap_vertical_Confidence; /* Confidence */ +static int hf_lcsap_high_Accuracy_Scalable_Uncertainty_Altitude; /* High_Accuracy_Scalable_Uncertainty_Altitude */ +static int hf_lcsap_high_Accuracy_DegreesLatitude; /* High_Accuracy_DegreesLatitude */ +static int hf_lcsap_high_Accuracy_DegreesLongitude; /* High_Accuracy_DegreesLongitude */ +static int hf_lcsap_high_Accuracy_Uncertainty_SemiMajor; /* High_Accuracy_Uncertainty_Code */ +static int hf_lcsap_high_Accuracy_Uncertainty_SemiMinor; /* High_Accuracy_Uncertainty_Code */ +static int hf_lcsap_orientation_Major_Axis; /* INTEGER_0_179 */ +static int hf_lcsap_high_Accuracy_Extended_Uncertainty_SemiMajor; /* High_Accuracy_Extended_Uncertainty_Code */ +static int hf_lcsap_high_Accuracy_Extended_Uncertainty_SemiMinor; /* High_Accuracy_Extended_Uncertainty_Code */ +static int hf_lcsap_high_Accuracy_Extended_Uncertainty_Ellipse; /* High_Accuracy_Extended_Uncertainty_Ellipse */ +static int hf_lcsap_high_Accuracy_Extended_Uncertainty_Altitude; /* High_Accuracy_Extended_Uncertainty_Code */ +static int hf_lcsap_bearing; /* INTEGER_0_359 */ +static int hf_lcsap_horizontal_Speed; /* INTEGER_0_2047 */ +static int hf_lcsap_horizontal_Speed_And_Bearing; /* Horizontal_Speed_And_Bearing */ +static int hf_lcsap_vertical_Velocity; /* Vertical_Velocity */ +static int hf_lcsap_uncertainty_Speed; /* INTEGER_0_255 */ +static int hf_lcsap_horizontal_Uncertainty_Speed; /* INTEGER_0_255 */ +static int hf_lcsap_vertical_Uncertainty_Speed; /* INTEGER_0_255 */ +static int hf_lcsap_radio_Network_Layer; /* Radio_Network_Layer_Cause */ +static int hf_lcsap_transport_Layer; /* Transport_Layer_Cause */ +static int hf_lcsap_protocol; /* Protocol_Cause */ +static int hf_lcsap_misc; /* Misc_Cause */ +static int hf_lcsap_horizontal_Accuracy; /* Horizontal_Accuracy */ +static int hf_lcsap_vertical_Requested; /* Vertical_Requested */ +static int hf_lcsap_vertical_Accuracy; /* Vertical_Accuracy */ +static int hf_lcsap_response_Time; /* Response_Time */ +static int hf_lcsap_MultipleAPDUs_item; /* APDU */ +static int hf_lcsap_global_eNB_ID; /* Global_eNB_ID */ +static int hf_lcsap_e_SMLC_ID; /* E_SMLC_ID */ +static int hf_lcsap_uncertainty_Code; /* Uncertainty_Code */ +static int hf_lcsap_Polygon_item; /* Polygon_Point */ +static int hf_lcsap_positioning_Data_Set; /* Positioning_Data_Set */ +static int hf_lcsap_gNSS_Positioning_Data_Set; /* GNSS_Positioning_Data_Set */ +static int hf_lcsap_Positioning_Data_Set_item; /* Positioning_Method_And_Usage */ +static int hf_lcsap_uncertainty_SemiMajor; /* Uncertainty_Code */ +static int hf_lcsap_uncertainty_SemiMinor; /* Uncertainty_Code */ +static int hf_lcsap_orientation_Major_Axis_01; /* Orientation_Major_Axis */ +static int hf_lcsap_lPP; /* BOOLEAN */ +static int hf_lcsap_country; /* Country */ +static int hf_lcsap_international_area_indication; /* International_Area_Indication */ +static int hf_lcsap_horizontal_Velocity; /* Horizontal_Velocity */ +static int hf_lcsap_horizontal_With_Vertical_Velocity; /* Horizontal_With_Vertical_Velocity */ +static int hf_lcsap_horizontal_Velocity_With_Uncertainty; /* Horizontal_Velocity_With_Uncertainty */ +static int hf_lcsap_horizontal_With_Vertical_Velocity_And_Uncertainty; /* Horizontal_With_Vertical_Velocity_And_Uncertainty */ +static int hf_lcsap_vertical_Speed; /* INTEGER_0_255 */ +static int hf_lcsap_vertical_Speed_Direction; /* Vertical_Speed_Direction */ +static int hf_lcsap_protocolIEs; /* ProtocolIE_Container */ +static int hf_lcsap_protocolExtensions; /* ProtocolExtensionContainer */ +static int hf_lcsap_initiatingMessage; /* InitiatingMessage */ +static int hf_lcsap_successfulOutcome; /* SuccessfulOutcome */ +static int hf_lcsap_unsuccessfulOutcome; /* UnsuccessfulOutcome */ +static int hf_lcsap_procedureCode; /* ProcedureCode */ +static int hf_lcsap_initiatingMessagevalue; /* InitiatingMessage_value */ +static int hf_lcsap_successfulOutcome_value; /* SuccessfulOutcome_value */ +static int hf_lcsap_unsuccessfulOutcome_value; /* UnsuccessfulOutcome_value */ /* Initialize the subtree pointers */ -static int ett_lcsap = -1; -static int ett_lcsap_plmnd_id = -1; -static int ett_lcsap_imsi = -1; -static int ett_lcsap_civic_address = -1; - -static gint ett_lcsap_ProtocolIE_Container = -1; -static gint ett_lcsap_ProtocolIE_Field = -1; -static gint ett_lcsap_ProtocolExtensionContainer = -1; -static gint ett_lcsap_ProtocolExtensionField = -1; -static gint ett_lcsap_Additional_PositioningDataSet = -1; -static gint ett_lcsap_Altitude_And_Direction = -1; -static gint ett_lcsap_Ciphering_Data = -1; -static gint ett_lcsap_Ciphering_Data_Ack = -1; -static gint ett_lcsap_Ciphering_Data_Error_Report = -1; -static gint ett_lcsap_Ciphering_Data_Set = -1; -static gint ett_lcsap_Ciphering_Data_Error_Report_Contents = -1; -static gint ett_lcsap_E_CGI = -1; -static gint ett_lcsap_Ellipsoid_Point_With_Uncertainty_Ellipse = -1; -static gint ett_lcsap_Ellipsoid_Point_With_Altitude = -1; -static gint ett_lcsap_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid = -1; -static gint ett_lcsap_Ellipsoid_Arc = -1; -static gint ett_lcsap_ENB_ID = -1; -static gint ett_lcsap_Geographical_Area = -1; -static gint ett_lcsap_Geographical_Coordinates = -1; -static gint ett_lcsap_Global_eNB_ID = -1; -static gint ett_lcsap_GNSS_Positioning_Data_Set = -1; -static gint ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Uncertainty_Ellipse = -1; -static gint ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Scalable_Uncertainty_Ellipse = -1; -static gint ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid = -1; -static gint ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Altitude_And_Scalable_Uncertainty_Ellipsoid = -1; -static gint ett_lcsap_High_Accuracy_Geographical_Coordinates = -1; -static gint ett_lcsap_High_Accuracy_Uncertainty_Ellipse = -1; -static gint ett_lcsap_High_Accuracy_Extended_Uncertainty_Ellipse = -1; -static gint ett_lcsap_High_Accuracy_Scalable_Uncertainty_Ellipse = -1; -static gint ett_lcsap_High_Accuracy_Scalable_Uncertainty_Altitude = -1; -static gint ett_lcsap_Horizontal_Speed_And_Bearing = -1; -static gint ett_lcsap_Horizontal_Velocity = -1; -static gint ett_lcsap_Horizontal_With_Vertical_Velocity = -1; -static gint ett_lcsap_Horizontal_Velocity_With_Uncertainty = -1; -static gint ett_lcsap_Horizontal_With_Vertical_Velocity_And_Uncertainty = -1; -static gint ett_lcsap_LCS_Cause = -1; -static gint ett_lcsap_LCS_QoS = -1; -static gint ett_lcsap_MultipleAPDUs = -1; -static gint ett_lcsap_Network_Element = -1; -static gint ett_lcsap_Point = -1; -static gint ett_lcsap_Point_With_Uncertainty = -1; -static gint ett_lcsap_Polygon = -1; -static gint ett_lcsap_Polygon_Point = -1; -static gint ett_lcsap_Positioning_Data = -1; -static gint ett_lcsap_Positioning_Data_Set = -1; -static gint ett_lcsap_Uncertainty_Ellipse = -1; -static gint ett_lcsap_UE_Positioning_Capability = -1; -static gint ett_lcsap_UE_Area_Indication = -1; -static gint ett_lcsap_Velocity_Estimate = -1; -static gint ett_lcsap_Vertical_Velocity = -1; -static gint ett_lcsap_Location_Request = -1; -static gint ett_lcsap_Location_Response = -1; -static gint ett_lcsap_Location_Abort_Request = -1; -static gint ett_lcsap_Connection_Oriented_Information = -1; -static gint ett_lcsap_Connectionless_Information = -1; -static gint ett_lcsap_Reset_Request = -1; -static gint ett_lcsap_Reset_Acknowledge = -1; -static gint ett_lcsap_Ciphering_Key_Data = -1; -static gint ett_lcsap_Ciphering_Key_Data_Result = -1; -static gint ett_lcsap_LCS_AP_PDU = -1; -static gint ett_lcsap_InitiatingMessage = -1; -static gint ett_lcsap_SuccessfulOutcome = -1; -static gint ett_lcsap_UnsuccessfulOutcome = -1; - -static expert_field ei_lcsap_civic_data_not_xml = EI_INIT; +static int ett_lcsap; +static int ett_lcsap_plmnd_id; +static int ett_lcsap_imsi; +static int ett_lcsap_civic_address; + +static int ett_lcsap_ProtocolIE_Container; +static int ett_lcsap_ProtocolIE_Field; +static int ett_lcsap_ProtocolExtensionContainer; +static int ett_lcsap_ProtocolExtensionField; +static int ett_lcsap_Additional_PositioningDataSet; +static int ett_lcsap_Altitude_And_Direction; +static int ett_lcsap_Ciphering_Data; +static int ett_lcsap_Ciphering_Data_Ack; +static int ett_lcsap_Ciphering_Data_Error_Report; +static int ett_lcsap_Ciphering_Data_Set; +static int ett_lcsap_Ciphering_Data_Error_Report_Contents; +static int ett_lcsap_E_CGI; +static int ett_lcsap_Ellipsoid_Point_With_Uncertainty_Ellipse; +static int ett_lcsap_Ellipsoid_Point_With_Altitude; +static int ett_lcsap_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid; +static int ett_lcsap_Ellipsoid_Arc; +static int ett_lcsap_ENB_ID; +static int ett_lcsap_Geographical_Area; +static int ett_lcsap_Geographical_Coordinates; +static int ett_lcsap_Global_eNB_ID; +static int ett_lcsap_GNSS_Positioning_Data_Set; +static int ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Uncertainty_Ellipse; +static int ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Scalable_Uncertainty_Ellipse; +static int ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid; +static int ett_lcsap_High_Accuracy_Ellipsoid_Point_With_Altitude_And_Scalable_Uncertainty_Ellipsoid; +static int ett_lcsap_High_Accuracy_Geographical_Coordinates; +static int ett_lcsap_High_Accuracy_Uncertainty_Ellipse; +static int ett_lcsap_High_Accuracy_Extended_Uncertainty_Ellipse; +static int ett_lcsap_High_Accuracy_Scalable_Uncertainty_Ellipse; +static int ett_lcsap_High_Accuracy_Scalable_Uncertainty_Altitude; +static int ett_lcsap_Horizontal_Speed_And_Bearing; +static int ett_lcsap_Horizontal_Velocity; +static int ett_lcsap_Horizontal_With_Vertical_Velocity; +static int ett_lcsap_Horizontal_Velocity_With_Uncertainty; +static int ett_lcsap_Horizontal_With_Vertical_Velocity_And_Uncertainty; +static int ett_lcsap_LCS_Cause; +static int ett_lcsap_LCS_QoS; +static int ett_lcsap_MultipleAPDUs; +static int ett_lcsap_Network_Element; +static int ett_lcsap_Point; +static int ett_lcsap_Point_With_Uncertainty; +static int ett_lcsap_Polygon; +static int ett_lcsap_Polygon_Point; +static int ett_lcsap_Positioning_Data; +static int ett_lcsap_Positioning_Data_Set; +static int ett_lcsap_Uncertainty_Ellipse; +static int ett_lcsap_UE_Positioning_Capability; +static int ett_lcsap_UE_Area_Indication; +static int ett_lcsap_Velocity_Estimate; +static int ett_lcsap_Vertical_Velocity; +static int ett_lcsap_Location_Request; +static int ett_lcsap_Location_Response; +static int ett_lcsap_Location_Abort_Request; +static int ett_lcsap_Connection_Oriented_Information; +static int ett_lcsap_Connectionless_Information; +static int ett_lcsap_Reset_Request; +static int ett_lcsap_Reset_Acknowledge; +static int ett_lcsap_Ciphering_Key_Data; +static int ett_lcsap_Ciphering_Key_Data_Result; +static int ett_lcsap_LCS_AP_PDU; +static int ett_lcsap_InitiatingMessage; +static int ett_lcsap_SuccessfulOutcome; +static int ett_lcsap_UnsuccessfulOutcome; + +static expert_field ei_lcsap_civic_data_not_xml; /* Global variables */ -static guint32 ProcedureCode; -static guint32 ProtocolIE_ID; -static guint32 ProtocolExtensionID; -static guint32 PayloadType = -1; +static uint32_t ProcedureCode; +static uint32_t ProtocolIE_ID; +static uint32_t ProtocolExtensionID; +static uint32_t PayloadType = -1; /* Dissector handles */ static dissector_handle_t lcsap_handle; @@ -467,7 +468,7 @@ static const value_string lcsap_Criticality_vals[] = { static int dissect_lcsap_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; } @@ -487,21 +488,21 @@ static const value_string lcsap_ProcedureCode_vals[] = { static int dissect_lcsap_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); { - guint8 tmp = tvb_get_guint8(tvb, 0); + uint8_t tmp = tvb_get_uint8(tvb, 0); if (tmp == 0) col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%sReq", - val_to_str(ProcedureCode, lcsap_ProcedureCode_vals, "unknown message")); + val_to_str_const(ProcedureCode, lcsap_ProcedureCode_vals, "unknown message")); else if (tmp == 32) col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%sResp", - val_to_str(ProcedureCode, lcsap_ProcedureCode_vals, "unknown message")); + val_to_str_const(ProcedureCode, lcsap_ProcedureCode_vals, "unknown message")); else - col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%s", - val_to_str(ProcedureCode, lcsap_ProcedureCode_vals, "unknown message")); + col_set_str(actx->pinfo->cinfo, COL_INFO, + val_to_str_const(ProcedureCode, lcsap_ProcedureCode_vals, "unknown message")); } return offset; @@ -512,7 +513,7 @@ dissect_lcsap_ProcedureCode(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx static int dissect_lcsap_ProtocolExtensionID(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, &ProtocolExtensionID, FALSE); + 0U, 65535U, &ProtocolExtensionID, false); return offset; } @@ -560,10 +561,11 @@ static const value_string lcsap_ProtocolIE_ID_vals[] = { static int dissect_lcsap_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, 65535U, &ProtocolIE_ID, FALSE); + 0U, 65535U, &ProtocolIE_ID, false); if (tree) { - proto_item_append_text(proto_item_get_parent_nth(actx->created_item, 2), ": %s", val_to_str(ProtocolIE_ID, VALS(lcsap_ProtocolIE_ID_vals), "unknown (%d)")); + proto_item_append_text(proto_item_get_parent_nth(actx->created_item, 2), ": %s", + val_to_str(ProtocolIE_ID, VALS(lcsap_ProtocolIE_ID_vals), "unknown (%d)")); } return offset; } @@ -602,7 +604,7 @@ static int dissect_lcsap_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_lcsap_ProtocolIE_Container, ProtocolIE_Container_sequence_of, - 0, maxProtocolIEs, FALSE); + 0, maxProtocolIEs, false); return offset; } @@ -641,7 +643,7 @@ static int dissect_lcsap_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_lcsap_ProtocolExtensionContainer, ProtocolExtensionContainer_sequence_of, - 1, maxProtocolExtensions, FALSE); + 1, maxProtocolExtensions, false); return offset; } @@ -654,7 +656,7 @@ dissect_lcsap_APDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, prot tvbuff_t *parameter_tvb=NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - NO_BOUND, NO_BOUND, FALSE, ¶meter_tvb); + NO_BOUND, NO_BOUND, false, ¶meter_tvb); if (parameter_tvb) { @@ -692,7 +694,7 @@ static const value_string lcsap_Accuracy_Fulfillment_Indicator_vals[] = { static int dissect_lcsap_Accuracy_Fulfillment_Indicator(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; } @@ -702,7 +704,7 @@ dissect_lcsap_Accuracy_Fulfillment_Indicator(tvbuff_t *tvb _U_, int offset _U_, static int dissect_lcsap_Additional_PositioningMethodAndUsage(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; } @@ -716,7 +718,7 @@ static int dissect_lcsap_Additional_PositioningDataSet(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_lcsap_Additional_PositioningDataSet, Additional_PositioningDataSet_sequence_of, - 1, max_Add_Pos_Set, FALSE); + 1, max_Add_Pos_Set, false); return offset; } @@ -726,7 +728,7 @@ dissect_lcsap_Additional_PositioningDataSet(tvbuff_t *tvb _U_, int offset _U_, a static int dissect_lcsap_Altitude(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; } @@ -742,7 +744,7 @@ static const value_string lcsap_Direction_Of_Altitude_vals[] = { static int dissect_lcsap_Direction_Of_Altitude(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; } @@ -767,7 +769,7 @@ dissect_lcsap_Altitude_And_Direction(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx static int dissect_lcsap_Angle(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, 179U, NULL, FALSE); + 0U, 179U, NULL, false); return offset; } @@ -777,7 +779,7 @@ dissect_lcsap_Angle(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, pro static int dissect_lcsap_Barometric_Pressure(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, - 30000U, 115000U, NULL, FALSE); + 30000U, 115000U, NULL, false); return offset; } @@ -787,7 +789,7 @@ dissect_lcsap_Barometric_Pressure(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t static int dissect_lcsap_C0(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, - 1, 128, FALSE, NULL, 0, NULL, NULL); + 1, 128, false, NULL, 0, NULL, NULL); return offset; } @@ -797,7 +799,7 @@ dissect_lcsap_C0(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_ static int dissect_lcsap_CellIdentity(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; } @@ -807,7 +809,7 @@ dissect_lcsap_CellIdentity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _ static int dissect_lcsap_Cell_Portion_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, 255U, NULL, TRUE); + 0U, 255U, NULL, true); return offset; } @@ -817,7 +819,7 @@ dissect_lcsap_Cell_Portion_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *act static int dissect_lcsap_Ciphering_Set_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; } @@ -827,7 +829,7 @@ dissect_lcsap_Ciphering_Set_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *ac static int dissect_lcsap_Ciphering_Key(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, - 16, 16, FALSE, NULL); + 16, 16, false, NULL); return offset; } @@ -837,7 +839,7 @@ dissect_lcsap_Ciphering_Key(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx static int dissect_lcsap_SIB_Types(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; } @@ -847,7 +849,7 @@ dissect_lcsap_SIB_Types(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, static int dissect_lcsap_Validity_Start_Time(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; } @@ -857,7 +859,7 @@ dissect_lcsap_Validity_Start_Time(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t static int dissect_lcsap_Validity_Duration(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; } @@ -867,7 +869,7 @@ dissect_lcsap_Validity_Duration(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *a static int dissect_lcsap_TAIs_List(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, - 7, 97, FALSE, NULL); + 7, 97, false, NULL); return offset; } @@ -901,7 +903,7 @@ static int dissect_lcsap_Ciphering_Data(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_lcsap_Ciphering_Data, Ciphering_Data_sequence_of, - 1, max_Cipher_Set, FALSE); + 1, max_Cipher_Set, false); return offset; } @@ -915,7 +917,7 @@ static int dissect_lcsap_Ciphering_Data_Ack(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_lcsap_Ciphering_Data_Ack, Ciphering_Data_Ack_sequence_of, - 1, max_Cipher_Set, FALSE); + 1, max_Cipher_Set, false); return offset; } @@ -931,7 +933,7 @@ static const value_string lcsap_Storage_Outcome_vals[] = { static int dissect_lcsap_Storage_Outcome(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; } @@ -960,7 +962,7 @@ static int dissect_lcsap_Ciphering_Data_Error_Report(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_lcsap_Ciphering_Data_Error_Report, Ciphering_Data_Error_Report_sequence_of, - 1, max_Cipher_Set, FALSE); + 1, max_Cipher_Set, false); return offset; } @@ -972,7 +974,7 @@ dissect_lcsap_Civic_Address(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx tvbuff_t *parameter_tvb=NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - NO_BOUND, NO_BOUND, FALSE, ¶meter_tvb); + NO_BOUND, NO_BOUND, false, ¶meter_tvb); if (parameter_tvb && xml_handle) { proto_tree *subtree; @@ -997,7 +999,7 @@ dissect_lcsap_Civic_Address(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx static int dissect_lcsap_Confidence(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, 100U, NULL, FALSE); + 0U, 100U, NULL, false); return offset; } @@ -1007,7 +1009,7 @@ dissect_lcsap_Confidence(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_ static int dissect_lcsap_Correlation_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, - 4, 4, FALSE, NULL); + 4, 4, false, NULL); return offset; } @@ -1017,7 +1019,7 @@ dissect_lcsap_Correlation_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx static int dissect_lcsap_Country(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, - NO_BOUND, NO_BOUND, FALSE, NULL); + NO_BOUND, NO_BOUND, false, NULL); return offset; } @@ -1026,10 +1028,10 @@ dissect_lcsap_Country(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p static int dissect_lcsap_DegreesLatitude(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - gint32 degrees; + int32_t degrees; offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 0U, 8388607U, °rees, FALSE); + 0U, 8388607U, °rees, false); proto_item_append_text(actx->created_item, " (%.5f degrees)", (((double)degrees/8388607) * 90)); @@ -1041,10 +1043,10 @@ dissect_lcsap_DegreesLatitude(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *act static int dissect_lcsap_DegreesLongitude(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - gint32 degrees; + int32_t degrees; offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - -8388608, 8388607U, °rees, FALSE); + -8388608, 8388607U, °rees, false); proto_item_append_text(actx->created_item, " (%.5f degrees)", (((double)degrees/16777215) * 360)); @@ -1060,14 +1062,14 @@ dissect_lcsap_PLMN_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p tvbuff_t *parameter_tvb=NULL; proto_tree *subtree; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - 3, 3, FALSE, ¶meter_tvb); + 3, 3, false, ¶meter_tvb); if(tvb_reported_length(tvb)==0) return offset; if (!parameter_tvb) return offset; subtree = proto_item_add_subtree(actx->created_item, ett_lcsap_plmnd_id); - dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, subtree, 0, E212_NONE, FALSE); + dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, subtree, 0, E212_NONE, false); return offset; } @@ -1098,7 +1100,7 @@ static const value_string lcsap_Coverage_Level_vals[] = { static int dissect_lcsap_Coverage_Level(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; } @@ -1114,7 +1116,7 @@ static const value_string lcsap_LatitudeSign_vals[] = { static int dissect_lcsap_LatitudeSign(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; } @@ -1140,10 +1142,10 @@ dissect_lcsap_Geographical_Coordinates(tvbuff_t *tvb _U_, int offset _U_, asn1_c static int dissect_lcsap_Uncertainty_Code(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - guint32 uncertainty_code; + uint32_t uncertainty_code; offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 0U, 127U, &uncertainty_code, FALSE); + 0U, 127U, &uncertainty_code, false); proto_item_append_text(actx->created_item, " (%.1f m)", 10 * (pow(1.1, (double)uncertainty_code) - 1)); @@ -1156,7 +1158,7 @@ dissect_lcsap_Uncertainty_Code(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *ac static int dissect_lcsap_Orientation_Major_Axis(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, 89U, NULL, FALSE); + 0U, 89U, NULL, false); return offset; } @@ -1215,7 +1217,7 @@ dissect_lcsap_Ellipsoid_Point_With_Altitude(tvbuff_t *tvb _U_, int offset _U_, a static int dissect_lcsap_Uncertainty_Altitude(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, 127U, NULL, FALSE); + 0U, 127U, NULL, false); return offset; } @@ -1244,7 +1246,7 @@ dissect_lcsap_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellipsoid(tvbuff_t * static int dissect_lcsap_Inner_Radius(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; } @@ -1274,7 +1276,7 @@ dissect_lcsap_Ellipsoid_Arc(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx static int dissect_lcsap_Macro_eNB_ID(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, - 20, 20, FALSE, NULL, 0, NULL, NULL); + 20, 20, false, NULL, 0, NULL, NULL); return offset; } @@ -1284,7 +1286,7 @@ dissect_lcsap_Macro_eNB_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _ static int dissect_lcsap_Home_eNB_ID(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; } @@ -1294,7 +1296,7 @@ dissect_lcsap_Home_eNB_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U static int dissect_lcsap_Short_Macro_eNB_ID(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, - 18, 18, FALSE, NULL, 0, NULL, NULL); + 18, 18, false, NULL, 0, NULL, NULL); return offset; } @@ -1304,7 +1306,7 @@ dissect_lcsap_Short_Macro_eNB_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t * static int dissect_lcsap_Long_Macro_eNB_ID(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, - 21, 21, FALSE, NULL, 0, NULL, NULL); + 21, 21, false, NULL, 0, NULL, NULL); return offset; } @@ -1340,7 +1342,7 @@ dissect_lcsap_ENB_ID(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, pr static int dissect_lcsap_E_SMLC_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, 255U, NULL, FALSE); + 0U, 255U, NULL, false); return offset; } @@ -1400,7 +1402,7 @@ static int dissect_lcsap_Polygon(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_lcsap_Polygon, Polygon_sequence_of, - 1, max_No_Of_Points, FALSE); + 1, max_No_Of_Points, false); return offset; } @@ -1410,7 +1412,7 @@ dissect_lcsap_Polygon(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p static int dissect_lcsap_High_Accuracy_DegreesLatitude(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, - G_MININT32, 2147483647U, NULL, FALSE); + INT32_MIN, 2147483647U, NULL, false); return offset; } @@ -1420,7 +1422,7 @@ dissect_lcsap_High_Accuracy_DegreesLatitude(tvbuff_t *tvb _U_, int offset _U_, a static int dissect_lcsap_High_Accuracy_DegreesLongitude(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, - G_MININT32, 2147483647U, NULL, FALSE); + INT32_MIN, 2147483647U, NULL, false); return offset; } @@ -1446,7 +1448,7 @@ dissect_lcsap_High_Accuracy_Geographical_Coordinates(tvbuff_t *tvb _U_, int offs static int dissect_lcsap_High_Accuracy_Uncertainty_Code(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; } @@ -1456,7 +1458,7 @@ dissect_lcsap_High_Accuracy_Uncertainty_Code(tvbuff_t *tvb _U_, int offset _U_, static int dissect_lcsap_INTEGER_0_179(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, 179U, NULL, FALSE); + 0U, 179U, NULL, false); return offset; } @@ -1500,7 +1502,7 @@ dissect_lcsap_High_Accuracy_Ellipsoid_Point_With_Uncertainty_Ellipse(tvbuff_t *t static int dissect_lcsap_High_Accuracy_Altitude(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, - -64000, 1280000U, NULL, FALSE); + -64000, 1280000U, NULL, false); return offset; } @@ -1530,7 +1532,7 @@ dissect_lcsap_High_Accuracy_Ellipsoid_Point_With_Altitude_And_Uncertainty_Ellips static int dissect_lcsap_High_Accuracy_Extended_Uncertainty_Code(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; } @@ -1695,7 +1697,7 @@ dissect_lcsap_GNSS_Positioning_Method_And_Usage(tvbuff_t *tvb _U_, int offset _U tvbuff_t *parameter_tvb=NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - 1, 1, FALSE, ¶meter_tvb); + 1, 1, false, ¶meter_tvb); if (!parameter_tvb) @@ -1718,7 +1720,7 @@ static int dissect_lcsap_GNSS_Positioning_Data_Set(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_lcsap_GNSS_Positioning_Data_Set, GNSS_Positioning_Data_Set_sequence_of, - 1, max_GNSS_Set, FALSE); + 1, max_GNSS_Set, false); return offset; } @@ -1727,9 +1729,9 @@ dissect_lcsap_GNSS_Positioning_Data_Set(tvbuff_t *tvb _U_, int offset _U_, asn1_ static int dissect_lcsap_Horizontal_Accuracy(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - guint32 uncertainty_code; + uint32_t uncertainty_code; offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 0U, 127U, &uncertainty_code, FALSE); + 0U, 127U, &uncertainty_code, false); @@ -1743,7 +1745,7 @@ dissect_lcsap_Horizontal_Accuracy(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t static int dissect_lcsap_INTEGER_0_359(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, 359U, NULL, FALSE); + 0U, 359U, NULL, false); return offset; } @@ -1753,7 +1755,7 @@ dissect_lcsap_INTEGER_0_359(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx static int dissect_lcsap_INTEGER_0_2047(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, 2047U, NULL, FALSE); + 0U, 2047U, NULL, false); return offset; } @@ -1793,7 +1795,7 @@ dissect_lcsap_Horizontal_Velocity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t static int dissect_lcsap_INTEGER_0_255(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; } @@ -1809,7 +1811,7 @@ static const value_string lcsap_Vertical_Speed_Direction_vals[] = { static int dissect_lcsap_Vertical_Speed_Direction(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; } @@ -1885,13 +1887,13 @@ static int dissect_lcsap_IMSI(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { tvbuff_t *imsi_tvb; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - 3, 8, FALSE, &imsi_tvb); + 3, 8, false, &imsi_tvb); if (imsi_tvb) { proto_tree *subtree; subtree = proto_item_add_subtree(actx->created_item, ett_lcsap_imsi); - dissect_e212_imsi(imsi_tvb, actx->pinfo, subtree, 0, tvb_reported_length(imsi_tvb), FALSE); + dissect_e212_imsi(imsi_tvb, actx->pinfo, subtree, 0, tvb_reported_length(imsi_tvb), false); } @@ -1903,7 +1905,7 @@ dissect_lcsap_IMSI(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, prot static int dissect_lcsap_IMEI(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, - 8, 8, FALSE, NULL); + 8, 8, false, NULL); return offset; } @@ -1919,7 +1921,7 @@ static const value_string lcsap_Include_Velocity_vals[] = { static int dissect_lcsap_Include_Velocity(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; } @@ -1934,7 +1936,7 @@ static const value_string lcsap_International_Area_Indication_vals[] = { static int dissect_lcsap_International_Area_Indication(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; } @@ -1951,7 +1953,7 @@ static const value_string lcsap_Location_Type_vals[] = { static int dissect_lcsap_Location_Type(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, 1, NULL); + 2, NULL, true, 1, NULL); return offset; } @@ -1966,7 +1968,7 @@ static const value_string lcsap_Radio_Network_Layer_Cause_vals[] = { static int dissect_lcsap_Radio_Network_Layer_Cause(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; } @@ -1982,7 +1984,7 @@ static const value_string lcsap_Transport_Layer_Cause_vals[] = { static int dissect_lcsap_Transport_Layer_Cause(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; } @@ -2003,7 +2005,7 @@ static const value_string lcsap_Protocol_Cause_vals[] = { static int dissect_lcsap_Protocol_Cause(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; } @@ -2022,7 +2024,7 @@ static const value_string lcsap_Misc_Cause_vals[] = { static int dissect_lcsap_Misc_Cause(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, - 4, NULL, TRUE, 1, NULL); + 4, NULL, true, 1, NULL); return offset; } @@ -2070,7 +2072,7 @@ static const value_string lcsap_LCS_Client_Type_vals[] = { static int dissect_lcsap_LCS_Client_Type(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, 0, NULL); + 8, NULL, true, 0, NULL); return offset; } @@ -2080,7 +2082,7 @@ dissect_lcsap_LCS_Client_Type(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *act static int dissect_lcsap_LCS_Priority(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; } @@ -2096,7 +2098,7 @@ static const value_string lcsap_Vertical_Requested_vals[] = { static int dissect_lcsap_Vertical_Requested(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; } @@ -2105,9 +2107,9 @@ dissect_lcsap_Vertical_Requested(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t * static int dissect_lcsap_Vertical_Accuracy(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - guint32 vertical_uncertainty; + uint32_t vertical_uncertainty; offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 0U, 127U, &vertical_uncertainty, FALSE); + 0U, 127U, &vertical_uncertainty, false); @@ -2127,7 +2129,7 @@ static const value_string lcsap_Response_Time_vals[] = { static int dissect_lcsap_Response_Time(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; } @@ -2154,7 +2156,7 @@ dissect_lcsap_LCS_QoS(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p static int dissect_lcsap_LCS_Service_Type_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, 127U, NULL, FALSE); + 0U, 127U, NULL, false); return offset; } @@ -2168,7 +2170,7 @@ static int dissect_lcsap_MultipleAPDUs(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_lcsap_MultipleAPDUs, MultipleAPDUs_sequence_of, - 1, 3, FALSE); + 1, 3, false); return offset; } @@ -2206,7 +2208,7 @@ static const value_string lcsap_Payload_Type_vals[] = { static int dissect_lcsap_Payload_Type(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, &PayloadType, TRUE, 0, NULL); + 2, &PayloadType, true, 0, NULL); return offset; } @@ -2218,7 +2220,7 @@ dissect_lcsap_Positioning_Method_And_Usage(tvbuff_t *tvb _U_, int offset _U_, as tvbuff_t *parameter_tvb=NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - 1, 1, FALSE, ¶meter_tvb); + 1, 1, false, ¶meter_tvb); if (!parameter_tvb) @@ -2241,7 +2243,7 @@ static int dissect_lcsap_Positioning_Data_Set(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_lcsap_Positioning_Data_Set, Positioning_Data_Set_sequence_of, - 1, max_Set, FALSE); + 1, max_Set, false); return offset; } @@ -2274,7 +2276,7 @@ static const value_string lcsap_RAT_Type_vals[] = { static int dissect_lcsap_RAT_Type(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, 1, NULL); + 2, NULL, true, 1, NULL); return offset; } @@ -2290,7 +2292,7 @@ static const value_string lcsap_Return_Error_Type_vals[] = { static int dissect_lcsap_Return_Error_Type(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; } @@ -2309,7 +2311,7 @@ static const value_string lcsap_Return_Error_Cause_vals[] = { static int dissect_lcsap_Return_Error_Cause(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; } @@ -2348,7 +2350,7 @@ static const value_string lcsap_UE_Country_Determination_Indication_vals[] = { static int dissect_lcsap_UE_Country_Determination_Indication(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; } @@ -2636,7 +2638,7 @@ dissect_lcsap_LCS_AP_PDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_ static int dissect_APDU_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_lcsap_APDU(tvb, offset, &asn1_ctx, tree, hf_lcsap_APDU_PDU); offset += 7; offset >>= 3; return offset; @@ -2644,7 +2646,7 @@ static int dissect_APDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tre static int dissect_Accuracy_Fulfillment_Indicator_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_lcsap_Accuracy_Fulfillment_Indicator(tvb, offset, &asn1_ctx, tree, hf_lcsap_Accuracy_Fulfillment_Indicator_PDU); offset += 7; offset >>= 3; return offset; @@ -2652,7 +2654,7 @@ static int dissect_Accuracy_Fulfillment_Indicator_PDU(tvbuff_t *tvb _U_, packet_ static int dissect_Additional_PositioningDataSet_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_lcsap_Additional_PositioningDataSet(tvb, offset, &asn1_ctx, tree, hf_lcsap_Additional_PositioningDataSet_PDU); offset += 7; offset >>= 3; return offset; @@ -2660,7 +2662,7 @@ static int dissect_Additional_PositioningDataSet_PDU(tvbuff_t *tvb _U_, packet_i static int dissect_Barometric_Pressure_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_lcsap_Barometric_Pressure(tvb, offset, &asn1_ctx, tree, hf_lcsap_Barometric_Pressure_PDU); offset += 7; offset >>= 3; return offset; @@ -2668,7 +2670,7 @@ static int dissect_Barometric_Pressure_PDU(tvbuff_t *tvb _U_, packet_info *pinfo static int dissect_Cell_Portion_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_lcsap_Cell_Portion_ID(tvb, offset, &asn1_ctx, tree, hf_lcsap_Cell_Portion_ID_PDU); offset += 7; offset >>= 3; return offset; @@ -2676,7 +2678,7 @@ static int dissect_Cell_Portion_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_ static int dissect_Ciphering_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_lcsap_Ciphering_Data(tvb, offset, &asn1_ctx, tree, hf_lcsap_Ciphering_Data_PDU); offset += 7; offset >>= 3; return offset; @@ -2684,7 +2686,7 @@ static int dissect_Ciphering_Data_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, static int dissect_Ciphering_Data_Ack_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_lcsap_Ciphering_Data_Ack(tvb, offset, &asn1_ctx, tree, hf_lcsap_Ciphering_Data_Ack_PDU); offset += 7; offset >>= 3; return offset; @@ -2692,7 +2694,7 @@ static int dissect_Ciphering_Data_Ack_PDU(tvbuff_t *tvb _U_, packet_info *pinfo static int dissect_Ciphering_Data_Error_Report_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_lcsap_Ciphering_Data_Error_Report(tvb, offset, &asn1_ctx, tree, hf_lcsap_Ciphering_Data_Error_Report_PDU); offset += 7; offset >>= 3; return offset; @@ -2700,7 +2702,7 @@ static int dissect_Ciphering_Data_Error_Report_PDU(tvbuff_t *tvb _U_, packet_inf static int dissect_Civic_Address_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_lcsap_Civic_Address(tvb, offset, &asn1_ctx, tree, hf_lcsap_Civic_Address_PDU); offset += 7; offset >>= 3; return offset; @@ -2708,7 +2710,7 @@ static int dissect_Civic_Address_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, int dissect_lcsap_Correlation_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_lcsap_Correlation_ID(tvb, offset, &asn1_ctx, tree, hf_lcsap_lcsap_Correlation_ID_PDU); offset += 7; offset >>= 3; return offset; @@ -2716,7 +2718,7 @@ int dissect_lcsap_Correlation_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, static int dissect_E_CGI_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_lcsap_E_CGI(tvb, offset, &asn1_ctx, tree, hf_lcsap_E_CGI_PDU); offset += 7; offset >>= 3; return offset; @@ -2724,7 +2726,7 @@ static int dissect_E_CGI_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tr static int dissect_Coverage_Level_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_lcsap_Coverage_Level(tvb, offset, &asn1_ctx, tree, hf_lcsap_Coverage_Level_PDU); offset += 7; offset >>= 3; return offset; @@ -2732,7 +2734,7 @@ static int dissect_Coverage_Level_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, static int dissect_Geographical_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_lcsap_Geographical_Area(tvb, offset, &asn1_ctx, tree, hf_lcsap_Geographical_Area_PDU); offset += 7; offset >>= 3; return offset; @@ -2740,7 +2742,7 @@ static int dissect_Geographical_Area_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _ static int dissect_IMSI_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_lcsap_IMSI(tvb, offset, &asn1_ctx, tree, hf_lcsap_IMSI_PDU); offset += 7; offset >>= 3; return offset; @@ -2748,7 +2750,7 @@ static int dissect_IMSI_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tre static int dissect_IMEI_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_lcsap_IMEI(tvb, offset, &asn1_ctx, tree, hf_lcsap_IMEI_PDU); offset += 7; offset >>= 3; return offset; @@ -2756,7 +2758,7 @@ static int dissect_IMEI_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tre static int dissect_Include_Velocity_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_lcsap_Include_Velocity(tvb, offset, &asn1_ctx, tree, hf_lcsap_Include_Velocity_PDU); offset += 7; offset >>= 3; return offset; @@ -2764,7 +2766,7 @@ static int dissect_Include_Velocity_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U static int dissect_Location_Type_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_lcsap_Location_Type(tvb, offset, &asn1_ctx, tree, hf_lcsap_Location_Type_PDU); offset += 7; offset >>= 3; return offset; @@ -2772,7 +2774,7 @@ static int dissect_Location_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, static int dissect_LCS_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_lcsap_LCS_Cause(tvb, offset, &asn1_ctx, tree, hf_lcsap_LCS_Cause_PDU); offset += 7; offset >>= 3; return offset; @@ -2780,7 +2782,7 @@ static int dissect_LCS_Cause_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot static int dissect_LCS_Client_Type_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_lcsap_LCS_Client_Type(tvb, offset, &asn1_ctx, tree, hf_lcsap_LCS_Client_Type_PDU); offset += 7; offset >>= 3; return offset; @@ -2788,7 +2790,7 @@ static int dissect_LCS_Client_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_ static int dissect_LCS_Priority_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_lcsap_LCS_Priority(tvb, offset, &asn1_ctx, tree, hf_lcsap_LCS_Priority_PDU); offset += 7; offset >>= 3; return offset; @@ -2796,7 +2798,7 @@ static int dissect_LCS_Priority_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, p static int dissect_LCS_QoS_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_lcsap_LCS_QoS(tvb, offset, &asn1_ctx, tree, hf_lcsap_LCS_QoS_PDU); offset += 7; offset >>= 3; return offset; @@ -2804,7 +2806,7 @@ static int dissect_LCS_QoS_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_ static int dissect_LCS_Service_Type_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_lcsap_LCS_Service_Type_ID(tvb, offset, &asn1_ctx, tree, hf_lcsap_LCS_Service_Type_ID_PDU); offset += 7; offset >>= 3; return offset; @@ -2812,7 +2814,7 @@ static int dissect_LCS_Service_Type_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo static int dissect_MultipleAPDUs_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_lcsap_MultipleAPDUs(tvb, offset, &asn1_ctx, tree, hf_lcsap_MultipleAPDUs_PDU); offset += 7; offset >>= 3; return offset; @@ -2820,7 +2822,7 @@ static int dissect_MultipleAPDUs_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, static int dissect_Network_Element_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_lcsap_Network_Element(tvb, offset, &asn1_ctx, tree, hf_lcsap_Network_Element_PDU); offset += 7; offset >>= 3; return offset; @@ -2828,7 +2830,7 @@ static int dissect_Network_Element_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_ static int dissect_Payload_Type_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_lcsap_Payload_Type(tvb, offset, &asn1_ctx, tree, hf_lcsap_Payload_Type_PDU); offset += 7; offset >>= 3; return offset; @@ -2836,7 +2838,7 @@ static int dissect_Payload_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, p int dissect_lcsap_Positioning_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_lcsap_Positioning_Data(tvb, offset, &asn1_ctx, tree, hf_lcsap_lcsap_Positioning_Data_PDU); offset += 7; offset >>= 3; return offset; @@ -2844,7 +2846,7 @@ int dissect_lcsap_Positioning_Data_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_ static int dissect_RAT_Type_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_lcsap_RAT_Type(tvb, offset, &asn1_ctx, tree, hf_lcsap_RAT_Type_PDU); offset += 7; offset >>= 3; return offset; @@ -2852,7 +2854,7 @@ static int dissect_RAT_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto static int dissect_Return_Error_Type_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_lcsap_Return_Error_Type(tvb, offset, &asn1_ctx, tree, hf_lcsap_Return_Error_Type_PDU); offset += 7; offset >>= 3; return offset; @@ -2860,7 +2862,7 @@ static int dissect_Return_Error_Type_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _ static int dissect_Return_Error_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_lcsap_Return_Error_Cause(tvb, offset, &asn1_ctx, tree, hf_lcsap_Return_Error_Cause_PDU); offset += 7; offset >>= 3; return offset; @@ -2868,7 +2870,7 @@ static int dissect_Return_Error_Cause_PDU(tvbuff_t *tvb _U_, packet_info *pinfo static int dissect_UE_Positioning_Capability_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_lcsap_UE_Positioning_Capability(tvb, offset, &asn1_ctx, tree, hf_lcsap_UE_Positioning_Capability_PDU); offset += 7; offset >>= 3; return offset; @@ -2876,7 +2878,7 @@ static int dissect_UE_Positioning_Capability_PDU(tvbuff_t *tvb _U_, packet_info static int dissect_UE_Country_Determination_Indication_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_lcsap_UE_Country_Determination_Indication(tvb, offset, &asn1_ctx, tree, hf_lcsap_UE_Country_Determination_Indication_PDU); offset += 7; offset >>= 3; return offset; @@ -2884,7 +2886,7 @@ static int dissect_UE_Country_Determination_Indication_PDU(tvbuff_t *tvb _U_, pa static int dissect_UE_Area_Indication_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_lcsap_UE_Area_Indication(tvb, offset, &asn1_ctx, tree, hf_lcsap_UE_Area_Indication_PDU); offset += 7; offset >>= 3; return offset; @@ -2892,7 +2894,7 @@ static int dissect_UE_Area_Indication_PDU(tvbuff_t *tvb _U_, packet_info *pinfo static int dissect_Velocity_Estimate_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_lcsap_Velocity_Estimate(tvb, offset, &asn1_ctx, tree, hf_lcsap_Velocity_Estimate_PDU); offset += 7; offset >>= 3; return offset; @@ -2900,7 +2902,7 @@ static int dissect_Velocity_Estimate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _ static int dissect_Location_Request_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_lcsap_Location_Request(tvb, offset, &asn1_ctx, tree, hf_lcsap_Location_Request_PDU); offset += 7; offset >>= 3; return offset; @@ -2908,7 +2910,7 @@ static int dissect_Location_Request_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U static int dissect_Location_Response_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_lcsap_Location_Response(tvb, offset, &asn1_ctx, tree, hf_lcsap_Location_Response_PDU); offset += 7; offset >>= 3; return offset; @@ -2916,7 +2918,7 @@ static int dissect_Location_Response_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _ static int dissect_Location_Abort_Request_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_lcsap_Location_Abort_Request(tvb, offset, &asn1_ctx, tree, hf_lcsap_Location_Abort_Request_PDU); offset += 7; offset >>= 3; return offset; @@ -2924,7 +2926,7 @@ static int dissect_Location_Abort_Request_PDU(tvbuff_t *tvb _U_, packet_info *pi static int dissect_Connection_Oriented_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_lcsap_Connection_Oriented_Information(tvb, offset, &asn1_ctx, tree, hf_lcsap_Connection_Oriented_Information_PDU); offset += 7; offset >>= 3; return offset; @@ -2932,7 +2934,7 @@ static int dissect_Connection_Oriented_Information_PDU(tvbuff_t *tvb _U_, packet static int dissect_Connectionless_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_lcsap_Connectionless_Information(tvb, offset, &asn1_ctx, tree, hf_lcsap_Connectionless_Information_PDU); offset += 7; offset >>= 3; return offset; @@ -2940,7 +2942,7 @@ static int dissect_Connectionless_Information_PDU(tvbuff_t *tvb _U_, packet_info static int dissect_Reset_Request_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_lcsap_Reset_Request(tvb, offset, &asn1_ctx, tree, hf_lcsap_Reset_Request_PDU); offset += 7; offset >>= 3; return offset; @@ -2948,7 +2950,7 @@ static int dissect_Reset_Request_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, static int dissect_Reset_Acknowledge_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_lcsap_Reset_Acknowledge(tvb, offset, &asn1_ctx, tree, hf_lcsap_Reset_Acknowledge_PDU); offset += 7; offset >>= 3; return offset; @@ -2956,7 +2958,7 @@ static int dissect_Reset_Acknowledge_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _ static int dissect_Ciphering_Key_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_lcsap_Ciphering_Key_Data(tvb, offset, &asn1_ctx, tree, hf_lcsap_Ciphering_Key_Data_PDU); offset += 7; offset >>= 3; return offset; @@ -2964,7 +2966,7 @@ static int dissect_Ciphering_Key_Data_PDU(tvbuff_t *tvb _U_, packet_info *pinfo static int dissect_Ciphering_Key_Data_Result_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_lcsap_Ciphering_Key_Data_Result(tvb, offset, &asn1_ctx, tree, hf_lcsap_Ciphering_Key_Data_Result_PDU); offset += 7; offset >>= 3; return offset; @@ -2972,7 +2974,7 @@ static int dissect_Ciphering_Key_Data_Result_PDU(tvbuff_t *tvb _U_, packet_info static int dissect_LCS_AP_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_lcsap_LCS_AP_PDU(tvb, offset, &asn1_ctx, tree, hf_lcsap_LCS_AP_PDU_PDU); offset += 7; offset >>= 3; return offset; @@ -3747,7 +3749,7 @@ void proto_register_lcsap(void) { }; /* List of subtrees */ - static gint *ett[] = { + static int *ett[] = { &ett_lcsap, &ett_lcsap_plmnd_id, &ett_lcsap_imsi, |