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
8ac363ee
Unverified
Commit
8ac363ee
authored
Jan 16, 2022
by
kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get amf addr fix
parent
4f6ea488
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+3
-0
No files found.
src/smf_app/smf_context.cpp
View file @
8ac363ee
...
...
@@ -1597,6 +1597,9 @@ void smf_context::handle_pdu_session_create_sm_context_request(
boost
::
split
(
split_result
,
amf_status_uri
,
boost
::
is_any_of
(
"/"
));
if
(
split_result
.
size
()
>=
3
)
{
std
::
string
addr
=
split_result
[
2
];
// remove http port from the URI if existed
std
::
size_t
found_port
=
addr
.
find
(
":"
);
if
(
found_port
!=
std
::
string
::
npos
)
addr
=
addr
.
substr
(
0
,
found_port
);
struct
in_addr
amf_ipv4_addr
;
if
(
inet_aton
(
util
::
trim
(
addr
).
c_str
(),
&
amf_ipv4_addr
)
==
0
)
{
Logger
::
smf_api_server
().
warn
(
"Bad IPv4 for AMF"
);
...
...
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