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
0fd425a7
Commit
0fd425a7
authored
Jun 06, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UAC fields added to the UE configuration
parent
7f1704ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
5 deletions
+41
-5
src/lib/app/ue_ctl.hpp
src/lib/app/ue_ctl.hpp
+2
-0
src/ue.cpp
src/ue.cpp
+23
-5
src/ue/types.hpp
src/ue/types.hpp
+16
-0
No files found.
src/lib/app/ue_ctl.hpp
View file @
0fd425a7
...
...
@@ -10,7 +10,9 @@
namespace
nr
::
ue
{
class
UserEquipment
;
}
namespace
app
...
...
src/ue.cpp
View file @
0fd425a7
...
...
@@ -217,6 +217,22 @@ static nr::ue::UeConfig *ReadConfigYaml()
result
->
integrityMaxRate
.
downlinkFull
=
downlink
==
"full"
;
}
yaml
::
AssertHasField
(
config
,
"uacAic"
);
{
result
->
uacAic
.
mps
=
yaml
::
GetBool
(
config
[
"uacAic"
],
"mps"
);
result
->
uacAic
.
mcs
=
yaml
::
GetBool
(
config
[
"uacAic"
],
"mcs"
);
}
yaml
::
AssertHasField
(
config
,
"uacAcc"
);
{
result
->
uacAcc
.
normalCls
=
yaml
::
GetInt32
(
config
[
"uacAcc"
],
"normalClass"
,
0
,
9
);
result
->
uacAcc
.
cls11
=
yaml
::
GetBool
(
config
[
"uacAcc"
],
"class11"
);
result
->
uacAcc
.
cls12
=
yaml
::
GetBool
(
config
[
"uacAcc"
],
"class12"
);
result
->
uacAcc
.
cls13
=
yaml
::
GetBool
(
config
[
"uacAcc"
],
"class13"
);
result
->
uacAcc
.
cls14
=
yaml
::
GetBool
(
config
[
"uacAcc"
],
"class14"
);
result
->
uacAcc
.
cls15
=
yaml
::
GetBool
(
config
[
"uacAcc"
],
"class15"
);
}
return
result
;
}
...
...
@@ -274,22 +290,22 @@ static std::string LargeSum(std::string a, std::string b)
std
::
swap
(
a
,
b
);
std
::
string
str
;
in
t
n1
=
a
.
length
(),
n2
=
b
.
length
();
size_
t
n1
=
a
.
length
(),
n2
=
b
.
length
();
reverse
(
a
.
begin
(),
a
.
end
());
reverse
(
b
.
begin
(),
b
.
end
());
int
carry
=
0
;
for
(
in
t
i
=
0
;
i
<
n1
;
i
++
)
for
(
size_
t
i
=
0
;
i
<
n1
;
i
++
)
{
int
sum
=
((
a
[
i
]
-
'0'
)
+
(
b
[
i
]
-
'0'
)
+
carry
);
str
.
push_back
(
s
um
%
10
+
'0'
);
str
.
push_back
(
s
tatic_cast
<
char
>
((
sum
%
10
)
+
'0'
)
);
carry
=
sum
/
10
;
}
for
(
in
t
i
=
n1
;
i
<
n2
;
i
++
)
for
(
size_
t
i
=
n1
;
i
<
n2
;
i
++
)
{
int
sum
=
((
b
[
i
]
-
'0'
)
+
carry
);
str
.
push_back
(
s
um
%
10
+
'0'
);
str
.
push_back
(
s
tatic_cast
<
char
>
((
sum
%
10
)
+
'0'
)
);
carry
=
sum
/
10
;
}
if
(
carry
)
...
...
@@ -322,6 +338,8 @@ static nr::ue::UeConfig *GetConfigByUe(int ueIndex)
c
->
configureRouting
=
g_refConfig
->
configureRouting
;
c
->
prefixLogger
=
g_refConfig
->
prefixLogger
;
c
->
integrityMaxRate
=
g_refConfig
->
integrityMaxRate
;
c
->
uacAic
=
g_refConfig
->
uacAic
;
c
->
uacAcc
=
g_refConfig
->
uacAcc
;
if
(
c
->
supi
.
has_value
())
IncrementNumber
(
c
->
supi
->
value
,
ueIndex
);
...
...
src/ue/types.hpp
View file @
0fd425a7
...
...
@@ -105,6 +105,22 @@ struct UeConfig
NetworkSlice
defaultConfiguredNssai
{};
NetworkSlice
configuredNssai
{};
struct
{
bool
mps
{};
bool
mcs
{};
}
uacAic
;
struct
{
int
normalCls
{};
// [0..9]
bool
cls11
{};
bool
cls12
{};
bool
cls13
{};
bool
cls14
{};
bool
cls15
{};
}
uacAcc
;
/* Assigned by program */
bool
configureRouting
{};
bool
prefixLogger
{};
...
...
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