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
8582092b
Commit
8582092b
authored
Feb 07, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NSSAI
parent
1d76bbf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/ngap/ngapIEs/S-NSSAI.cpp
src/ngap/ngapIEs/S-NSSAI.cpp
+2
-6
No files found.
src/ngap/ngapIEs/S-NSSAI.cpp
View file @
8582092b
...
...
@@ -77,14 +77,10 @@ bool S_NSSAI::sDEncode2OctetString(Ngap_SD_t* m_sd) {
bool
S_NSSAI
::
sDdecodefromOctetString
(
Ngap_SD_t
*
m_sd
)
{
if
(
!
m_sd
->
buf
)
return
false
;
if
(
m_sd
->
size
==
3
)
{
sd
=
0x00ffffff
&&
(((
m_sd
->
buf
[
0
]
&
0x00ff0000
)
>>
16
)
|
((
m_sd
->
buf
[
1
]
&
0x0000ff00
)
>>
8
)
|
(
m_sd
->
buf
[
2
]
&
0x000000ff
));
sd
=
((
m_sd
->
buf
[
0
]
>>
16
)
+
(
m_sd
->
buf
[
1
]
>>
8
)
+
m_sd
->
buf
[
2
]);
}
else
if
(
m_sd
->
size
==
4
)
{
sd
=
0x00ffffff
&&
(((
m_sd
->
buf
[
1
]
&
0x00ff0000
)
>>
16
)
|
((
m_sd
->
buf
[
2
]
&
0x0000ff00
)
>>
8
)
|
(
m_sd
->
buf
[
3
]
&
0x000000ff
));
sd
=
((
m_sd
->
buf
[
1
]
>>
16
)
+
(
m_sd
->
buf
[
2
]
>>
8
)
+
m_sd
->
buf
[
3
]);
}
// sd = *(uint32_t*) m_sd->buf & 0x00ffffff;
...
...
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