diff options
Diffstat (limited to 'epan/dissectors/packet-charging_ase.c')
-rw-r--r-- | epan/dissectors/packet-charging_ase.c | 204 |
1 files changed, 102 insertions, 102 deletions
diff --git a/epan/dissectors/packet-charging_ase.c b/epan/dissectors/packet-charging_ase.c index e8f79891..36985082 100644 --- a/epan/dissectors/packet-charging_ase.c +++ b/epan/dissectors/packet-charging_ase.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-charging_ase.c */ -/* asn2wrs.py -b -L -p charging_ase -c ./charging_ase.cnf -s ./packet-charging_ase-template -D . -O ../.. Tariffing-Data-Types.asn */ +/* asn2wrs.py -b -q -L -p charging_ase -c ./charging_ase.cnf -s ./packet-charging_ase-template -D . -O ../.. Tariffing-Data-Types.asn */ /* packet-charging_ase-template.c * Copyright 2009 , Anders Broman <anders.broman [AT] ericsson.com> @@ -19,7 +19,7 @@ #include <epan/packet.h> #include <epan/expert.h> #include <epan/asn1.h> - +#include <wsutil/array.h> #include "packet-ber.h" #include "packet-charging_ase.h" @@ -31,104 +31,104 @@ void proto_register_charging_ase(void); void proto_reg_handoff_charging_ase(void); /* Define the Charging ASE proto */ -static int proto_charging_ase = -1; - -static int hf_charging_ase_charging_ase_ChargingMessageType_PDU = -1; /* ChargingMessageType */ -static int hf_charging_ase_crgt = -1; /* ChargingTariffInformation */ -static int hf_charging_ase_aocrg = -1; /* AddOnChargingInformation */ -static int hf_charging_ase_crga = -1; /* ChargingAcknowledgementInformation */ -static int hf_charging_ase_start = -1; /* StartCharging */ -static int hf_charging_ase_stop = -1; /* StopCharging */ -static int hf_charging_ase_acknowledgementIndicators = -1; /* T_acknowledgementIndicators */ -static int hf_charging_ase_extensions = -1; /* SEQUENCE_SIZE_1_numOfExtensions_OF_ExtensionField */ -static int hf_charging_ase_extensions_item = -1; /* ExtensionField */ -static int hf_charging_ase_originationIdentification = -1; /* ChargingReferenceIdentification */ -static int hf_charging_ase_destinationIdentification = -1; /* ChargingReferenceIdentification */ -static int hf_charging_ase_chargingControlIndicators = -1; /* ChargingControlIndicators */ -static int hf_charging_ase_addOncharge = -1; /* T_addOncharge */ -static int hf_charging_ase_addOnChargeCurrency = -1; /* CurrencyFactorScale */ -static int hf_charging_ase_addOnChargePulse = -1; /* PulseUnits */ -static int hf_charging_ase_currency = -1; /* Currency */ -static int hf_charging_ase_chargingTariff = -1; /* T_chargingTariff */ -static int hf_charging_ase_tariffCurrency = -1; /* TariffCurrency */ -static int hf_charging_ase_tariffPulse = -1; /* TariffPulse */ -static int hf_charging_ase_local = -1; /* INTEGER */ -static int hf_charging_ase_global = -1; /* OBJECT_IDENTIFIER */ -static int hf_charging_ase_currencyFactorScale = -1; /* CurrencyFactorScale */ -static int hf_charging_ase_tariffDuration = -1; /* TariffDuration */ -static int hf_charging_ase_subTariffControl = -1; /* SubTariffControl */ -static int hf_charging_ase_pulseUnits = -1; /* PulseUnits */ -static int hf_charging_ase_chargeUnitTimeInterval = -1; /* ChargeUnitTimeInterval */ -static int hf_charging_ase_currencyFactor = -1; /* CurrencyFactor */ -static int hf_charging_ase_currencyScale = -1; /* CurrencyScale */ -static int hf_charging_ase_type = -1; /* Code */ -static int hf_charging_ase_criticality = -1; /* CriticalityType */ -static int hf_charging_ase_value = -1; /* T_value */ -static int hf_charging_ase_networkOperators = -1; /* SEQUENCE_SIZE_1_maxNetworkOperators_OF_NetworkIdentification */ -static int hf_charging_ase_networkOperators_item = -1; /* NetworkIdentification */ -static int hf_charging_ase_stopIndicators = -1; /* T_stopIndicators */ -static int hf_charging_ase_currentTariffCurrency = -1; /* TariffCurrencyFormat */ -static int hf_charging_ase_tariffSwitchCurrency = -1; /* TariffSwitchCurrency */ -static int hf_charging_ase_nextTariffCurrency = -1; /* TariffCurrencyFormat */ -static int hf_charging_ase_tariffSwitchoverTime = -1; /* TariffSwitchoverTime */ -static int hf_charging_ase_communicationChargeSequenceCurrency = -1; /* SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargeCurrency */ -static int hf_charging_ase_communicationChargeSequenceCurrency_item = -1; /* CommunicationChargeCurrency */ -static int hf_charging_ase_tariffControlIndicators = -1; /* T_tariffControlIndicators */ -static int hf_charging_ase_callAttemptChargeCurrency = -1; /* CurrencyFactorScale */ -static int hf_charging_ase_callSetupChargeCurrency = -1; /* CurrencyFactorScale */ -static int hf_charging_ase_currentTariffPulse = -1; /* TariffPulseFormat */ -static int hf_charging_ase_tariffSwitchPulse = -1; /* TariffSwitchPulse */ -static int hf_charging_ase_nextTariffPulse = -1; /* TariffPulseFormat */ -static int hf_charging_ase_communicationChargeSequencePulse = -1; /* SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargePulse */ -static int hf_charging_ase_communicationChargeSequencePulse_item = -1; /* CommunicationChargePulse */ -static int hf_charging_ase_tariffControlIndicators_01 = -1; /* T_tariffControlIndicators_01 */ -static int hf_charging_ase_callAttemptChargePulse = -1; /* PulseUnits */ -static int hf_charging_ase_callSetupChargePulse = -1; /* PulseUnits */ -static int hf_charging_ase_networkIdentification = -1; /* NetworkIdentification */ -static int hf_charging_ase_referenceID = -1; /* ReferenceID */ +static int proto_charging_ase; + +static int hf_charging_ase_charging_ase_ChargingMessageType_PDU; /* ChargingMessageType */ +static int hf_charging_ase_crgt; /* ChargingTariffInformation */ +static int hf_charging_ase_aocrg; /* AddOnChargingInformation */ +static int hf_charging_ase_crga; /* ChargingAcknowledgementInformation */ +static int hf_charging_ase_start; /* StartCharging */ +static int hf_charging_ase_stop; /* StopCharging */ +static int hf_charging_ase_acknowledgementIndicators; /* T_acknowledgementIndicators */ +static int hf_charging_ase_extensions; /* SEQUENCE_SIZE_1_numOfExtensions_OF_ExtensionField */ +static int hf_charging_ase_extensions_item; /* ExtensionField */ +static int hf_charging_ase_originationIdentification; /* ChargingReferenceIdentification */ +static int hf_charging_ase_destinationIdentification; /* ChargingReferenceIdentification */ +static int hf_charging_ase_chargingControlIndicators; /* ChargingControlIndicators */ +static int hf_charging_ase_addOncharge; /* T_addOncharge */ +static int hf_charging_ase_addOnChargeCurrency; /* CurrencyFactorScale */ +static int hf_charging_ase_addOnChargePulse; /* PulseUnits */ +static int hf_charging_ase_currency; /* Currency */ +static int hf_charging_ase_chargingTariff; /* T_chargingTariff */ +static int hf_charging_ase_tariffCurrency; /* TariffCurrency */ +static int hf_charging_ase_tariffPulse; /* TariffPulse */ +static int hf_charging_ase_local; /* INTEGER */ +static int hf_charging_ase_global; /* OBJECT_IDENTIFIER */ +static int hf_charging_ase_currencyFactorScale; /* CurrencyFactorScale */ +static int hf_charging_ase_tariffDuration; /* TariffDuration */ +static int hf_charging_ase_subTariffControl; /* SubTariffControl */ +static int hf_charging_ase_pulseUnits; /* PulseUnits */ +static int hf_charging_ase_chargeUnitTimeInterval; /* ChargeUnitTimeInterval */ +static int hf_charging_ase_currencyFactor; /* CurrencyFactor */ +static int hf_charging_ase_currencyScale; /* CurrencyScale */ +static int hf_charging_ase_type; /* Code */ +static int hf_charging_ase_criticality; /* CriticalityType */ +static int hf_charging_ase_value; /* T_value */ +static int hf_charging_ase_networkOperators; /* SEQUENCE_SIZE_1_maxNetworkOperators_OF_NetworkIdentification */ +static int hf_charging_ase_networkOperators_item; /* NetworkIdentification */ +static int hf_charging_ase_stopIndicators; /* T_stopIndicators */ +static int hf_charging_ase_currentTariffCurrency; /* TariffCurrencyFormat */ +static int hf_charging_ase_tariffSwitchCurrency; /* TariffSwitchCurrency */ +static int hf_charging_ase_nextTariffCurrency; /* TariffCurrencyFormat */ +static int hf_charging_ase_tariffSwitchoverTime; /* TariffSwitchoverTime */ +static int hf_charging_ase_communicationChargeSequenceCurrency; /* SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargeCurrency */ +static int hf_charging_ase_communicationChargeSequenceCurrency_item; /* CommunicationChargeCurrency */ +static int hf_charging_ase_tariffControlIndicators; /* T_tariffControlIndicators */ +static int hf_charging_ase_callAttemptChargeCurrency; /* CurrencyFactorScale */ +static int hf_charging_ase_callSetupChargeCurrency; /* CurrencyFactorScale */ +static int hf_charging_ase_currentTariffPulse; /* TariffPulseFormat */ +static int hf_charging_ase_tariffSwitchPulse; /* TariffSwitchPulse */ +static int hf_charging_ase_nextTariffPulse; /* TariffPulseFormat */ +static int hf_charging_ase_communicationChargeSequencePulse; /* SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargePulse */ +static int hf_charging_ase_communicationChargeSequencePulse_item; /* CommunicationChargePulse */ +static int hf_charging_ase_tariffControlIndicators_01; /* T_tariffControlIndicators_01 */ +static int hf_charging_ase_callAttemptChargePulse; /* PulseUnits */ +static int hf_charging_ase_callSetupChargePulse; /* PulseUnits */ +static int hf_charging_ase_networkIdentification; /* NetworkIdentification */ +static int hf_charging_ase_referenceID; /* ReferenceID */ /* named bits */ -static int hf_charging_ase_T_acknowledgementIndicators_accepted = -1; -static int hf_charging_ase_ChargingControlIndicators_subscriberCharge = -1; -static int hf_charging_ase_ChargingControlIndicators_immediateChangeOfActuallyAppliedTariff = -1; -static int hf_charging_ase_ChargingControlIndicators_delayUntilStart = -1; -static int hf_charging_ase_T_stopIndicators_callAttemptChargesApplicable = -1; -static int hf_charging_ase_SubTariffControl_oneTimeCharge = -1; -static int hf_charging_ase_T_tariffControlIndicators_non_cyclicTariff = -1; -static int hf_charging_ase_T_tariffControlIndicators_01_non_cyclicTariff = -1; - -static int ett_charging_ase = -1; -static gint ett_charging_ase_ChargingMessageType = -1; -static gint ett_charging_ase_ChargingAcknowledgementInformation = -1; -static gint ett_charging_ase_T_acknowledgementIndicators = -1; -static gint ett_charging_ase_SEQUENCE_SIZE_1_numOfExtensions_OF_ExtensionField = -1; -static gint ett_charging_ase_ChargingControlIndicators = -1; -static gint ett_charging_ase_AddOnChargingInformation = -1; -static gint ett_charging_ase_T_addOncharge = -1; -static gint ett_charging_ase_ChargingTariffInformation = -1; -static gint ett_charging_ase_T_chargingTariff = -1; -static gint ett_charging_ase_Code = -1; -static gint ett_charging_ase_CommunicationChargeCurrency = -1; -static gint ett_charging_ase_CommunicationChargePulse = -1; -static gint ett_charging_ase_CurrencyFactorScale = -1; -static gint ett_charging_ase_ExtensionField = -1; -static gint ett_charging_ase_StartCharging = -1; -static gint ett_charging_ase_SEQUENCE_SIZE_1_maxNetworkOperators_OF_NetworkIdentification = -1; -static gint ett_charging_ase_StopCharging = -1; -static gint ett_charging_ase_T_stopIndicators = -1; -static gint ett_charging_ase_SubTariffControl = -1; -static gint ett_charging_ase_TariffCurrency = -1; -static gint ett_charging_ase_TariffSwitchCurrency = -1; -static gint ett_charging_ase_TariffCurrencyFormat = -1; -static gint ett_charging_ase_SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargeCurrency = -1; -static gint ett_charging_ase_T_tariffControlIndicators = -1; -static gint ett_charging_ase_TariffPulse = -1; -static gint ett_charging_ase_TariffSwitchPulse = -1; -static gint ett_charging_ase_TariffPulseFormat = -1; -static gint ett_charging_ase_SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargePulse = -1; -static gint ett_charging_ase_T_tariffControlIndicators_01 = -1; -static gint ett_charging_ase_ChargingReferenceIdentification = -1; - -static expert_field ei_charging_ase_extensions_not_dissected = EI_INIT; +static int hf_charging_ase_T_acknowledgementIndicators_accepted; +static int hf_charging_ase_ChargingControlIndicators_subscriberCharge; +static int hf_charging_ase_ChargingControlIndicators_immediateChangeOfActuallyAppliedTariff; +static int hf_charging_ase_ChargingControlIndicators_delayUntilStart; +static int hf_charging_ase_T_stopIndicators_callAttemptChargesApplicable; +static int hf_charging_ase_SubTariffControl_oneTimeCharge; +static int hf_charging_ase_T_tariffControlIndicators_non_cyclicTariff; +static int hf_charging_ase_T_tariffControlIndicators_01_non_cyclicTariff; + +static int ett_charging_ase; +static int ett_charging_ase_ChargingMessageType; +static int ett_charging_ase_ChargingAcknowledgementInformation; +static int ett_charging_ase_T_acknowledgementIndicators; +static int ett_charging_ase_SEQUENCE_SIZE_1_numOfExtensions_OF_ExtensionField; +static int ett_charging_ase_ChargingControlIndicators; +static int ett_charging_ase_AddOnChargingInformation; +static int ett_charging_ase_T_addOncharge; +static int ett_charging_ase_ChargingTariffInformation; +static int ett_charging_ase_T_chargingTariff; +static int ett_charging_ase_Code; +static int ett_charging_ase_CommunicationChargeCurrency; +static int ett_charging_ase_CommunicationChargePulse; +static int ett_charging_ase_CurrencyFactorScale; +static int ett_charging_ase_ExtensionField; +static int ett_charging_ase_StartCharging; +static int ett_charging_ase_SEQUENCE_SIZE_1_maxNetworkOperators_OF_NetworkIdentification; +static int ett_charging_ase_StopCharging; +static int ett_charging_ase_T_stopIndicators; +static int ett_charging_ase_SubTariffControl; +static int ett_charging_ase_TariffCurrency; +static int ett_charging_ase_TariffSwitchCurrency; +static int ett_charging_ase_TariffCurrencyFormat; +static int ett_charging_ase_SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargeCurrency; +static int ett_charging_ase_T_tariffControlIndicators; +static int ett_charging_ase_TariffPulse; +static int ett_charging_ase_TariffSwitchPulse; +static int ett_charging_ase_TariffPulseFormat; +static int ett_charging_ase_SEQUENCE_SIZE_minCommunicationTariffNum_maxCommunicationTariffNum_OF_CommunicationChargePulse; +static int ett_charging_ase_T_tariffControlIndicators_01; +static int ett_charging_ase_ChargingReferenceIdentification; + +static expert_field ei_charging_ase_extensions_not_dissected; static dissector_handle_t charging_ase_handle; @@ -802,8 +802,8 @@ dissect_charging_ase_ChargingMessageType(bool implicit_tag _U_, tvbuff_t *tvb _U int dissect_charging_ase_ChargingMessageType_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_BER, TRUE, pinfo); - offset = dissect_charging_ase_ChargingMessageType(FALSE, tvb, offset, &asn1_ctx, tree, hf_charging_ase_charging_ase_ChargingMessageType_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_charging_ase_ChargingMessageType(false, tvb, offset, &asn1_ctx, tree, hf_charging_ase_charging_ase_ChargingMessageType_PDU); return offset; } @@ -1077,7 +1077,7 @@ proto_register_charging_ase(void) }; /* List of subtrees */ - static gint *ett[] = { + static int *ett[] = { &ett_charging_ase, &ett_charging_ase_ChargingMessageType, &ett_charging_ase_ChargingAcknowledgementInformation, |