Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
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-SMF
Commits
a0655af0
Commit
a0655af0
authored
Oct 26, 2022
by
Stefan Spettel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(smf): UPF selection for non PCC rules
Signed-off-by:
Stefan Spettel
<
stefan.spettel@eurecom.fr
>
parent
a2a8402b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+11
-7
No files found.
src/smf_app/smf_pfcp_association.cpp
View file @
a0655af0
...
...
@@ -108,14 +108,18 @@ bool edge::serves_network(
dnn_item
.
dnn
=
dnn
;
auto
dnn_it
=
snssai_it
->
dnn_upf_info_list
.
find
(
dnn_item
);
if
(
dnn_it
!=
snssai_it
->
dnn_upf_info_list
.
end
())
{
// should be only 1 DNAI
for
(
const
auto
&
dnai
:
dnn_it
->
dnai_list
)
{
// O(1)
auto
found_dnai
=
dnais
.
find
(
dnai
);
if
(
found_dnai
!=
dnais
.
end
())
{
matched_dnai
=
dnai
;
return
true
;
if
(
!
dnais
.
empty
())
{
// should be only 1 DNAI
for
(
const
auto
&
dnai
:
dnn_it
->
dnai_list
)
{
// O(1)
auto
found_dnai
=
dnais
.
find
(
dnai
);
if
(
found_dnai
!=
dnais
.
end
())
{
matched_dnai
=
dnai
;
return
true
;
}
}
}
else
{
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