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
fd7258c2
Commit
fd7258c2
authored
Jan 18, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for Allowed NSSAI
parent
ef7337c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+8
-1
src/contexts/nas_context.hpp
src/contexts/nas_context.hpp
+1
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
fd7258c2
...
...
@@ -3255,7 +3255,7 @@ void amf_n1::ul_nas_transport_handle(
// TODO: Only use the first one for now if there's multiple requested
// NSSAI since we don't know which slice associated with this PDU session
if
(
nc
->
requestedN
ssai
.
size
()
>
0
)
{
if
(
nc
->
allowed_n
ssai
.
size
()
>
0
)
{
snssai
=
nc
->
requestedNssai
[
0
];
Logger
::
amf_n1
().
debug
(
"Use first Requested S-NSSAI %s"
,
snssai
.
ToString
().
c_str
());
...
...
@@ -4133,8 +4133,15 @@ void amf_n1::initialize_registration_accept(
SNSSAI_t
snssai
=
{};
snssai
.
sst
=
s
.
sst
;
snssai
.
sd
=
s
.
sd
;
if
(
s
.
sd
==
SD_NO_VALUE
)
{
snssai
.
length
=
SST_LENGTH
;
}
else
{
snssai
.
length
=
SST_LENGTH
+
SD_LENGTH
;
}
Logger
::
amf_n1
().
debug
(
"Allowed S-NSSAI (SST 0x%x, SD 0x%x)"
,
s
.
sst
,
s
.
sd
);
allowed_nssais
.
push_back
(
snssai
);
// Store in the NAS context
nc
->
allowed_nssai
.
push_back
(
snssai
);
// TODO: refactor NAS_Context
}
// Rejected NSSAIs
...
...
src/contexts/nas_context.hpp
View file @
fd7258c2
...
...
@@ -98,6 +98,7 @@ class nas_context {
// Set to true if marked as default
std
::
vector
<
std
::
pair
<
bool
,
nas
::
SNSSAI_t
>>
subscribed_snssai
;
std
::
vector
<
nas
::
SNSSAI_t
>
configured_nssai
;
// TODO: rejected_nssai;
// std::vector<nas::SNSSAI_t> default_configured_nssai;
// std::vector<nas::SNSSAI_t> s_nssai; //for Network Slice selection
...
...
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