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
a3ab8d23
Commit
a3ab8d23
authored
Mar 10, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for list of activated PDU Sessions
parent
6b654827
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+8
-15
No files found.
src/amf-app/amf_n1.cpp
View file @
a3ab8d23
...
...
@@ -89,8 +89,6 @@ random_state_t random_state;
static
uint8_t
no_random_delta
=
0
;
void
amf_n1_task
(
void
*
);
typedef
std
::
bitset
<
sizeof
(
uint16_t
)
>
pdu_session_status_bits
;
//------------------------------------------------------------------------------
void
amf_n1_task
(
void
*
)
{
const
task_id_t
task_id
=
TASK_AMF_N1
;
...
...
@@ -579,22 +577,17 @@ void amf_n1::service_request_handle(
Logger
::
amf_n1
().
debug
(
"amf_ue_ngap_id %d, ran_ue_ngap_id %d"
,
amf_ue_ngap_id
,
ran_ue_ngap_id
);
Logger
::
amf_n1
().
debug
(
"Key for pdu session context: SUPI %s"
,
supi
.
c_str
());
// std::shared_ptr<pdu_session_context> psc;
// get PDU session status
std
::
vector
<
uint8_t
>
pdu_session_to_be_activated
=
{};
uint16_t
pdu_session_status
=
(
uint16_t
)
serReq
->
getPduSessionStatus
();
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
if
(
pdu_session_status_bits
((
uint16_t
)
serReq
->
getPduSessionStatus
())
.
test
(
i
))
{
pdu_session_to_be_activated
.
push_back
(
i
+
8
);
}
}
for
(
int
i
=
9
;
i
<
16
;
i
++
)
{
if
(
pdu_session_status_bits
((
uint16_t
)
serReq
->
getPduSessionStatus
())
.
test
(
i
))
{
pdu_session_to_be_activated
.
push_back
(
i
-
8
);
std
::
bitset
<
16
>
pdu_session_status_bits
((
uint16_t
)
0x0200
);
for
(
int
i
=
0
;
i
<
15
;
i
++
)
{
if
(
pdu_session_status_bits
.
test
(
i
))
{
if
(
i
<=
7
)
pdu_session_to_be_activated
.
push_back
(
8
+
i
);
else
if
(
i
>
8
)
pdu_session_to_be_activated
.
push_back
(
i
-
8
);
}
}
...
...
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