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
0869cc8f
Commit
0869cc8f
authored
Aug 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix for new/delete
parent
98be13f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+5
-5
src/common/amf.hpp
src/common/amf.hpp
+3
-0
src/ngap/ngapMsgs/HandoverNotifyMsg.cpp
src/ngap/ngapMsgs/HandoverNotifyMsg.cpp
+3
-3
src/ngap/ngapMsgs/InitialContextSetupFailure.cpp
src/ngap/ngapMsgs/InitialContextSetupFailure.cpp
+3
-3
No files found.
src/amf-app/amf_n2.cpp
View file @
0869cc8f
...
...
@@ -862,7 +862,7 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
// UEAggregateMaximumBitRate
msg
->
setUEAggregateMaxBitRate
(
0x08a7d8c0
,
0x20989680
);
// TODO: remove hardcoded value
UE_AGGREGATE_MAXIMUM_BIT_RATE_DL
,
UE_AGGREGATE_MAXIMUM_BIT_RATE_UL
);
// TODO: Mobility RestrictionList
}
...
...
@@ -942,7 +942,8 @@ void amf_n2::handle_itti_message(
item
.
pduSessionResourceSetupRequestTransfer
.
size
=
blength
(
itti_msg
.
n2sm
);
list
.
push_back
(
item
);
psrsr
->
setPduSessionResourceSetupRequestList
(
list
);
psrsr
->
setUEAggregateMaxBitRate
(
0x08a7d8c0
,
0x20989680
);
psrsr
->
setUEAggregateMaxBitRate
(
UE_AGGREGATE_MAXIMUM_BIT_RATE_DL
,
UE_AGGREGATE_MAXIMUM_BIT_RATE_UL
);
size_t
buffer_size
=
BUFFER_SIZE_512
;
char
*
buffer
=
(
char
*
)
calloc
(
1
,
buffer_size
);
int
encoded_size
=
0
;
...
...
@@ -1194,8 +1195,7 @@ bool amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
"Handover Required: Target ID selected TAI PLMN (MCC %s, MNC %s, TAC %x)"
,
mccOfselectTAI
.
c_str
(),
mncOfselectTAI
.
c_str
(),
tac
->
getTac
());
OCTET_STRING_t
sourceTotarget
;
sourceTotarget
=
OCTET_STRING_t
sourceTotarget
=
itti_msg
.
handoverReq
->
getSourceToTarget_TransparentContainer
();
// TODO: T-AMF selection, for now use the same AMF
...
...
@@ -1210,7 +1210,7 @@ bool amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
Ngap_Cause_PR_radioNetwork
,
Ngap_CauseRadioNetwork_handover_desirable_for_radio_reason
);
handover_request
->
setUEAggregateMaximumBitRate
(
300000000
,
100000000
);
// TODO: remove hardcoded values
UE_AGGREGATE_MAXIMUM_BIT_RATE_DL
,
UE_AGGREGATE_MAXIMUM_BIT_RATE_UL
);
handover_request
->
setUESecurityCapabilities
(
0xe000
,
0xe000
,
0xe000
,
0xe000
);
// TODO: remove hardcoded values
...
...
src/common/amf.hpp
View file @
0869cc8f
...
...
@@ -109,4 +109,7 @@ constexpr auto CURL_MIME_BOUNDARY = "----Boundary";
#define FUTURE_STATUS_TIMEOUT_MS 100
#define UE_AGGREGATE_MAXIMUM_BIT_RATE_DL 300000000
#define UE_AGGREGATE_MAXIMUM_BIT_RATE_UL 200000000
#endif
src/ngap/ngapMsgs/HandoverNotifyMsg.cpp
View file @
0869cc8f
...
...
@@ -54,9 +54,9 @@ HandoverNotifyMsg::HandoverNotifyMsg() {
//------------------------------------------------------------------------------
HandoverNotifyMsg
::~
HandoverNotifyMsg
()
{
if
(
amfUeNgapId
)
free
(
amfUeNgapId
);
if
(
ranUeNgapId
)
free
(
ranUeNgapId
);
if
(
userLocationInformation
)
free
(
userLocationInformation
);
if
(
amfUeNgapId
)
delete
(
amfUeNgapId
);
if
(
ranUeNgapId
)
delete
(
ranUeNgapId
);
if
(
userLocationInformation
)
delete
(
userLocationInformation
);
if
(
handoverNotifyPdu
)
free
(
handoverNotifyPdu
);
if
(
handoverNotifyIEs
)
free
(
handoverNotifyIEs
);
};
...
...
src/ngap/ngapMsgs/InitialContextSetupFailure.cpp
View file @
0869cc8f
...
...
@@ -56,10 +56,10 @@ InitialContextSetupFailureMsg::InitialContextSetupFailureMsg() {
InitialContextSetupFailureMsg
::~
InitialContextSetupFailureMsg
()
{
if
(
initialContextSetupFailurePdu
)
free
(
initialContextSetupFailurePdu
);
if
(
initialContextSetupFailureIEs
)
free
(
initialContextSetupFailureIEs
);
if
(
amfUeNgapId
)
free
(
amfUeNgapId
);
if
(
ranUeNgapId
)
free
(
ranUeNgapId
);
if
(
amfUeNgapId
)
delete
(
amfUeNgapId
);
if
(
ranUeNgapId
)
delete
(
ranUeNgapId
);
if
(
pduSessionResourceFailedToSetupFailureList
)
free
(
pduSessionResourceFailedToSetupFailureList
);
delete
(
pduSessionResourceFailedToSetupFailureList
);
}
//------------------------------------------------------------------------------
...
...
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