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
dc8bebb8
Commit
dc8bebb8
authored
May 22, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
95e2f034
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
14 deletions
+12
-14
src/ue/nas/mm/dereg.cpp
src/ue/nas/mm/dereg.cpp
+1
-2
src/ue/nas/mm/radio.cpp
src/ue/nas/mm/radio.cpp
+1
-1
src/ue/nas/mm/register.cpp
src/ue/nas/mm/register.cpp
+6
-7
src/ue/nas/mm/service.cpp
src/ue/nas/mm/service.cpp
+1
-1
src/ue/nas/storage.cpp
src/ue/nas/storage.cpp
+2
-0
src/ue/nas/storage.hpp
src/ue/nas/storage.hpp
+1
-0
src/ue/nas/usim/usim.hpp
src/ue/nas/usim/usim.hpp
+0
-3
No files found.
src/ue/nas/mm/dereg.cpp
View file @
dc8bebb8
...
...
@@ -241,8 +241,7 @@ void NasMm::receiveDeregistrationRequest(const nas::DeRegistrationRequestUeTermi
if
(
cause
==
nas
::
EMmCause
::
PLMN_NOT_ALLOWED
)
{
nas
::
utils
::
AddToPlmnList
(
m_usim
->
m_forbiddenPlmnList
,
nas
::
utils
::
PlmnFrom
(
m_base
->
shCtx
.
getCurrentPlmn
()));
m_storage
->
forbiddenPlmnList
->
add
(
m_base
->
shCtx
.
getCurrentPlmn
());
}
if
(
cause
==
nas
::
EMmCause
::
TA_NOT_ALLOWED
)
...
...
src/ue/nas/mm/radio.cpp
View file @
dc8bebb8
...
...
@@ -85,7 +85,7 @@ void NasMm::performPlmnSelection()
{
if
(
plmn
==
m_base
->
config
->
hplmn
)
continue
;
// If it's the HPLMN, it's already added above
if
(
nas
::
utils
::
PlmnListContains
(
m_usim
->
m_forbiddenPlmnList
,
plmn
))
if
(
m_storage
->
forbiddenPlmnList
->
contains
(
plmn
))
continue
;
if
(
nas
::
utils
::
ServiceAreaListForbidsPlmn
(
m_storage
->
serviceAreaList
->
get
(),
nas
::
utils
::
PlmnFrom
(
plmn
)))
continue
;
...
...
src/ue/nas/mm/register.cpp
View file @
dc8bebb8
...
...
@@ -258,8 +258,8 @@ void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg)
// PLMN code that is already in the list of "forbidden PLMNs". ..
if
(
!
hasEmergency
())
{
for
(
auto
&
forbiddenPlmn
:
m_usim
->
m_forbiddenPlmnList
.
plmns
)
m_storage
->
equivalentPlmnList
->
remove
(
nas
::
utils
::
PlmnFrom
(
forbiddenPlmn
)
);
m_storage
->
forbiddenPlmnList
->
forEach
(
[
this
](
auto
&
forbiddenPlmn
)
{
m_storage
->
equivalentPlmnList
->
remove
(
forbiddenPlmn
);
}
);
}
// .. in addition, the UE shall add to the stored list the PLMN code of the registered PLMN that sent the list
m_storage
->
equivalentPlmnList
->
add
(
m_base
->
shCtx
.
getCurrentPlmn
());
...
...
@@ -379,8 +379,8 @@ void NasMm::receiveMobilityRegistrationAccept(const nas::RegistrationAccept &msg
// PLMN code that is already in the list of "forbidden PLMNs". ..
if
(
!
hasEmergency
())
{
for
(
auto
&
forbiddenPlmn
:
m_usim
->
m_forbiddenPlmnList
.
plmns
)
m_storage
->
equivalentPlmnList
->
remove
(
nas
::
utils
::
PlmnFrom
(
forbiddenPlmn
)
);
m_storage
->
forbiddenPlmnList
->
forEach
(
[
this
](
auto
&
forbiddenPlmn
)
{
m_storage
->
equivalentPlmnList
->
remove
(
forbiddenPlmn
);
}
);
}
// .. in addition, the UE shall add to the stored list the PLMN code of the registered PLMN that sent the list
m_storage
->
equivalentPlmnList
->
add
(
m_base
->
shCtx
.
getCurrentPlmn
());
...
...
@@ -603,8 +603,7 @@ void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg)
if
(
cause
==
nas
::
EMmCause
::
PLMN_NOT_ALLOWED
||
cause
==
nas
::
EMmCause
::
SERVING_NETWORK_NOT_AUTHORIZED
)
{
nas
::
utils
::
AddToPlmnList
(
m_usim
->
m_forbiddenPlmnList
,
nas
::
utils
::
PlmnFrom
(
m_base
->
shCtx
.
getCurrentPlmn
()));
m_storage
->
forbiddenPlmnList
->
add
(
m_base
->
shCtx
.
getCurrentPlmn
());
}
if
(
cause
==
nas
::
EMmCause
::
CONGESTION
)
...
...
@@ -764,7 +763,7 @@ void NasMm::receiveMobilityRegistrationReject(const nas::RegistrationReject &msg
if
(
cause
==
nas
::
EMmCause
::
PLMN_NOT_ALLOWED
||
cause
==
nas
::
EMmCause
::
SERVING_NETWORK_NOT_AUTHORIZED
)
{
nas
::
utils
::
AddToPlmnList
(
m_usim
->
m_forbiddenPlmnList
,
nas
::
utils
::
PlmnFrom
(
m_base
->
shCtx
.
getCurrentPlmn
()
));
m_storage
->
forbiddenPlmnList
->
add
(
m_base
->
shCtx
.
getCurrentPlmn
(
));
}
if
(
cause
==
nas
::
EMmCause
::
CONGESTION
)
...
...
src/ue/nas/mm/service.cpp
View file @
dc8bebb8
...
...
@@ -306,7 +306,7 @@ void NasMm::receiveServiceReject(const nas::ServiceReject &msg)
if
(
cause
==
nas
::
EMmCause
::
PLMN_NOT_ALLOWED
||
cause
==
nas
::
EMmCause
::
SERVING_NETWORK_NOT_AUTHORIZED
)
{
nas
::
utils
::
AddToPlmnList
(
m_usim
->
m_forbiddenPlmnList
,
nas
::
utils
::
PlmnFrom
(
m_base
->
shCtx
.
getCurrentPlmn
()
));
m_storage
->
forbiddenPlmnList
->
add
(
m_base
->
shCtx
.
getCurrentPlmn
(
));
}
if
(
cause
==
nas
::
EMmCause
::
TA_NOT_ALLOWED
)
...
...
src/ue/nas/storage.cpp
View file @
dc8bebb8
...
...
@@ -43,6 +43,8 @@ MmStorage::MmStorage(TaskBase *base) : m_base{base}
taiList
=
std
::
make_unique
<
nas
::
NasSlot
<
nas
::
IE5gsTrackingAreaIdentityList
>>
(
0
,
std
::
nullopt
);
equivalentPlmnList
=
std
::
make_unique
<
nas
::
NasList
<
Plmn
>>
(
16
,
0
,
std
::
nullopt
);
forbiddenPlmnList
=
std
::
make_unique
<
nas
::
NasList
<
Plmn
>>
(
16
,
0
,
std
::
nullopt
);
}
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/storage.hpp
View file @
dc8bebb8
...
...
@@ -23,6 +23,7 @@ class MmStorage
std
::
unique_ptr
<
nas
::
NasSlot
<
nas
::
IE5gsMobileIdentity
>>
storedGuti
;
std
::
unique_ptr
<
nas
::
NasList
<
Plmn
>>
equivalentPlmnList
;
std
::
unique_ptr
<
nas
::
NasList
<
Plmn
>>
forbiddenPlmnList
;
std
::
unique_ptr
<
nas
::
NasSlot
<
nas
::
IE5gsTrackingAreaIdentityList
>>
taiList
;
std
::
unique_ptr
<
nas
::
NasSlot
<
Tai
>>
lastVisitedRegisteredTai
;
...
...
src/ue/nas/usim/usim.hpp
View file @
dc8bebb8
...
...
@@ -30,9 +30,6 @@ class Usim
// State related
E5UState
m_uState
{};
// Plmn related
nas
::
IEPlmnList
m_forbiddenPlmnList
{};
// Security related
std
::
unique_ptr
<
NasSecurityContext
>
m_currentNsCtx
{};
std
::
unique_ptr
<
NasSecurityContext
>
m_nonCurrentNsCtx
{};
...
...
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