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
51a0879b
Commit
51a0879b
authored
Dec 15, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix to support Service Request
parent
4b6a5e0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+8
-4
No files found.
src/amf-app/amf_n1.cpp
View file @
51a0879b
...
...
@@ -476,7 +476,7 @@ void amf_n1::nas_signalling_establishment_request_handle(
uint32_t
ran_ue_ngap_id
,
long
amf_ue_ngap_id
,
bstring
plain_msg
,
std
::
string
snn
,
uint8_t
ulCount
)
{
// Create NAS Context, or Update if existed
if
(
(
nc
.
get
()
==
nullptr
)
&&
(
type
==
PlainNasMsg
))
{
if
(
!
nc
.
get
(
))
{
Logger
::
amf_n1
().
debug
(
"No existing nas_context with amf_ue_ngap_id 0x%x --> Create a new one"
,
amf_ue_ngap_id
);
...
...
@@ -506,9 +506,9 @@ void amf_n1::nas_signalling_establishment_request_handle(
event_sub
.
ue_reachability_status
(
supi
,
1
);
}
else
{
// Logger::amf_n1().debug("existing nas_context with amf_ue_ngap_id(0x%x)
// --> Update",amf_ue_ngap_id); nc =
// amf_ue_id_2_nas_context(amf_ue_ngap_id);
Logger
::
amf_n1
().
debug
(
"Existing nas_context with amf_ue_ngap_id (0x%x)"
,
amf_ue_ngap_id
);
//
nc =
amf_ue_id_2_nas_context(amf_ue_ngap_id);
}
uint8_t
*
buf
=
(
uint8_t
*
)
bdata
(
plain_msg
);
...
...
@@ -525,6 +525,10 @@ void amf_n1::nas_signalling_establishment_request_handle(
case
SERVICE_REQUEST
:
{
Logger
::
amf_n1
().
debug
(
"Received service request message, handling..."
);
if
(
!
nc
.
get
())
{
Logger
::
amf_n1
().
error
(
"No NAS Context found"
);
return
;
}
if
(
!
nc
.
get
()
->
security_ctx
)
{
Logger
::
amf_n1
().
error
(
"No Security Context found"
);
return
;
...
...
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