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
4fe5f473
Commit
4fe5f473
authored
May 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
bed3766b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
8 deletions
+14
-8
src/ue/nas/mm/base.cpp
src/ue/nas/mm/base.cpp
+2
-0
src/ue/nas/mm/dereg.cpp
src/ue/nas/mm/dereg.cpp
+1
-1
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+1
-1
src/ue/nas/mm/register.cpp
src/ue/nas/mm/register.cpp
+2
-2
src/ue/nas/mm/service.cpp
src/ue/nas/mm/service.cpp
+2
-2
src/ue/nas/storage.cpp
src/ue/nas/storage.cpp
+1
-1
src/ue/nas/storage.hpp
src/ue/nas/storage.hpp
+5
-1
No files found.
src/ue/nas/mm/base.cpp
View file @
4fe5f473
...
...
@@ -26,6 +26,8 @@ NasMm::NasMm(TaskBase *base, UeTimers *timers) : m_base{base}, m_timers{timers},
m_cmState
=
ECmState
::
CM_IDLE
;
m_mmState
=
EMmState
::
MM_DEREGISTERED
;
m_mmSubState
=
EMmSubState
::
MM_DEREGISTERED_NA
;
m_storage
=
new
MmStorage
(
m_base
);
}
void
NasMm
::
onStart
(
NasSm
*
sm
,
Usim
*
usim
)
...
...
src/ue/nas/mm/dereg.cpp
View file @
4fe5f473
...
...
@@ -253,7 +253,7 @@ void NasMm::receiveDeregistrationRequest(const nas::DeRegistrationRequestUeTermi
tai
.
plmn
.
isLongMnc
=
m_usim
->
m_currentTai
->
plmn
.
isLongMnc
;
tai
.
tac
=
(
int
)
m_usim
->
m_currentTai
->
tac
;
m_storage
.
m_forbiddenTaiListRoaming
->
add
(
tai
);
m_storage
->
m_forbiddenTaiListRoaming
->
add
(
tai
);
}
if
(
cause
==
nas
::
EMmCause
::
ILLEGAL_UE
||
cause
==
nas
::
EMmCause
::
FIVEG_SERVICES_NOT_ALLOWED
)
...
...
src/ue/nas/mm/mm.hpp
View file @
4fe5f473
...
...
@@ -31,7 +31,7 @@ class NasMm
std
::
unique_ptr
<
Logger
>
m_logger
;
NasSm
*
m_sm
;
Usim
*
m_usim
;
MmStorage
m_storage
;
MmStorage
*
m_storage
;
ERmState
m_rmState
;
ECmState
m_cmState
;
...
...
src/ue/nas/mm/register.cpp
View file @
4fe5f473
...
...
@@ -569,7 +569,7 @@ void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg)
tai
.
plmn
.
isLongMnc
=
m_usim
->
m_currentTai
->
plmn
.
isLongMnc
;
tai
.
tac
=
(
int
)
m_usim
->
m_currentTai
->
tac
;
m_storage
.
m_forbiddenTaiListRoaming
->
add
(
tai
);
m_storage
->
m_forbiddenTaiListRoaming
->
add
(
tai
);
}
if
(
cause
==
nas
::
EMmCause
::
PLMN_NOT_ALLOWED
||
cause
==
nas
::
EMmCause
::
SERVING_NETWORK_NOT_AUTHORIZED
)
...
...
@@ -733,7 +733,7 @@ void NasMm::receiveMobilityRegistrationReject(const nas::RegistrationReject &msg
tai
.
plmn
.
isLongMnc
=
m_usim
->
m_currentTai
->
plmn
.
isLongMnc
;
tai
.
tac
=
(
int
)
m_usim
->
m_currentTai
->
tac
;
m_storage
.
m_forbiddenTaiListRoaming
->
add
(
tai
);
m_storage
->
m_forbiddenTaiListRoaming
->
add
(
tai
);
}
if
(
cause
==
nas
::
EMmCause
::
PLMN_NOT_ALLOWED
||
cause
==
nas
::
EMmCause
::
SERVING_NETWORK_NOT_AUTHORIZED
)
...
...
src/ue/nas/mm/service.cpp
View file @
4fe5f473
...
...
@@ -316,7 +316,7 @@ void NasMm::receiveServiceReject(const nas::ServiceReject &msg)
tai
.
plmn
.
isLongMnc
=
m_usim
->
m_currentTai
->
plmn
.
isLongMnc
;
tai
.
tac
=
(
int
)
m_usim
->
m_currentTai
->
tac
;
m_storage
.
m_forbiddenTaiListRps
->
add
(
tai
);
m_storage
->
m_forbiddenTaiListRps
->
add
(
tai
);
}
if
(
cause
==
nas
::
EMmCause
::
ROAMING_NOT_ALLOWED_IN_TA
||
cause
==
nas
::
EMmCause
::
NO_SUITIBLE_CELLS_IN_TA
)
...
...
@@ -327,7 +327,7 @@ void NasMm::receiveServiceReject(const nas::ServiceReject &msg)
tai
.
plmn
.
isLongMnc
=
m_usim
->
m_currentTai
->
plmn
.
isLongMnc
;
tai
.
tac
=
(
int
)
m_usim
->
m_currentTai
->
tac
;
m_storage
.
m_forbiddenTaiListRoaming
->
add
(
tai
);
m_storage
->
m_forbiddenTaiListRoaming
->
add
(
tai
);
nas
::
utils
::
RemoveFromTaiList
(
m_usim
->
m_taiList
,
*
m_usim
->
m_currentTai
);
}
...
...
src/ue/nas/storage.cpp
View file @
4fe5f473
...
...
@@ -14,7 +14,7 @@ static constexpr const int64_t FORBIDDEN_TAI_CLEAR_PERIOD = 1000ll * 60ll * 60ll
namespace
nr
::
ue
{
MmStorage
::
MmStorage
(
)
MmStorage
::
MmStorage
(
TaskBase
*
base
)
:
m_base
{
base
}
{
m_forbiddenTaiListRoaming
=
std
::
make_unique
<
nas
::
NasListT1
<
Tai
>>
(
FORBIDDEN_TAI_LIST_SIZE
,
FORBIDDEN_TAI_CLEAR_PERIOD
,
std
::
nullopt
);
...
...
src/ue/nas/storage.hpp
View file @
4fe5f473
...
...
@@ -8,18 +8,22 @@
#include <lib/nas/msg.hpp>
#include <lib/nas/storage.hpp>
#include <ue/types.hpp>
namespace
nr
::
ue
{
class
MmStorage
{
private:
TaskBase
*
m_base
;
public:
std
::
unique_ptr
<
nas
::
NasListT1
<
Tai
>>
m_forbiddenTaiListRoaming
;
std
::
unique_ptr
<
nas
::
NasListT1
<
Tai
>>
m_forbiddenTaiListRps
;
public:
MmStorage
(
);
explicit
MmStorage
(
TaskBase
*
base
);
};
}
// namespace nr::ue
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