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
d3c6d99c
Commit
d3c6d99c
authored
May 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
feaeffb8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
8 deletions
+10
-8
src/lib/nas/storage.hpp
src/lib/nas/storage.hpp
+1
-1
src/ue/nas/mm/access.cpp
src/ue/nas/mm/access.cpp
+2
-2
src/ue/nas/mm/config.cpp
src/ue/nas/mm/config.cpp
+1
-1
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
+2
-2
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
-1
No files found.
src/lib/nas/storage.hpp
View file @
d3c6d99c
...
@@ -200,7 +200,7 @@ class NasSlot
...
@@ -200,7 +200,7 @@ class NasSlot
{
{
}
}
T
get
()
const
T
&
get
()
{
{
autoClearIfNecessary
();
autoClearIfNecessary
();
...
...
src/ue/nas/mm/access.cpp
View file @
d3c6d99c
...
@@ -52,13 +52,13 @@ bool NasMm::isInNonAllowedArea()
...
@@ -52,13 +52,13 @@ bool NasMm::isInNonAllowedArea()
auto
&
plmn
=
*
m_usim
->
m_currentPlmn
;
auto
&
plmn
=
*
m_usim
->
m_currentPlmn
;
if
(
nas
::
utils
::
ServiceAreaListForbidsPlmn
(
m_
usim
->
m_serviceAreaList
,
nas
::
utils
::
PlmnFrom
(
plmn
)))
if
(
nas
::
utils
::
ServiceAreaListForbidsPlmn
(
m_
storage
->
m_serviceAreaList
->
get
()
,
nas
::
utils
::
PlmnFrom
(
plmn
)))
return
true
;
return
true
;
if
(
m_usim
->
m_servingCell
.
has_value
())
if
(
m_usim
->
m_servingCell
.
has_value
())
{
{
if
(
nas
::
utils
::
ServiceAreaListForbidsTai
(
if
(
nas
::
utils
::
ServiceAreaListForbidsTai
(
m_
usim
->
m_serviceAreaList
,
m_
storage
->
m_serviceAreaList
->
get
()
,
nas
::
VTrackingAreaIdentity
{
nas
::
utils
::
PlmnFrom
(
plmn
),
octet3
{
m_usim
->
m_servingCell
->
tac
}}))
nas
::
VTrackingAreaIdentity
{
nas
::
utils
::
PlmnFrom
(
plmn
),
octet3
{
m_usim
->
m_servingCell
->
tac
}}))
return
true
;
return
true
;
}
}
...
...
src/ue/nas/mm/config.cpp
View file @
d3c6d99c
...
@@ -59,7 +59,7 @@ void NasMm::receiveConfigurationUpdate(const nas::ConfigurationUpdateCommand &ms
...
@@ -59,7 +59,7 @@ void NasMm::receiveConfigurationUpdate(const nas::ConfigurationUpdateCommand &ms
if
(
msg
.
serviceAreaList
.
has_value
())
if
(
msg
.
serviceAreaList
.
has_value
())
{
{
hasNewConfig
=
true
;
hasNewConfig
=
true
;
m_
usim
->
m_serviceAreaList
=
*
msg
.
serviceAreaList
;
m_
storage
->
m_serviceAreaList
->
set
(
*
msg
.
serviceAreaList
)
;
}
}
// "If the UE receives new NITZ information in the CONFIGURATION UPDATE COMMAND message, the UE considers the new
// "If the UE receives new NITZ information in the CONFIGURATION UPDATE COMMAND message, the UE considers the new
...
...
src/ue/nas/mm/radio.cpp
View file @
d3c6d99c
...
@@ -72,7 +72,7 @@ void NasMm::performPlmnSelection()
...
@@ -72,7 +72,7 @@ void NasMm::performPlmnSelection()
continue
;
// If it's the HPLMN, it's already added above
continue
;
// If it's the HPLMN, it's already added above
if
(
nas
::
utils
::
PlmnListContains
(
m_usim
->
m_forbiddenPlmnList
,
plmn
))
if
(
nas
::
utils
::
PlmnListContains
(
m_usim
->
m_forbiddenPlmnList
,
plmn
))
continue
;
continue
;
if
(
nas
::
utils
::
ServiceAreaListForbidsPlmn
(
m_
usim
->
m_serviceAreaList
,
nas
::
utils
::
PlmnFrom
(
plmn
)))
if
(
nas
::
utils
::
ServiceAreaListForbidsPlmn
(
m_
storage
->
m_serviceAreaList
->
get
()
,
nas
::
utils
::
PlmnFrom
(
plmn
)))
continue
;
continue
;
if
(
nas
::
utils
::
PlmnListContains
(
m_usim
->
m_equivalentPlmnList
,
plmn
))
if
(
nas
::
utils
::
PlmnListContains
(
m_usim
->
m_equivalentPlmnList
,
plmn
))
candidates
.
push_back
(
plmn
);
candidates
.
push_back
(
plmn
);
...
...
src/ue/nas/mm/register.cpp
View file @
d3c6d99c
...
@@ -232,7 +232,7 @@ void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg)
...
@@ -232,7 +232,7 @@ void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg)
// Store the TAI list as a registration area
// Store the TAI list as a registration area
m_usim
->
m_taiList
=
msg
.
taiList
.
value_or
(
nas
::
IE5gsTrackingAreaIdentityList
{});
m_usim
->
m_taiList
=
msg
.
taiList
.
value_or
(
nas
::
IE5gsTrackingAreaIdentityList
{});
// Store the service area list
// Store the service area list
m_
usim
->
m_serviceAreaList
=
msg
.
serviceAreaList
.
value_or
(
nas
::
IEServiceAreaList
{}
);
m_
storage
->
m_serviceAreaList
->
set
(
msg
.
serviceAreaList
.
value_or
(
nas
::
IEServiceAreaList
{})
);
// Store the E-PLMN list and ..
// Store the E-PLMN list and ..
m_usim
->
m_equivalentPlmnList
=
msg
.
equivalentPLMNs
.
value_or
(
nas
::
IEPlmnList
{});
m_usim
->
m_equivalentPlmnList
=
msg
.
equivalentPLMNs
.
value_or
(
nas
::
IEPlmnList
{});
...
@@ -355,7 +355,7 @@ void NasMm::receiveMobilityRegistrationAccept(const nas::RegistrationAccept &msg
...
@@ -355,7 +355,7 @@ void NasMm::receiveMobilityRegistrationAccept(const nas::RegistrationAccept &msg
nas
::
utils
::
AddToPlmnList
(
m_usim
->
m_equivalentPlmnList
,
nas
::
utils
::
PlmnFrom
(
*
m_usim
->
m_currentPlmn
));
nas
::
utils
::
AddToPlmnList
(
m_usim
->
m_equivalentPlmnList
,
nas
::
utils
::
PlmnFrom
(
*
m_usim
->
m_currentPlmn
));
// Store the service area list
// Store the service area list
m_
usim
->
m_serviceAreaList
=
msg
.
serviceAreaList
.
value_or
(
nas
::
IEServiceAreaList
{}
);
m_
storage
->
m_serviceAreaList
->
set
(
msg
.
serviceAreaList
.
value_or
(
nas
::
IEServiceAreaList
{})
);
// "Upon receipt of the REGISTRATION ACCEPT message, the UE shall reset the registration attempt counter and service
// "Upon receipt of the REGISTRATION ACCEPT message, the UE shall reset the registration attempt counter and service
// request attempt counter, enter state 5GMM-REGISTERED and set the 5GS update status to 5U1 UPDATED."
// request attempt counter, enter state 5GMM-REGISTERED and set the 5GS update status to 5U1 UPDATED."
...
...
src/ue/nas/storage.cpp
View file @
d3c6d99c
...
@@ -34,6 +34,8 @@ MmStorage::MmStorage(TaskBase *base) : m_base{base}
...
@@ -34,6 +34,8 @@ MmStorage::MmStorage(TaskBase *base) : m_base{base}
FORBIDDEN_TAI_LIST_SIZE
,
FORBIDDEN_TAI_CLEAR_PERIOD
,
[
this
](
const
std
::
vector
<
Tai
>
&
buffer
,
size_t
count
)
{
FORBIDDEN_TAI_LIST_SIZE
,
FORBIDDEN_TAI_CLEAR_PERIOD
,
[
this
](
const
std
::
vector
<
Tai
>
&
buffer
,
size_t
count
)
{
BackupTaiListInSharedCtx
(
buffer
,
count
,
m_base
->
shCtx
.
forbiddenTaiRps
);
BackupTaiListInSharedCtx
(
buffer
,
count
,
m_base
->
shCtx
.
forbiddenTaiRps
);
});
});
m_serviceAreaList
=
std
::
make_unique
<
nas
::
NasSlot
<
nas
::
IEServiceAreaList
>>
(
0
,
std
::
nullopt
);
}
}
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/storage.hpp
View file @
d3c6d99c
...
@@ -21,6 +21,7 @@ class MmStorage
...
@@ -21,6 +21,7 @@ class MmStorage
public:
public:
std
::
unique_ptr
<
nas
::
NasList
<
Tai
>>
m_forbiddenTaiListRoaming
;
std
::
unique_ptr
<
nas
::
NasList
<
Tai
>>
m_forbiddenTaiListRoaming
;
std
::
unique_ptr
<
nas
::
NasList
<
Tai
>>
m_forbiddenTaiListRps
;
std
::
unique_ptr
<
nas
::
NasList
<
Tai
>>
m_forbiddenTaiListRps
;
std
::
unique_ptr
<
nas
::
NasSlot
<
nas
::
IEServiceAreaList
>>
m_serviceAreaList
;
public:
public:
explicit
MmStorage
(
TaskBase
*
base
);
explicit
MmStorage
(
TaskBase
*
base
);
...
...
src/ue/nas/usim/usim.hpp
View file @
d3c6d99c
...
@@ -42,7 +42,6 @@ class Usim
...
@@ -42,7 +42,6 @@ class Usim
nas
::
IE5gsTrackingAreaIdentityList
m_taiList
{};
nas
::
IE5gsTrackingAreaIdentityList
m_taiList
{};
nas
::
IEPlmnList
m_equivalentPlmnList
{};
nas
::
IEPlmnList
m_equivalentPlmnList
{};
nas
::
IEPlmnList
m_forbiddenPlmnList
{};
nas
::
IEPlmnList
m_forbiddenPlmnList
{};
nas
::
IEServiceAreaList
m_serviceAreaList
{};
// Security related
// Security related
std
::
unique_ptr
<
NasSecurityContext
>
m_currentNsCtx
{};
std
::
unique_ptr
<
NasSecurityContext
>
m_currentNsCtx
{};
...
...
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