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
2009b4c7
Commit
2009b4c7
authored
Mar 14, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
618a4d1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+1
-4
src/ngap/ngapIEs/S-NSSAI.cpp
src/ngap/ngapIEs/S-NSSAI.cpp
+3
-4
No files found.
src/amf-app/amf_n2.cpp
View file @
2009b4c7
...
@@ -2186,15 +2186,12 @@ bool amf_n2::get_common_plmn(
...
@@ -2186,15 +2186,12 @@ bool amf_n2::get_common_plmn(
plmn_slice_support_item
.
mnc
=
list
[
j
].
b_plmn_list
[
k
].
mnc
;
plmn_slice_support_item
.
mnc
=
list
[
j
].
b_plmn_list
[
k
].
mnc
;
for
(
auto
s1
:
list
[
j
].
b_plmn_list
[
k
].
slice_list
)
{
for
(
auto
s1
:
list
[
j
].
b_plmn_list
[
k
].
slice_list
)
{
// for debugging purpose
Logger
::
amf_n2
().
debug
(
Logger
::
amf_n2
().
debug
(
"S-NSSAI from gNB (SST %s, SD %s)"
,
s1
.
sst
.
c_str
(),
"S-NSSAI from gNB (SST %s, SD %s)"
,
s1
.
sst
.
c_str
(),
s1
.
sd
.
c_str
());
s1
.
sd
.
c_str
());
for
(
auto
s2
:
amf_cfg
.
plmn_list
[
i
].
slice_list
)
{
for
(
auto
s2
:
amf_cfg
.
plmn_list
[
i
].
slice_list
)
{
// for debugging purpose
Logger
::
amf_n2
().
debug
(
Logger
::
amf_n2
().
debug
(
"S-NSSAI from AMF (SST %d, SD %
ld, SD %s)"
,
s2
.
sst
,
s2
.
sd
,
"S-NSSAI from AMF (SST %d, SD %
s)"
,
s2
.
sst
,
std
::
to_string
(
s2
.
sd
).
c_str
());
std
::
to_string
(
s2
.
sd
).
c_str
());
if
((
s1
.
sst
.
compare
(
std
::
to_string
(
s2
.
sst
))
==
0
)
and
if
((
s1
.
sst
.
compare
(
std
::
to_string
(
s2
.
sst
))
==
0
)
and
(
s1
.
sd
.
compare
(
std
::
to_string
(
s2
.
sd
))
==
0
))
{
(
s1
.
sd
.
compare
(
std
::
to_string
(
s2
.
sd
))
==
0
))
{
...
...
src/ngap/ngapIEs/S-NSSAI.cpp
View file @
2009b4c7
...
@@ -78,13 +78,12 @@ bool S_NSSAI::sDdecodefromOctetString(Ngap_SD_t* m_sd) {
...
@@ -78,13 +78,12 @@ bool S_NSSAI::sDdecodefromOctetString(Ngap_SD_t* m_sd) {
if
(
!
m_sd
->
buf
)
return
false
;
if
(
!
m_sd
->
buf
)
return
false
;
if
(
m_sd
->
size
==
3
)
{
if
(
m_sd
->
size
==
3
)
{
sd
=
((
m_sd
->
buf
[
0
]
<<
16
)
+
(
m_sd
->
buf
[
1
]
<<
8
)
+
m_sd
->
buf
[
2
]);
sd
=
((
m_sd
->
buf
[
0
]
<<
16
)
+
(
m_sd
->
buf
[
1
]
<<
8
)
+
m_sd
->
buf
[
2
]);
return
true
;
}
else
if
(
m_sd
->
size
==
4
)
{
}
else
if
(
m_sd
->
size
==
4
)
{
sd
=
((
m_sd
->
buf
[
1
]
<<
16
)
+
(
m_sd
->
buf
[
2
]
<<
8
)
+
m_sd
->
buf
[
3
]);
sd
=
((
m_sd
->
buf
[
1
]
<<
16
)
+
(
m_sd
->
buf
[
2
]
<<
8
)
+
m_sd
->
buf
[
3
]);
return
true
;
}
}
// sd = *(uint32_t*) m_sd->buf & 0x00ffffff;
return
false
;
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