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