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
74e79f24
Commit
74e79f24
authored
Nov 15, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for UPF selection
parent
b6c139af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+5
-5
No files found.
src/smf_app/smf_pfcp_association.cpp
View file @
74e79f24
...
@@ -108,7 +108,7 @@ bool pfcp_associations::add_association(
...
@@ -108,7 +108,7 @@ bool pfcp_associations::add_association(
if
(
record
->
h_addrtype
==
AF_INET
)
{
if
(
record
->
h_addrtype
==
AF_INET
)
{
in_addr
*
address
=
(
struct
in_addr
*
)
record
->
h_addr
;
in_addr
*
address
=
(
struct
in_addr
*
)
record
->
h_addr
;
node_id
.
node_id_type
=
pfcp
::
NODE_ID_TYPE_IPV4_ADDRESS
;
//
node_id.node_id_type = pfcp::NODE_ID_TYPE_IPV4_ADDRESS;
node_id
.
u1
.
ipv4_address
=
*
address
;
node_id
.
u1
.
ipv4_address
=
*
address
;
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Node ID Type FQDN: %s, IPv4 Addr: %s"
,
node_id
.
fqdn
.
c_str
(),
"Node ID Type FQDN: %s, IPv4 Addr: %s"
,
node_id
.
fqdn
.
c_str
(),
...
@@ -174,7 +174,7 @@ bool pfcp_associations::add_association(
...
@@ -174,7 +174,7 @@ bool pfcp_associations::add_association(
}
}
if
(
record
->
h_addrtype
==
AF_INET
)
{
if
(
record
->
h_addrtype
==
AF_INET
)
{
in_addr
*
address
=
(
struct
in_addr
*
)
record
->
h_addr
;
in_addr
*
address
=
(
struct
in_addr
*
)
record
->
h_addr
;
node_id
.
node_id_type
=
pfcp
::
NODE_ID_TYPE_IPV4_ADDRESS
;
//
node_id.node_id_type = pfcp::NODE_ID_TYPE_IPV4_ADDRESS;
node_id
.
u1
.
ipv4_address
=
*
address
;
node_id
.
u1
.
ipv4_address
=
*
address
;
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Node ID Type FQDN: %s, IPv4 Addr: %s"
,
node_id
.
fqdn
.
c_str
(),
"Node ID Type FQDN: %s, IPv4 Addr: %s"
,
node_id
.
fqdn
.
c_str
(),
...
@@ -451,7 +451,7 @@ bool pfcp_associations::select_up_node(
...
@@ -451,7 +451,7 @@ bool pfcp_associations::select_up_node(
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Select the UPF for the corresponding DNN %s, NSSSAI (SD: %s, "
"Select the UPF for the corresponding DNN %s, NSSSAI (SD: %s, "
"SST: %d) "
,
"SST: %d) "
,
d
.
dnn
.
c_str
(),
snssai
.
sD
,
snssai
.
sST
);
d
.
dnn
.
c_str
(),
snssai
.
sD
.
c_str
()
,
snssai
.
sST
);
return
true
;
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