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
04deb94d
Commit
04deb94d
authored
Oct 30, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for encoding NSSAI
parent
81261861
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+2
-0
src/nas/ies/NSSAI.cpp
src/nas/ies/NSSAI.cpp
+4
-4
No files found.
src/amf-app/amf_n1.cpp
View file @
04deb94d
...
...
@@ -4065,6 +4065,8 @@ void amf_n1::initialize_registration_accept(
}
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
);
found
=
true
;
break
;
...
...
src/nas/ies/NSSAI.cpp
View file @
04deb94d
...
...
@@ -40,10 +40,10 @@ NSSAI::NSSAI(const uint8_t iei, std::vector<struct SNSSAI_s> nssai) {
length
=
0
;
S_NSSAIs
.
assign
(
nssai
.
begin
(),
nssai
.
end
());
for
(
int
i
=
0
;
i
<
nssai
.
size
();
i
++
)
{
length
+=
2
;
// 1 for IEI and 1 for sst
if
(
nssai
[
i
].
sd
!=
SD_NO_VALUE
)
length
+=
SD_LENGTH
;
if
(
nssai
[
i
].
mHplmnSst
!=
-
1
)
length
+=
SST_LENGTH
;
if
(
nssai
[
i
].
mHplmnSd
!=
SD_NO_VALUE
)
length
+=
SD_LENGTH
;
length
+=
(
1
+
nssai
[
i
].
length
);
// 1 for IEI
//
if (nssai[i].sd != SD_NO_VALUE) length += SD_LENGTH;
//
if (nssai[i].mHplmnSst != -1) length += SST_LENGTH;
//
if (nssai[i].mHplmnSd != SD_NO_VALUE) length += SD_LENGTH;
}
}
...
...
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