Commit 757449f8 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for free resource

parent 6091323d
......@@ -92,7 +92,7 @@ void PduSessionResourceSetupRequestTransferIE::
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode PDUSessionAggregateMaximumBitRate IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -126,7 +126,7 @@ void PduSessionResourceSetupRequestTransferIE::setUL_NG_U_UP_TNL_Information(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UPTransportLayerInformation IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -155,7 +155,7 @@ void PduSessionResourceSetupRequestTransferIE::setDataForwardingNotPossible() {
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode DataForwardingNotPossible IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -184,7 +184,7 @@ void PduSessionResourceSetupRequestTransferIE::setPduSessionType(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode PDUSessionType IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -229,7 +229,7 @@ void PduSessionResourceSetupRequestTransferIE::setSecurityIndication(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode SecurityIndication IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -271,7 +271,7 @@ void PduSessionResourceSetupRequestTransferIE::setSecurityIndication(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode SecurityIndication IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -299,7 +299,7 @@ void PduSessionResourceSetupRequestTransferIE::setNetworkInstance(long value) {
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode NetworkInstance IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -481,7 +481,7 @@ void PduSessionResourceSetupRequestTransferIE::setQosFlowSetupRequestList(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestTransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode QosFlowSetupRequestList IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -75,12 +75,13 @@ bool SecurityIndication::encode2SecurityIndication(
if (!maxIPDataRate) return false;
if (!maximumIntegrityProtectedDataRate
->encode2MaximumIntegrityProtectedDataRate(*maxIPDataRate)) {
free_wrapper((void**) &maxIPDataRate);
return false;
free_wrapper((void**) &maxIPDataRate);
}
securityIndication->maximumIntegrityProtectedDataRate = maxIPDataRate;
free_wrapper((void**) &maxIPDataRate);
//free_wrapper((void**) &maxIPDataRate);
}
return true;
......
......@@ -79,7 +79,7 @@ bool UpTransportLayerInformation::encode2UpTransportLayerInformation(
if (!gtpTeid->encode2GtpTeid(gtptunnel->gTP_TEID)) return false;
upTransportLayerInfo.choice.gTPTunnel = gtptunnel;
free_wrapper((void**) &gtptunnel);
//free_wrapper((void**) &gtptunnel);
return true;
}
......
......@@ -110,7 +110,7 @@ void DownLinkNasTransportMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&downLinkNasTransportIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -134,7 +134,7 @@ void DownLinkNasTransportMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
ret = ASN_SEQUENCE_ADD(&downLinkNasTransportIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -158,7 +158,7 @@ void DownLinkNasTransportMsg::setOldAmfName(const std::string name) {
ret = ASN_SEQUENCE_ADD(&downLinkNasTransportIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode oldAmfName IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -183,7 +183,7 @@ void DownLinkNasTransportMsg::setRanPagingPriority(uint8_t pagingPriority) {
ret = ASN_SEQUENCE_ADD(&downLinkNasTransportIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RANPagingPriority IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -208,7 +208,7 @@ void DownLinkNasTransportMsg::setNasPdu(uint8_t* nas, size_t sizeofnas) {
ret = ASN_SEQUENCE_ADD(&downLinkNasTransportIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode NAS_PDU IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -233,7 +233,7 @@ void DownLinkNasTransportMsg::setIndex2Rat_Frequency_SelectionPriority(
ret = ASN_SEQUENCE_ADD(&downLinkNasTransportIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode IndexToRFSP IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -58,7 +58,7 @@ void DownlinkRANStatusTransfer::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&DownlinkranstatustransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void DownlinkRANStatusTransfer::setRanUeNgapId(uint32_t id) {
if (!ranUeNgapId) ranUeNgapId = new RAN_UE_NGAP_ID();
......@@ -81,7 +81,7 @@ void DownlinkRANStatusTransfer::setRanUeNgapId(uint32_t id) {
ret = ASN_SEQUENCE_ADD(&DownlinkranstatustransferIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void DownlinkRANStatusTransfer::setRANStatusTransfer_TransparentContainer(
......@@ -139,7 +139,7 @@ void DownlinkRANStatusTransfer::setRANStatusTransfer_TransparentContainer(
0) {
cout << "encode ranstatustransfer_transparentcontainer error 2" << endl;
}
free_wrapper((void**) &dRB_id);
/* free_wrapper((void**) &dRB_id);
free_wrapper((void**) &UL_value);
free_wrapper((void**) &DL_value);
free_wrapper((void**) &UL18);
......@@ -149,6 +149,7 @@ void DownlinkRANStatusTransfer::setRANStatusTransfer_TransparentContainer(
free_wrapper((void**) &m_list);
free_wrapper((void**) &m_item);
free_wrapper((void**) &ie);
*/
}
void DownlinkRANStatusTransfer::setmessagetype() {
if (!DownlinkranstatustransferPDU) {
......
......@@ -237,7 +237,7 @@ void HandoverCommandMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&handoverCommandIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverCommandMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
......@@ -259,7 +259,7 @@ void HandoverCommandMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
ret = ASN_SEQUENCE_ADD(&handoverCommandIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverCommandMsg::setHandoverType(long type) {
......@@ -272,7 +272,7 @@ void HandoverCommandMsg::setHandoverType(long type) {
ie->value.choice.HandoverType = type;
int ret = ASN_SEQUENCE_ADD(&handoverCommandIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode HandoverType IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverCommandMsg::setPduSessionResourceHandoverList(
......@@ -303,8 +303,8 @@ void HandoverCommandMsg::setPduSessionResourceHandoverList(
int ret = ASN_SEQUENCE_ADD(&handoverCommandIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode PDUSessionResourceHandoverList IE error" << endl;
free_wrapper((void**) &item);
free_wrapper((void**) &ie);
//free_wrapper((void**) &item);
// free_wrapper((void**) &ie);
}
void HandoverCommandMsg::setTargetToSource_TransparentContainer(
......@@ -322,7 +322,7 @@ void HandoverCommandMsg::setTargetToSource_TransparentContainer(
ie->value.choice.TargetToSource_TransparentContainer = targetTosource;
int ret = ASN_SEQUENCE_ADD(&handoverCommandIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode HandoverType IE error" << endl;
free_wrapper((void**) &ie);
// free_wrapper((void**) &ie);
}
} // namespace ngap
......@@ -182,7 +182,7 @@ void HandoverNotifyMsg::setUserLocationInfoNR(
ret = ASN_SEQUENCE_ADD(&handoverNotifyIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UserLocationInformation IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
uint32_t HandoverNotifyMsg::getRanUeNgapId() {
return ranUeNgapId->getRanUeNgapId();
......
......@@ -268,7 +268,7 @@ void HandoverRequest::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setHandoverType(long type) // 0--intra5gs
......@@ -282,7 +282,7 @@ void HandoverRequest::setHandoverType(long type) // 0--intra5gs
ie->value.choice.HandoverType = type;
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode HandoverType IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setCause(Ngap_Cause_PR m_causePresent, long value) //
......@@ -299,7 +299,7 @@ void HandoverRequest::setCause(Ngap_Cause_PR m_causePresent, long value) //
cause->encode2Cause(&(ie->value.choice.Cause));
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode Cause IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setUEAggregateMaximumBitRate(
......@@ -321,7 +321,7 @@ void HandoverRequest::setUEAggregateMaximumBitRate(
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UEAggregateMaximumBitRate IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setUESecurityCapabilities(
uint16_t m_NR_EncryptionAlgs, uint16_t m_NR_IntegrityProtectionAlgs,
......@@ -343,7 +343,7 @@ void HandoverRequest::setUESecurityCapabilities(
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UESecurityCapabilities IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setGUAMI(
......@@ -361,7 +361,7 @@ void HandoverRequest::setGUAMI(
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode GUAMI IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setAllowedNSSAI(std::vector<S_NSSAI> list) {
if (!allowedNSSAI) allowedNSSAI = new Ngap_AllowedNSSAI_t();
......@@ -385,7 +385,7 @@ void HandoverRequest::setAllowedNSSAI(std::vector<S_NSSAI> list) {
ie->value.choice.AllowedNSSAI = *allowedNSSAI;
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AllowedNSSAI IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setSecurityContext(long count, uint8_t* buffer) {
if (!SecurityContext) SecurityContext = new Ngap_SecurityContext_t();
......@@ -403,7 +403,7 @@ void HandoverRequest::setSecurityContext(long count, uint8_t* buffer) {
ie->value.choice.SecurityContext = *SecurityContext;
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode SecurityContext IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setPduSessionResourceSetupList(
......@@ -446,7 +446,7 @@ void HandoverRequest::setPduSessionResourceSetupList(
ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode PDUSessionResourceSetupListSUReq IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setSourceToTarget_TransparentContainer(
......@@ -465,7 +465,7 @@ void HandoverRequest::setSourceToTarget_TransparentContainer(
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode SourceToTarget_TransparentContainer IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
void HandoverRequest::setMobilityRestrictionList(PlmnId* m_plmnId) {
if (!mobilityrestrictionlist) {
......@@ -481,7 +481,7 @@ void HandoverRequest::setMobilityRestrictionList(PlmnId* m_plmnId) {
&(ie->value.choice.MobilityRestrictionList));
int ret = ASN_SEQUENCE_ADD(&handoverRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode MobilityRestrictionList IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
} // namespace ngap
......@@ -109,7 +109,7 @@ void InitialContextSetupFailureMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupFailureIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -134,7 +134,7 @@ void InitialContextSetupFailureMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupFailureIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -118,7 +118,7 @@ void InitialContextSetupRequestMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -143,7 +143,7 @@ void InitialContextSetupRequestMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -167,7 +167,7 @@ void InitialContextSetupRequestMsg::setOldAmfName(const std::string name) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode oldAmfName IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -197,7 +197,7 @@ void InitialContextSetupRequestMsg::setUEAggregateMaxBitRate(
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UEAggregateMaxBitRate IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -248,7 +248,7 @@ void InitialContextSetupRequestMsg::setCoreNetworkAssistanceInfo(
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode CoreNetworkAssistanceInformation IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -296,7 +296,7 @@ void InitialContextSetupRequestMsg::setCoreNetworkAssistanceInfo(
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode CoreNetworkAssistanceInformation IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -331,7 +331,7 @@ void InitialContextSetupRequestMsg::setGuami(Guami_t value) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode GUAMI IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -394,7 +394,7 @@ void InitialContextSetupRequestMsg::setPduSessionResourceSetupRequestList(
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode PDUSessionResourceSetupListCxtReq IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -423,7 +423,7 @@ void InitialContextSetupRequestMsg::setAllowedNssai(std::vector<S_Nssai> list) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AllowedNSSAI IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -455,7 +455,7 @@ void InitialContextSetupRequestMsg::setUESecurityCapability(
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UESecurityCapabilities IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -480,7 +480,7 @@ void InitialContextSetupRequestMsg::setSecurityKey(uint8_t* key) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode SecurityKey IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -505,7 +505,7 @@ void InitialContextSetupRequestMsg::setNasPdu(uint8_t* nas, size_t sizeofnas) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode NAS_PDU IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -533,7 +533,7 @@ void InitialContextSetupRequestMsg::setUERadioCapability(
ret = ASN_SEQUENCE_ADD(&initialContextSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UERadioCapability IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -109,7 +109,7 @@ void InitialContextSetupResponseMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupResponseIEs->protocolIEs.list, ie);
if (ret != 0) std::cout << "Encode AMF_UE_NGAP_ID IE error" << std::endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -134,7 +134,7 @@ void InitialContextSetupResponseMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
ret = ASN_SEQUENCE_ADD(&initialContextSetupResponseIEs->protocolIEs.list, ie);
if (ret != 0) std::cout << "Encode RAN_UE_NGAP_ID IE error" << std::endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -180,7 +180,7 @@ void InitialContextSetupResponseMsg::setPduSessionResourceSetupResponseList(
if (ret != 0)
std::cout << "Encode PDUSessionResourceSetupListCxtRes IE error"
<< std::endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -231,7 +231,7 @@ void InitialContextSetupResponseMsg::setPduSessionResourceFailedToSetupList(
if (ret != 0)
std::cout << "Encode PDUSessionResourceFailedToSetupListCxtRes IE error"
<< std::endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -107,7 +107,7 @@ void InitialUEMessageMsg::setRanUENgapID(uint32_t ran_ue_ngap_id) {
ret = ASN_SEQUENCE_ADD(&initialUEMessageIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -131,7 +131,7 @@ void InitialUEMessageMsg::setNasPdu(uint8_t* nas, size_t sizeofnas) {
ret = ASN_SEQUENCE_ADD(&initialUEMessageIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode NAS_PDU IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -176,7 +176,7 @@ void InitialUEMessageMsg::setUserLocationInfoNR(
ret = ASN_SEQUENCE_ADD(&initialUEMessageIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UserLocationInformation IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -203,7 +203,7 @@ void InitialUEMessageMsg::setRRCEstablishmentCause(
ret = ASN_SEQUENCE_ADD(&initialUEMessageIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RRCEstablishmentCause IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -231,7 +231,7 @@ void InitialUEMessageMsg::setUeContextRequest(
ret = ASN_SEQUENCE_ADD(&initialUEMessageIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UEContextRequest IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -210,7 +210,7 @@ void NGSetupRequestMsg::setDefaultPagingDRX(e_Ngap_PagingDRX value) {
ret = ASN_SEQUENCE_ADD(&ngSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode DefaultPagingDRX IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -113,7 +113,7 @@ void PduSessionResourceReleaseCommandMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceReleaseCommandIEs->protocolIEs.list, ie);
if (ret != 0) Logger::nas_mm().warn("Encode AMF_UE_NGAP_ID IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -140,7 +140,7 @@ void PduSessionResourceReleaseCommandMsg::setRanUeNgapId(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceReleaseCommandIEs->protocolIEs.list, ie);
if (ret != 0) Logger::nas_mm().warn("Encode RAN_UE_NGAP_ID IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -169,7 +169,7 @@ void PduSessionResourceReleaseCommandMsg::setRanPagingPriority(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceReleaseCommandIEs->protocolIEs.list, ie);
if (ret != 0) Logger::nas_mm().warn("Encode RANPagingPriority IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -197,7 +197,7 @@ void PduSessionResourceReleaseCommandMsg::setNasPdu(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceReleaseCommandIEs->protocolIEs.list, ie);
if (ret != 0) Logger::nas_mm().warn("Encode NAS_PDU IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -111,7 +111,7 @@ void PduSessionResourceReleaseResponseMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceReleaseResponseIEs->protocolIEs.list, ie);
if (ret != 0) Logger::nas_mm().warn("Encode AMF_UE_NGAP_ID IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -138,7 +138,7 @@ void PduSessionResourceReleaseResponseMsg::setRanUeNgapId(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceReleaseResponseIEs->protocolIEs.list, ie);
if (ret != 0) Logger::nas_mm().warn("Encode RAN_UE_NGAP_ID IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -185,7 +185,7 @@ void PduSessionResourceReleaseResponseMsg::setPduSessionResourceReleasedList(
if (ret != 0)
Logger::nas_mm().warn(
"Encode PDUSessionResourceReleasedListRelRes IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -231,7 +231,7 @@ void PduSessionResourceReleaseResponseMsg::setUserLocationInfoNR(
&pduSessionResourceReleaseResponseIEs->protocolIEs.list, ie);
if (ret != 0)
Logger::nas_mm().warn("Encode UserLocationInformation IE error");
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -113,7 +113,7 @@ void PduSessionResourceSetupRequestMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -140,7 +140,7 @@ void PduSessionResourceSetupRequestMsg::setRanUeNgapId(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -168,7 +168,7 @@ void PduSessionResourceSetupRequestMsg::setRanPagingPriority(uint8_t priority) {
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RANPagingPriority IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -195,7 +195,7 @@ void PduSessionResourceSetupRequestMsg::setNasPdu(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode NAS_PDU IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -247,7 +247,7 @@ void PduSessionResourceSetupRequestMsg::setPduSessionResourceSetupRequestList(
&pduSessionResourceSetupRequestIEs->protocolIEs.list, ie);
if (ret != 0)
cout << "encode PDUSessionResourceSetupListSUReq IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -112,7 +112,7 @@ void PduSessionResourceSetupResponseMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupResponseIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -139,7 +139,7 @@ void PduSessionResourceSetupResponseMsg::setRanUeNgapId(
ret = ASN_SEQUENCE_ADD(
&pduSessionResourceSetupResponseIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -90,7 +90,7 @@ void UEContextReleaseCommandMsg::setAmfUeNgapId(unsigned long id) {
}
ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode UE_NGAP_IDs IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -125,7 +125,7 @@ void UEContextReleaseCommandMsg::setUeNgapIdPair(
}
ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode UE_NGAP_IDs IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -85,7 +85,7 @@ void UEContextReleaseCompleteMsg::setAmfUeNgapId(unsigned long id) {
}
ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -107,7 +107,7 @@ void UEContextReleaseCompleteMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
}
ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -152,7 +152,7 @@ void UEContextReleaseCompleteMsg::setUserLocationInfoNR(
}
ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode UserLocationInformation IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -84,7 +84,7 @@ void UEContextReleaseRequestMsg::setAmfUeNgapId(unsigned long id) {
}
ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -105,7 +105,7 @@ void UEContextReleaseRequestMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
}
ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -128,7 +128,7 @@ void UEContextReleaseRequestMsg::addCauseIE() {
causeValue->encode2Cause(&ie->value.choice.Cause);
int ret = ASN_SEQUENCE_ADD(&ies->protocolIEs.list, ie);
if (ret != 0) cout << "encode Cause IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -112,7 +112,7 @@ void UeRadioCapabilityInfoIndicationMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(
&ueRadioCapabilityInfoIndicationIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode AMF_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -139,7 +139,7 @@ void UeRadioCapabilityInfoIndicationMsg::setRanUeNgapId(
ret = ASN_SEQUENCE_ADD(
&ueRadioCapabilityInfoIndicationIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode RAN_UE_NGAP_ID IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -168,7 +168,7 @@ void UeRadioCapabilityInfoIndicationMsg::setUERadioCapability(
ret = ASN_SEQUENCE_ADD(
&ueRadioCapabilityInfoIndicationIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UERadioCapability IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -211,7 +211,7 @@ void UeRadioCapabilityInfoIndicationMsg::setUERadioCapabilityForPaging(
ret = ASN_SEQUENCE_ADD(
&ueRadioCapabilityInfoIndicationIEs->protocolIEs.list, ie);
if (ret != 0) cout << "encode UERadioCapabilityForPaging IE error" << endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
......@@ -104,7 +104,7 @@ void UplinkNASTransportMsg::setAmfUeNgapId(unsigned long id) {
ret = ASN_SEQUENCE_ADD(&uplinkNASTransportIEs->protocolIEs.list, ie);
if (ret != 0) std::cout << "Encode AMF_UE_NGAP_ID IE error" << std::endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -127,7 +127,7 @@ void UplinkNASTransportMsg::setRanUeNgapId(uint32_t ran_ue_ngap_id) {
ret = ASN_SEQUENCE_ADD(&uplinkNASTransportIEs->protocolIEs.list, ie);
if (ret != 0) std::cout << "Encode RAN_UE_NGAP_ID IE error" << std::endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -151,7 +151,7 @@ void UplinkNASTransportMsg::setNasPdu(uint8_t* nas, size_t sizeofnas) {
ret = ASN_SEQUENCE_ADD(&uplinkNASTransportIEs->protocolIEs.list, ie);
if (ret != 0) std::cout << "Encode NAS_PDU IE error" << std::endl;
free_wrapper((void**) &ie);
//free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......@@ -197,7 +197,7 @@ void UplinkNASTransportMsg::setUserLocationInfoNR(
ret = ASN_SEQUENCE_ADD(&uplinkNASTransportIEs->protocolIEs.list, ie);
if (ret != 0)
std::cout << "Encode UserLocationInformation IE error" << std::endl;
free_wrapper((void**) &ie);
// free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment