Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
59bf54c9
Commit
59bf54c9
authored
Jul 29, 2024
by
Guido Casati
Committed by
Robert Schmidt
Nov 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a separate function to fetch RNTI in telnet CI
parent
fb1f2539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
common/utils/telnetsrv/telnetsrv_ci.c
common/utils/telnetsrv/telnetsrv_ci.c
+8
-4
No files found.
common/utils/telnetsrv/telnetsrv_ci.c
View file @
59bf54c9
...
@@ -115,10 +115,8 @@ int get_reestab_count(char *buf, int debug, telnet_printfunc_t prnt)
...
@@ -115,10 +115,8 @@ int get_reestab_count(char *buf, int debug, telnet_printfunc_t prnt)
return
0
;
return
0
;
}
}
int
trigger_reestab
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
)
int
fetch_rnti
(
char
*
buf
,
telnet_printfunc_t
prnt
)
{
{
if
(
!
RC
.
nrmac
)
ERROR_MSG_RET
(
"no MAC/RLC present, cannot trigger reestablishment
\n
"
);
int
rnti
=
-
1
;
int
rnti
=
-
1
;
if
(
!
buf
)
{
if
(
!
buf
)
{
rnti
=
get_single_ue_rnti_mac
();
rnti
=
get_single_ue_rnti_mac
();
...
@@ -129,9 +127,15 @@ int trigger_reestab(char *buf, int debug, telnet_printfunc_t prnt)
...
@@ -129,9 +127,15 @@ int trigger_reestab(char *buf, int debug, telnet_printfunc_t prnt)
if
(
rnti
<
1
||
rnti
>=
0xfffe
)
if
(
rnti
<
1
||
rnti
>=
0xfffe
)
ERROR_MSG_RET
(
"RNTI needs to be [1,0xfffe]
\n
"
);
ERROR_MSG_RET
(
"RNTI needs to be [1,0xfffe]
\n
"
);
}
}
return
rnti
;
}
int
trigger_reestab
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
)
{
if
(
!
RC
.
nrmac
)
ERROR_MSG_RET
(
"no MAC/RLC present, cannot trigger reestablishment
\n
"
);
int
rnti
=
fetch_rnti
(
buf
,
prnt
);
nr_rlc_test_trigger_reestablishment
(
rnti
);
nr_rlc_test_trigger_reestablishment
(
rnti
);
prnt
(
"Reset RLC counters of UE RNTI %04x to trigger reestablishment
\n
"
,
rnti
);
prnt
(
"Reset RLC counters of UE RNTI %04x to trigger reestablishment
\n
"
,
rnti
);
return
0
;
return
0
;
}
}
...
...
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