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
0ed121e7
Commit
0ed121e7
authored
May 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
417bbc14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/lib/nas/storage.hpp
src/lib/nas/storage.hpp
+2
-2
src/ue/nas/storage.cpp
src/ue/nas/storage.cpp
+2
-2
src/ue/nas/storage.hpp
src/ue/nas/storage.hpp
+2
-2
No files found.
src/lib/nas/storage.hpp
View file @
0ed121e7
...
...
@@ -23,7 +23,7 @@ namespace nas
* - The list is NOT thread safe
*/
template
<
typename
T
>
class
NasList
T1
class
NasList
{
public:
using
backup_functor_type
=
std
::
function
<
void
(
const
std
::
vector
<
T
>
&
buffer
,
size_t
count
)
>
;
...
...
@@ -38,7 +38,7 @@ class NasListT1
int64_t
m_lastAutoCleared
;
public:
NasList
T1
(
size_t
sizeLimit
,
int64_t
autoClearingPeriod
,
std
::
optional
<
backup_functor_type
>
backupFunctor
)
NasList
(
size_t
sizeLimit
,
int64_t
autoClearingPeriod
,
std
::
optional
<
backup_functor_type
>
backupFunctor
)
:
m_sizeLimit
{
sizeLimit
},
m_autoClearingPeriod
{
autoClearingPeriod
},
m_data
{
sizeLimit
},
m_size
{},
m_lastAutoCleared
{
::
utils
::
CurrentTimeMillis
()}
{
...
...
src/ue/nas/storage.cpp
View file @
0ed121e7
...
...
@@ -25,12 +25,12 @@ namespace nr::ue
MmStorage
::
MmStorage
(
TaskBase
*
base
)
:
m_base
{
base
}
{
m_forbiddenTaiListRoaming
=
std
::
make_unique
<
nas
::
NasList
T1
<
Tai
>>
(
m_forbiddenTaiListRoaming
=
std
::
make_unique
<
nas
::
NasList
<
Tai
>>
(
FORBIDDEN_TAI_LIST_SIZE
,
FORBIDDEN_TAI_CLEAR_PERIOD
,
[
this
](
const
std
::
vector
<
Tai
>
&
buffer
,
size_t
count
)
{
BackupTaiListInSharedCtx
(
buffer
,
count
,
m_base
->
shCtx
.
forbiddenTaiRoaming
);
});
m_forbiddenTaiListRps
=
std
::
make_unique
<
nas
::
NasList
T1
<
Tai
>>
(
m_forbiddenTaiListRps
=
std
::
make_unique
<
nas
::
NasList
<
Tai
>>
(
FORBIDDEN_TAI_LIST_SIZE
,
FORBIDDEN_TAI_CLEAR_PERIOD
,
[
this
](
const
std
::
vector
<
Tai
>
&
buffer
,
size_t
count
)
{
BackupTaiListInSharedCtx
(
buffer
,
count
,
m_base
->
shCtx
.
forbiddenTaiRps
);
});
...
...
src/ue/nas/storage.hpp
View file @
0ed121e7
...
...
@@ -19,8 +19,8 @@ class MmStorage
TaskBase
*
m_base
;
public:
std
::
unique_ptr
<
nas
::
NasList
T1
<
Tai
>>
m_forbiddenTaiListRoaming
;
std
::
unique_ptr
<
nas
::
NasList
T1
<
Tai
>>
m_forbiddenTaiListRps
;
std
::
unique_ptr
<
nas
::
NasList
<
Tai
>>
m_forbiddenTaiListRoaming
;
std
::
unique_ptr
<
nas
::
NasList
<
Tai
>>
m_forbiddenTaiListRps
;
public:
explicit
MmStorage
(
TaskBase
*
base
);
...
...
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