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
f1b16745
Commit
f1b16745
authored
Jul 05, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display in int and hex for SD
parent
36e0bec2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
28 deletions
+26
-28
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+2
-2
src/smf_app/smf_config.cpp
src/smf_app/smf_config.cpp
+6
-12
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+9
-8
src/smf_app/smf_n1.cpp
src/smf_app/smf_n1.cpp
+2
-1
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+2
-2
src/smf_app/smf_profile.cpp
src/smf_app/smf_profile.cpp
+5
-3
No files found.
src/smf_app/smf_app.cpp
View file @
f1b16745
...
@@ -853,8 +853,8 @@ void smf_app::handle_pdu_session_create_sm_context_request(
...
@@ -853,8 +853,8 @@ void smf_app::handle_pdu_session_create_sm_context_request(
snssai_t
snssai
=
smreq
->
req
.
get_snssai
();
snssai_t
snssai
=
smreq
->
req
.
get_snssai
();
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Handle a PDU Session Create SM Context Request message from AMF, "
"Handle a PDU Session Create SM Context Request message from AMF, "
"SUPI "
SUPI_64_FMT
", SNSSAI SST %d, SD %
#0x
"
,
"SUPI "
SUPI_64_FMT
", SNSSAI SST %d, SD %
ld (0x%x)
"
,
supi64
,
snssai
.
sst
,
snssai
.
sd
);
supi64
,
snssai
.
sst
,
snssai
.
sd
,
snssai
.
sd
);
// Step 2. Verify Procedure transaction id, pdu session id, message type,
// Step 2. Verify Procedure transaction id, pdu session id, message type,
// request type, etc.
// request type, etc.
...
...
src/smf_app/smf_config.cpp
View file @
f1b16745
...
@@ -1059,20 +1059,14 @@ void smf_config::display() {
...
@@ -1059,20 +1059,14 @@ void smf_config::display() {
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
" Session Management Subscription Data %d:"
,
index
);
" Session Management Subscription Data %d:"
,
index
);
std
::
string
nssai_str
=
{};
if
(
sub
.
single_nssai
.
sd
!=
SD_NO_VALUE
)
{
nssai_str
=
nssai_str
.
append
(
" "
)
Logger
::
smf_app
().
info
(
.
append
(
SMF_CONFIG_STRING_NSSAI_SST
)
" SST, SD: %d, %ld (0x%x)"
,
sub
.
single_nssai
.
sst
,
.
append
(
": "
)
sub
.
single_nssai
.
sd
,
sub
.
single_nssai
.
sd
);
.
append
(
std
::
to_string
(
sub
.
single_nssai
.
sst
));
}
else
{
Logger
::
smf_app
().
info
(
" SST: %d"
,
sub
.
single_nssai
.
sst
);
if
(
sub
.
single_nssai
.
sd
!=
0xffffff
)
{
nssai_str
=
nssai_str
.
append
(
", "
)
.
append
(
SMF_CONFIG_STRING_NSSAI_SD
)
.
append
(
": "
)
.
append
(
std
::
to_string
(
sub
.
single_nssai
.
sd
));
}
}
Logger
::
smf_app
().
info
(
"%s"
,
nssai_str
.
c_str
());
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
" "
SMF_CONFIG_STRING_DNN
": %s"
,
sub
.
dnn
.
c_str
());
" "
SMF_CONFIG_STRING_DNN
": %s"
,
sub
.
dnn
.
c_str
());
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
...
...
src/smf_app/smf_context.cpp
View file @
f1b16745
...
@@ -3575,8 +3575,8 @@ void smf_context::insert_dnn_subscription(
...
@@ -3575,8 +3575,8 @@ void smf_context::insert_dnn_subscription(
std
::
unique_lock
<
std
::
recursive_mutex
>
lock
(
m_context
);
std
::
unique_lock
<
std
::
recursive_mutex
>
lock
(
m_context
);
dnn_subscriptions
[
key
]
=
ss
;
dnn_subscriptions
[
key
]
=
ss
;
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Inserted DNN Subscription, key: %ld (SST %d, SD %
#0x)"
,
key
,
snssai
.
sst
,
"Inserted DNN Subscription, key: %ld (SST %d, SD %
ld (0x%x))"
,
key
,
snssai
.
sd
);
snssai
.
s
st
,
snssai
.
sd
,
snssai
.
s
d
);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
@@ -3601,8 +3601,8 @@ void smf_context::insert_dnn_subscription(
...
@@ -3601,8 +3601,8 @@ void smf_context::insert_dnn_subscription(
dnn_subscriptions
[
key
]
=
ss
;
dnn_subscriptions
[
key
]
=
ss
;
}
}
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Inserted DNN Subscription, key: %ld (SST %d, SD %
#0x), dnn %s"
,
key
,
"Inserted DNN Subscription, key: %ld (SST %d, SD %
ld (0x%x)), dnn %s"
,
snssai
.
sst
,
snssai
.
sd
,
dnn
.
c_str
());
key
,
snssai
.
sst
,
snssai
.
sd
,
snssai
.
sd
,
dnn
.
c_str
());
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
@@ -3633,8 +3633,9 @@ bool smf_context::find_dnn_subscription(
...
@@ -3633,8 +3633,9 @@ bool smf_context::find_dnn_subscription(
get_snssai_key
(
snssai
,
key
);
get_snssai_key
(
snssai
,
key
);
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Find a DNN Subscription with key: %ld (SST %d, SD %#0x), map size %d"
,
"Find a DNN Subscription with key: %ld (SST %d, SD %ld (0x%x)), map size "
(
uint8_t
)
snssai
.
sst
,
snssai
.
sd
,
dnn_subscriptions
.
size
());
"%d"
,
(
uint8_t
)
snssai
.
sst
,
snssai
.
sd
,
snssai
.
sd
,
dnn_subscriptions
.
size
());
std
::
unique_lock
<
std
::
recursive_mutex
>
lock
(
m_context
);
std
::
unique_lock
<
std
::
recursive_mutex
>
lock
(
m_context
);
if
(
dnn_subscriptions
.
count
(
key
)
>
0
)
{
if
(
dnn_subscriptions
.
count
(
key
)
>
0
)
{
...
@@ -3643,8 +3644,8 @@ bool smf_context::find_dnn_subscription(
...
@@ -3643,8 +3644,8 @@ bool smf_context::find_dnn_subscription(
}
}
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"DNN subscription (SST %d, SD %
#0x) not found"
,
(
uint8_t
)
snssai
.
sst
,
"DNN subscription (SST %d, SD %
ld (0x%x)) not found"
,
snssai
.
sd
);
(
uint8_t
)
snssai
.
sst
,
snssai
.
sd
,
snssai
.
sd
);
return
false
;
return
false
;
}
}
...
...
src/smf_app/smf_n1.cpp
View file @
f1b16745
...
@@ -212,8 +212,9 @@ bool smf_n1::create_n1_pdu_session_establishment_accept(
...
@@ -212,8 +212,9 @@ bool smf_n1::create_n1_pdu_session_establishment_accept(
sm_context_res
.
get_snssai
().
sd
;
sm_context_res
.
get_snssai
().
sd
;
Logger
::
smf_n1
().
debug
(
Logger
::
smf_n1
().
debug
(
"SNSSAI SST %d, SD %
#0x
"
,
"SNSSAI SST %d, SD %
ld (0x%x)
"
,
sm_msg
->
pdu_session_establishment_accept
.
snssai
.
sst
,
sm_msg
->
pdu_session_establishment_accept
.
snssai
.
sst
,
sm_msg
->
pdu_session_establishment_accept
.
snssai
.
sd
,
sm_msg
->
pdu_session_establishment_accept
.
snssai
.
sd
);
sm_msg
->
pdu_session_establishment_accept
.
snssai
.
sd
);
// TODO: AlwaysonPDUSessionIndication
// TODO: AlwaysonPDUSessionIndication
...
...
src/smf_app/smf_pfcp_association.cpp
View file @
f1b16745
...
@@ -476,8 +476,8 @@ bool pfcp_associations::select_up_node(
...
@@ -476,8 +476,8 @@ bool pfcp_associations::select_up_node(
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Select the UPF for the corresponding DNN %s, NSSSAI (SST: "
"Select the UPF for the corresponding DNN %s, NSSSAI (SST: "
"%d, "
"%d, "
"SD: %
d
) "
,
"SD: %
ld (0x%x)
) "
,
d
.
dnn
.
c_str
(),
snssai
.
sst
,
snssai
.
sd
);
d
.
dnn
.
c_str
(),
snssai
.
sst
,
snssai
.
sd
,
snssai
.
sd
);
return
true
;
return
true
;
}
}
}
}
...
...
src/smf_app/smf_profile.cpp
View file @
f1b16745
...
@@ -203,7 +203,7 @@ void nf_profile::display() const {
...
@@ -203,7 +203,7 @@ void nf_profile::display() const {
Logger
::
smf_app
().
debug
(
"
\t
SNSSAI:"
);
Logger
::
smf_app
().
debug
(
"
\t
SNSSAI:"
);
}
}
for
(
auto
s
:
snssais
)
{
for
(
auto
s
:
snssais
)
{
Logger
::
smf_app
().
debug
(
"
\t\t
SST %d, SD %
#0x"
,
s
.
sst
,
s
.
sd
);
Logger
::
smf_app
().
debug
(
"
\t\t
SST %d, SD %
ld (0x%x)"
,
s
.
sst
,
s
.
sd
,
s
.
sd
);
}
}
if
(
!
fqdn
.
empty
())
{
if
(
!
fqdn
.
empty
())
{
Logger
::
smf_app
().
debug
(
"
\t
FQDN: %s"
,
fqdn
.
c_str
());
Logger
::
smf_app
().
debug
(
"
\t
FQDN: %s"
,
fqdn
.
c_str
());
...
@@ -393,7 +393,8 @@ void smf_profile::display() const {
...
@@ -393,7 +393,8 @@ void smf_profile::display() const {
for
(
auto
s
:
smf_info
.
snssai_smf_info_list
)
{
for
(
auto
s
:
smf_info
.
snssai_smf_info_list
)
{
Logger
::
smf_app
().
debug
(
"
\t\t
Parameters supported by the SMF:"
);
Logger
::
smf_app
().
debug
(
"
\t\t
Parameters supported by the SMF:"
);
Logger
::
smf_app
().
debug
(
Logger
::
smf_app
().
debug
(
"
\t\t\t
SNSSAI (SST %d, SD %#0x)"
,
s
.
snssai
.
sst
,
s
.
snssai
.
sd
);
"
\t\t\t
SNSSAI (SST %d, SD %ld (0x%x))"
,
s
.
snssai
.
sst
,
s
.
snssai
.
sd
,
s
.
snssai
.
sd
);
for
(
auto
d
:
s
.
dnn_smf_info_list
)
{
for
(
auto
d
:
s
.
dnn_smf_info_list
)
{
Logger
::
smf_app
().
debug
(
"
\t\t\t
DNN %s"
,
d
.
dnn
.
c_str
());
Logger
::
smf_app
().
debug
(
"
\t\t\t
DNN %s"
,
d
.
dnn
.
c_str
());
}
}
...
@@ -533,7 +534,8 @@ void upf_profile::display() const {
...
@@ -533,7 +534,8 @@ void upf_profile::display() const {
for
(
auto
s
:
upf_info
.
snssai_upf_info_list
)
{
for
(
auto
s
:
upf_info
.
snssai_upf_info_list
)
{
Logger
::
smf_app
().
debug
(
"
\t\t
Parameters supported by the UPF:"
);
Logger
::
smf_app
().
debug
(
"
\t\t
Parameters supported by the UPF:"
);
Logger
::
smf_app
().
debug
(
Logger
::
smf_app
().
debug
(
"
\t\t\t
SNSSAI (SST %d, SD %#0x)"
,
s
.
snssai
.
sst
,
s
.
snssai
.
sd
);
"
\t\t\t
SNSSAI (SST %d, SD %ld (0x%x))"
,
s
.
snssai
.
sst
,
s
.
snssai
.
sd
,
s
.
snssai
.
sd
);
for
(
auto
d
:
s
.
dnn_upf_info_list
)
{
for
(
auto
d
:
s
.
dnn_upf_info_list
)
{
Logger
::
smf_app
().
debug
(
"
\t\t\t
DNN %s"
,
d
.
dnn
.
c_str
());
Logger
::
smf_app
().
debug
(
"
\t\t\t
DNN %s"
,
d
.
dnn
.
c_str
());
}
}
...
...
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