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
77a533d3
Commit
77a533d3
authored
Oct 25, 2022
by
Stefan Spettel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(smf): SUPI without trailing zero delimiter to PCF
Signed-off-by:
Stefan Spettel
<
stefan.spettel@eurecom.fr
>
parent
3ae9dafc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
src/common/smf.h
src/common/smf.h
+12
-0
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+3
-2
No files found.
src/common/smf.h
View file @
77a533d3
...
...
@@ -54,6 +54,18 @@ static std::string smf_supi_to_string(supi_t const supi) {
return
supi_str
;
}
// TODO should we just replace the other function? Because this null chars are
// annoying
static
std
::
string
smf_supi_to_string_without_nulls
(
supi_t
const
supi
)
{
std
::
string
supi_str
;
for
(
char
c
:
supi
.
data
)
{
if
(
c
!=
'\
u0000
'
)
{
supi_str
+=
c
;
}
}
return
supi_str
;
}
static
uint64_t
smf_supi_to_u64
(
supi_t
supi
)
{
uint64_t
uint_supi
;
sscanf
(
supi
.
data
,
"%"
SCNu64
,
&
uint_supi
);
...
...
src/smf_app/smf_context.cpp
View file @
77a533d3
...
...
@@ -1512,8 +1512,9 @@ void smf_context::handle_pdu_session_create_sm_context_request(
sp
.
get
()
->
policy_ptr
=
std
::
make_shared
<
n7
::
policy_association
>
();
bool
use_pcf_policy
=
false
;
sp
.
get
()
->
policy_ptr
->
set_context
(
smf_supi_to_string
(
smreq
->
req
.
get_supi
()),
smreq
->
req
.
get_dnn
(),
snssai
,
plmn
,
smreq
->
req
.
get_pdu_session_id
(),
smreq
->
req
.
get_pdu_session_type
());
smf_supi_to_string_without_nulls
(
smreq
->
req
.
get_supi
()),
smreq
->
req
.
get_dnn
(),
snssai
,
plmn
,
smreq
->
req
.
get_pdu_session_id
(),
smreq
->
req
.
get_pdu_session_type
());
// TODO what is the exact meaning of SCID? Is this unique per registration
// or unique per PDU session?
...
...
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