Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
lizhongxiao
OpenXG-RAN
Commits
62d33ce5
Commit
62d33ce5
authored
Jul 03, 2023
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function to remove all SDAP entities for a UE
parent
57a3f9fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
openair2/SDAP/nr_sdap/nr_sdap_entity.c
openair2/SDAP/nr_sdap/nr_sdap_entity.c
+20
-0
No files found.
openair2/SDAP/nr_sdap/nr_sdap_entity.c
View file @
62d33ce5
...
...
@@ -486,3 +486,23 @@ int nr_sdap_delete_entity(ue_id_t ue_id, int pdusession_id)
}
return
0
;
}
void
nr_sdap_delete_ue_entities
(
ue_id_t
ue_id
)
{
nr_sdap_entity_t
*
entityPtr
=
sdap_info
.
sdap_entity_llist
;
int
pos
=
0
;
while
(
entityPtr
!=
NULL
)
{
if
(
entityPtr
->
ue_id
==
ue_id
)
{
if
(
pos
==
0
)
{
sdap_info
.
sdap_entity_llist
=
sdap_info
.
sdap_entity_llist
->
next_entity
;
}
LOG_I
(
SDAP
,
"Deleting SDAP entity for UE %lx and PDU Session id %d
\n
"
,
ue_id
,
entityPtr
->
pdusession_id
);
nr_sdap_entity_t
*
entityPrev
=
entityPtr
;
free
(
entityPtr
);
entityPtr
=
entityPrev
->
next_entity
;
}
else
{
entityPtr
=
entityPtr
->
next_entity
;
}
pos
++
;
}
}
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