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
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
alex037yang
OpenXG-RAN
Commits
e0eae4ad
Commit
e0eae4ad
authored
Jun 04, 2020
by
bussotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test1
parent
2bacc913
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
openair2/LAYER2/PDCP_v10.1.0/BENCHMARK/pdcp_benchmark.c
openair2/LAYER2/PDCP_v10.1.0/BENCHMARK/pdcp_benchmark.c
+32
-0
No files found.
openair2/LAYER2/PDCP_v10.1.0/BENCHMARK/pdcp_benchmark.c
View file @
e0eae4ad
...
@@ -27,3 +27,35 @@
...
@@ -27,3 +27,35 @@
* */
* */
#include <stdint.h>
#include <stdint.h>
#define DUMMY_BUFFER ((unsigned char*)"123456789")
#define DUMMY_BUFFER_SIZE 10
pdcp_t
pdcp_el
;
list_t
pdu_tx_list
;
int
main
(
int
argc
,
char
*
argv
[])
{
int
resQ
;
do
{
printf
(
"Type in the test you want (1 or 2)"
);
scanf
(
"%d"
,
resQ
);
}
while
(
resQ
!=
1
||
resQ
!=
2
);
pool_buffer_init
();
list_init
(
&
pdu_tx_list
,
NULL
);
logInit
();
pdcp_el
->
next_pdcp_tx_sn
=
0
;
pdcp_el
->
next_pdcp_rx_sn
=
0
;
pdcp_el
->
tx_hfn
=
0
;
pdcp_el
->
rx_hfn
=
0
;
/* SN of the last PDCP SDU delivered to upper layers */
pdcp_el
->
last_submitted_pdcp_rx_sn
=
4095
;
pdcp_el
->
seq_num_size
=
12
;
pdcp_el
->
cipheringAlgorithm
=
(
resQ
==
1
?
"EEA1_128_ALG_ID"
:
"EEA2_128_ALG_ID"
);
pdcp_data_req
(
0
,
0
,
10
,
DUMMY_BUFFER
,
pdcp_el
,
&
pdu_tx_list
)
}
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