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
cca5bcd9
Commit
cca5bcd9
authored
Mar 02, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for UPF - FQDN
parent
94d5f4cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
48 deletions
+48
-48
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+48
-48
No files found.
src/smf_app/smf_pfcp_association.cpp
View file @
cca5bcd9
...
...
@@ -97,7 +97,6 @@ bool pfcp_associations::add_association(
// Resolve FQDN to get UPF IP address if necessary
if
(
node_id
.
node_id_type
==
pfcp
::
NODE_ID_TYPE_FQDN
)
{
Logger
::
smf_app
().
info
(
"Node ID Type FQDN: %s"
,
node_id
.
fqdn
.
c_str
());
}
struct
hostent
*
record
=
gethostbyname
(
node_id
.
fqdn
.
c_str
());
if
(
record
==
NULL
)
{
Logger
::
smf_app
().
info
(
...
...
@@ -116,13 +115,14 @@ bool pfcp_associations::add_association(
}
else
if
(
record
->
h_addrtype
==
AF_INET6
)
{
// TODO
Logger
::
smf_app
().
info
(
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been supported
"
"
yet!"
,
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been
"
"supported
yet!"
,
node_id
.
fqdn
.
c_str
());
return
false
;
}
else
{
return
false
;
}
}
restore_n4_sessions
=
false
;
pfcp_association
*
association
=
...
...
@@ -166,7 +166,6 @@ bool pfcp_associations::add_association(
}
else
{
if
(
node_id
.
node_id_type
==
pfcp
::
NODE_ID_TYPE_FQDN
)
{
Logger
::
smf_app
().
info
(
"Node ID Type FQDN: %s"
,
node_id
.
fqdn
.
c_str
());
}
struct
hostent
*
record
=
gethostbyname
(
node_id
.
fqdn
.
c_str
());
if
(
record
==
NULL
)
{
Logger
::
smf_app
().
info
(
...
...
@@ -184,13 +183,14 @@ bool pfcp_associations::add_association(
}
else
if
(
record
->
h_addrtype
==
AF_INET6
)
{
// TODO
Logger
::
smf_app
().
info
(
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been supported
"
"
yet!"
,
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been
"
"supported
yet!"
,
node_id
.
fqdn
.
c_str
());
return
false
;
}
else
{
return
false
;
}
}
restore_n4_sessions
=
false
;
pfcp_association
*
association
=
...
...
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