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
319db397
Commit
319db397
authored
Aug 09, 2019
by
gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SGW-C send CSResp cause context not found, TS29.274V15.5.0 §5.5.2
parent
1526ce74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
src/sgwc/sgwc_app.cpp
src/sgwc/sgwc_app.cpp
+20
-1
src/sgwc/sgwc_app.hpp
src/sgwc/sgwc_app.hpp
+2
-0
No files found.
src/sgwc/sgwc_app.cpp
View file @
319db397
...
...
@@ -349,6 +349,8 @@ void sgwc_app::handle_itti_msg (itti_s11_create_session_request& csreq)
if
((
csreq
.
teid
)
&&
(
not
sgwc_app_inst
->
is_s11c_teid_exist
(
csreq
.
teid
)))
{
Logger
::
sgwc_app
().
warn
(
"Received S11 CSReq with dest teid "
TEID_FMT
" unknown, ignore CSreq"
,
csreq
.
teid
);
cause_t
cause
=
{.
cause_value
=
CONTEXT_NOT_FOUND
,
.
pce
=
0
,
.
bce
=
0
,
.
cs
=
0
};
send_create_session_response_cause
(
csreq
.
gtpc_tx_id
,
csreq
.
teid
,
csreq
.
r_endpoint
,
cause
);
return
;
}
...
...
@@ -397,7 +399,7 @@ void sgwc_app::handle_itti_msg (itti_s11_delete_session_request& m)
ebc
->
handle_itti_msg
(
m
);
Logger
::
sgwc_app
().
debug
(
"sgw_eps_bearer_context: %s!"
,
ebc
->
toString
().
c_str
());
}
else
{
Logger
::
sgwc_app
().
debug
(
"Discarding S11
CREA
TE_SESSION_REQUEST sender teid "
TEID_FMT
" gtpc_tx_id "
PROC_ID_FMT
", invalid teid"
,
m
.
teid
,
m
.
gtpc_tx_id
);
Logger
::
sgwc_app
().
debug
(
"Discarding S11
DELE
TE_SESSION_REQUEST sender teid "
TEID_FMT
" gtpc_tx_id "
PROC_ID_FMT
", invalid teid"
,
m
.
teid
,
m
.
gtpc_tx_id
);
return
;
}
}
else
{
...
...
@@ -557,4 +559,21 @@ void sgwc_app::handle_itti_msg (itti_s5s8_downlink_data_notification& m)
}
}
//------------------------------------------------------------------------------
void
sgwc_app
::
send_create_session_response_cause
(
const
uint64_t
gtpc_tx_id
,
const
teid_t
teid
,
const
endpoint
&
r_endpoint
,
const
cause_t
&
cause
)
const
{
itti_s11_create_session_response
*
s11
=
new
itti_s11_create_session_response
(
TASK_SGWC_APP
,
TASK_SGWC_S11
);
//------
// GTPV2C-Stack
//------
s11
->
gtpc_tx_id
=
gtpc_tx_id
;
s11
->
teid
=
teid
;
s11
->
r_endpoint
=
r_endpoint
;
s11
->
gtp_ies
.
set
(
cause
);
std
::
shared_ptr
<
itti_s11_create_session_response
>
msg
=
std
::
shared_ptr
<
itti_s11_create_session_response
>
(
s11
);
int
ret
=
itti_inst
->
send_msg
(
msg
);
if
(
RETURNok
!=
ret
)
{
Logger
::
sgwc_app
().
error
(
"Could not send ITTI message %s to task TASK_SGWC_S11"
,
s11
->
get_msg_name
());
}
}
src/sgwc/sgwc_app.hpp
View file @
319db397
...
...
@@ -101,6 +101,8 @@ public:
sgwc_app
(
sgwc_app
const
&
)
=
delete
;
void
operator
=
(
sgwc_app
const
&
)
=
delete
;
void
send_create_session_response_cause
(
const
uint64_t
gtpc_tx_id
,
const
teid_t
teid
,
const
endpoint
&
r_endpoint
,
const
cause_t
&
cause
)
const
;
fteid_t
generate_s5s8_cp_fteid
(
const
struct
in_addr
ipv4_address
);
fteid_t
generate_s11_cp_fteid
(
const
struct
in_addr
ipv4_address
);
std
::
pair
<
std
::
shared_ptr
<
sgw_eps_bearer_context
>
,
std
::
shared_ptr
<
sgw_pdn_connection
>>
s5s8sgw_teid_2_sgw_contexts
(
const
teid_t
&
sgw_teid
)
const
;
...
...
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