Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
757449f8
Commit
757449f8
authored
Feb 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for free resource
parent
6091323d
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
96 additions
and
94 deletions
+96
-94
src/ngap/ngapIEs/PDUSessionResourceSetupRequestTransfer.cpp
src/ngap/ngapIEs/PDUSessionResourceSetupRequestTransfer.cpp
+8
-8
src/ngap/ngapIEs/SecurityIndication.cpp
src/ngap/ngapIEs/SecurityIndication.cpp
+3
-2
src/ngap/ngapIEs/UPTransportLayerInformation.cpp
src/ngap/ngapIEs/UPTransportLayerInformation.cpp
+1
-1
src/ngap/ngapMsgs/DownLinkNasTransport.cpp
src/ngap/ngapMsgs/DownLinkNasTransport.cpp
+6
-6
src/ngap/ngapMsgs/DownlinkRANStatusTransfer.cpp
src/ngap/ngapMsgs/DownlinkRANStatusTransfer.cpp
+4
-3
src/ngap/ngapMsgs/HandoverCommandMsg.cpp
src/ngap/ngapMsgs/HandoverCommandMsg.cpp
+6
-6
src/ngap/ngapMsgs/HandoverNotifyMsg.cpp
src/ngap/ngapMsgs/HandoverNotifyMsg.cpp
+1
-1
src/ngap/ngapMsgs/HandoverRequest.cpp
src/ngap/ngapMsgs/HandoverRequest.cpp
+11
-11
src/ngap/ngapMsgs/InitialContextSetupFailure.cpp
src/ngap/ngapMsgs/InitialContextSetupFailure.cpp
+2
-2
src/ngap/ngapMsgs/InitialContextSetupRequest.cpp
src/ngap/ngapMsgs/InitialContextSetupRequest.cpp
+13
-13
src/ngap/ngapMsgs/InitialContextSetupResponse.cpp
src/ngap/ngapMsgs/InitialContextSetupResponse.cpp
+4
-4
src/ngap/ngapMsgs/InitialUEMessage.cpp
src/ngap/ngapMsgs/InitialUEMessage.cpp
+5
-5
src/ngap/ngapMsgs/NGSetupRequest.cpp
src/ngap/ngapMsgs/NGSetupRequest.cpp
+1
-1
src/ngap/ngapMsgs/PduSessionResourceReleaseCommand.cpp
src/ngap/ngapMsgs/PduSessionResourceReleaseCommand.cpp
+4
-4
src/ngap/ngapMsgs/PduSessionResourceReleaseResponse.cpp
src/ngap/ngapMsgs/PduSessionResourceReleaseResponse.cpp
+4
-4
src/ngap/ngapMsgs/PduSessionResourceSetupRequest.cpp
src/ngap/ngapMsgs/PduSessionResourceSetupRequest.cpp
+5
-5
src/ngap/ngapMsgs/PduSessionResourceSetupResponse.cpp
src/ngap/ngapMsgs/PduSessionResourceSetupResponse.cpp
+2
-2
src/ngap/ngapMsgs/UEContextReleaseCommand.cpp
src/ngap/ngapMsgs/UEContextReleaseCommand.cpp
+2
-2
src/ngap/ngapMsgs/UEContextReleaseComplete.cpp
src/ngap/ngapMsgs/UEContextReleaseComplete.cpp
+3
-3
src/ngap/ngapMsgs/UEContextReleaseRequest.cpp
src/ngap/ngapMsgs/UEContextReleaseRequest.cpp
+3
-3
src/ngap/ngapMsgs/UERadioCapabilityInfoIndication.cpp
src/ngap/ngapMsgs/UERadioCapabilityInfoIndication.cpp
+4
-4
src/ngap/ngapMsgs/UplinkNASTransport.cpp
src/ngap/ngapMsgs/UplinkNASTransport.cpp
+4
-4
No files found.
src/ngap/ngapIEs/PDUSessionResourceSetupRequestTransfer.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapIEs/SecurityIndication.cpp
View file @
757449f8
...
...
@@ -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
;
...
...
src/ngap/ngapIEs/UPTransportLayerInformation.cpp
View file @
757449f8
...
...
@@ -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**) >ptunnel);
return
true
;
}
...
...
src/ngap/ngapMsgs/DownLinkNasTransport.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/DownlinkRANStatusTransfer.cpp
View file @
757449f8
...
...
@@ -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
)
{
...
...
src/ngap/ngapMsgs/HandoverCommandMsg.cpp
View file @
757449f8
...
...
@@ -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
src/ngap/ngapMsgs/HandoverNotifyMsg.cpp
View file @
757449f8
...
...
@@ -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
();
...
...
src/ngap/ngapMsgs/HandoverRequest.cpp
View file @
757449f8
...
...
@@ -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
src/ngap/ngapMsgs/InitialContextSetupFailure.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/InitialContextSetupRequest.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/InitialContextSetupResponse.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/InitialUEMessage.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/NGSetupRequest.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/PduSessionResourceReleaseCommand.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/PduSessionResourceReleaseResponse.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/PduSessionResourceSetupRequest.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/PduSessionResourceSetupResponse.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/UEContextReleaseCommand.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/UEContextReleaseComplete.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/UEContextReleaseRequest.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/UERadioCapabilityInfoIndication.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
src/ngap/ngapMsgs/UplinkNASTransport.cpp
View file @
757449f8
...
...
@@ -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);
}
//------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment