Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
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
Libraries
UERANSIM
Commits
bae4d5c5
Commit
bae4d5c5
authored
Mar 30, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDU session establishment abnormal case improvements
parent
3a393848
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
+20
-6
src/ue/sm/establishment.cpp
src/ue/sm/establishment.cpp
+15
-5
src/ue/sm/sm.hpp
src/ue/sm/sm.hpp
+2
-1
src/ue/sm/transport.cpp
src/ue/sm/transport.cpp
+3
-0
No files found.
src/ue/sm/establishment.cpp
View file @
bae4d5c5
...
...
@@ -170,14 +170,14 @@ void NasSm::receiveEstablishmentAccept(const nas::PduSessionEstablishmentAccept
m_logger
->
info
(
"PDU Session establishment is successful PSI[%d]"
,
pduSession
->
psi
);
}
void
NasSm
::
abortEstablishmentRequest
(
int
pti
)
void
NasSm
::
receiveEstablishmentRoutingFailure
(
const
nas
::
PduSessionEstablishmentRequest
&
msg
)
{
int
psi
=
m_procedureTransactions
[
pti
].
psi
;
m_logger
->
err
(
"PDU Session Establishment Request received due to a routing failure"
)
;
m_logger
->
debug
(
"PDU Session Establishment Procedure aborted for PTI[%d], PSI[%d]"
,
pti
,
psi
);
if
(
!
checkPtiAndPsi
(
msg
))
return
;
freeProcedureTransactionId
(
pti
);
freePduSessionId
(
psi
);
abortEstablishmentRequest
(
msg
.
pti
);
}
void
NasSm
::
receiveEstablishmentReject
(
const
nas
::
PduSessionEstablishmentReject
&
msg
)
...
...
@@ -205,4 +205,14 @@ void NasSm::receiveEstablishmentReject(const nas::PduSessionEstablishmentReject
}
}
void
NasSm
::
abortEstablishmentRequest
(
int
pti
)
{
int
psi
=
m_procedureTransactions
[
pti
].
psi
;
m_logger
->
debug
(
"PDU Session Establishment Procedure aborted for PTI[%d], PSI[%d]"
,
pti
,
psi
);
freeProcedureTransactionId
(
pti
);
freePduSessionId
(
psi
);
}
}
// namespace nr::ue
\ No newline at end of file
src/ue/sm/sm.hpp
View file @
bae4d5c5
...
...
@@ -67,6 +67,7 @@ class NasSm
void
sendEstablishmentRequest
(
const
SessionConfig
&
config
);
void
receiveEstablishmentAccept
(
const
nas
::
PduSessionEstablishmentAccept
&
msg
);
void
receiveEstablishmentReject
(
const
nas
::
PduSessionEstablishmentReject
&
msg
);
void
receiveEstablishmentRoutingFailure
(
const
nas
::
PduSessionEstablishmentRequest
&
msg
);
void
abortEstablishmentRequest
(
int
pti
);
/* Timer */
...
...
@@ -75,7 +76,7 @@ class NasSm
void
onTransactionTimerExpire
(
int
pti
);
/* Utils */
bool
checkPtiAndPsi
(
const
nas
::
SmMessage
&
msg
);
bool
checkPtiAndPsi
(
const
nas
::
SmMessage
&
msg
);
public:
/* Interface */
...
...
src/ue/sm/transport.cpp
View file @
bae4d5c5
...
...
@@ -50,6 +50,9 @@ void NasSm::receiveSmMessage(const nas::SmMessage &msg)
case
nas
:
:
EMessageType
::
PDU_SESSION_ESTABLISHMENT_REJECT
:
receiveEstablishmentReject
((
const
nas
::
PduSessionEstablishmentReject
&
)
msg
);
break
;
case
nas
:
:
EMessageType
::
PDU_SESSION_ESTABLISHMENT_REQUEST
:
receiveEstablishmentRoutingFailure
((
const
nas
::
PduSessionEstablishmentRequest
&
)
msg
);
break
;
case
nas
:
:
EMessageType
::
FIVEG_SM_STATUS
:
receiveSmStatus
((
const
nas
::
FiveGSmStatus
&
)
msg
);
break
;
...
...
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