Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-Spgwu-Tiny-Simple
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
CommunityXG
OpenXG-Spgwu-Tiny-Simple
Commits
3ddb01c7
Commit
3ddb01c7
authored
Jan 17, 2021
by
Tien Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for handling PFCP Associtation Setup Request
parent
621bbffa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/spgwu/spgwu_sx.cpp
src/spgwu/spgwu_sx.cpp
+6
-6
src/spgwu/spgwu_sx.hpp
src/spgwu/spgwu_sx.hpp
+1
-1
No files found.
src/spgwu/spgwu_sx.cpp
View file @
3ddb01c7
...
...
@@ -339,6 +339,7 @@ void spgwu_sx::handle_receive_association_setup_response(
void
spgwu_sx
::
handle_receive_association_setup_request
(
pfcp
::
pfcp_msg
&
msg
,
const
endpoint
&
remote_endpoint
)
{
Logger
::
spgwu_sx
().
info
(
"Handle SX ASSOCIATION SETUP REQUEST"
);
bool
error
=
true
;
uint64_t
trxn_id
=
0
;
pfcp_association_setup_request
msg_ies_container
=
{};
...
...
@@ -388,7 +389,7 @@ void spgwu_sx::handle_receive_association_setup_request(
a
.
pfcp_ies
.
set
(
up_function_features
);
if
(
node_id
.
node_id_type
==
pfcp
::
NODE_ID_TYPE_IPV4_ADDRESS
)
{
a
.
r_endpoint
=
remote_endpoint
;
send_sx_msg
(
a
);
send_sx_msg
(
a
);
}
else
{
Logger
::
spgwu_sx
().
warn
(
"Received SX ASSOCIATION SETUP REQUEST node_id IPV6, FQDN!, "
...
...
@@ -401,11 +402,6 @@ void spgwu_sx::handle_receive_association_setup_request(
"ignore message"
);
return
;
}
// if (restore_n4_sessions) {
// pfcp_associations::get_instance().restore_n4_sessions(
// msg_ies_container.node_id.second);
// }
}
}
//------------------------------------------------------------------------------
...
...
@@ -605,6 +601,10 @@ void spgwu_sx::send_sx_msg(itti_sxab_association_setup_request& i) {
send_request
(
i
.
r_endpoint
,
i
.
pfcp_ies
,
TASK_SPGWU_SX
,
i
.
trxn_id
);
}
//------------------------------------------------------------------------------
void
spgwu_sx
::
send_sx_msg
(
itti_sxab_association_setup_response
&
i
)
{
send_response
(
i
.
r_endpoint
,
i
.
pfcp_ies
,
i
.
trxn_id
);
}
//------------------------------------------------------------------------------
void
spgwu_sx
::
send_sx_msg
(
itti_sxab_session_establishment_response
&
i
)
{
send_response
(
i
.
r_endpoint
,
i
.
seid
,
i
.
pfcp_ies
,
i
.
trxn_id
);
}
...
...
src/spgwu/spgwu_sx.hpp
View file @
3ddb01c7
...
...
@@ -76,7 +76,7 @@ class spgwu_sx : public pfcp::pfcp_l4_stack {
void
send_sx_msg
(
itti_sxab_heartbeat_request
&
s
){};
void
send_sx_msg
(
itti_sxab_heartbeat_response
&
s
){};
void
send_sx_msg
(
itti_sxab_association_setup_request
&
s
);
void
send_sx_msg
(
itti_sxab_association_setup_response
&
s
)
{}
;
void
send_sx_msg
(
itti_sxab_association_setup_response
&
s
);
void
send_sx_msg
(
itti_sxab_association_update_request
&
s
){};
void
send_sx_msg
(
itti_sxab_association_update_response
&
s
){};
void
send_sx_msg
(
itti_sxab_association_release_request
&
s
){};
...
...
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