Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
24ec687a
Commit
24ec687a
authored
Sep 07, 2021
by
Cedric Roux
Committed by
rmagueta
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr-rlc: bugfix: copy correct part of PDUs in case of segmentation
parent
4a242993
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
3 deletions
+40
-3
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.c
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.c
+1
-1
openair2/LAYER2/nr_rlc/nr_rlc_entity_um.c
openair2/LAYER2/nr_rlc/nr_rlc_entity_um.c
+1
-1
openair2/LAYER2/nr_rlc/tests/run_tests.sh
openair2/LAYER2/nr_rlc/tests/run_tests.sh
+1
-1
openair2/LAYER2/nr_rlc/tests/test16.h
openair2/LAYER2/nr_rlc/tests/test16.h
+19
-0
openair2/LAYER2/nr_rlc/tests/test16.txt.gz
openair2/LAYER2/nr_rlc/tests/test16.txt.gz
+0
-0
openair2/LAYER2/nr_rlc/tests/test17.h
openair2/LAYER2/nr_rlc/tests/test17.h
+18
-0
openair2/LAYER2/nr_rlc/tests/test17.txt.gz
openair2/LAYER2/nr_rlc/tests/test17.txt.gz
+0
-0
No files found.
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.c
View file @
24ec687a
...
...
@@ -218,7 +218,7 @@ static void reassemble_and_deliver(nr_rlc_entity_am_t *entity, int sn)
bad_sdu
=
1
;
}
if
(
!
bad_sdu
&&
len
>
0
)
{
memcpy
(
sdu
+
so
,
pdu
->
data
,
len
);
memcpy
(
sdu
+
so
,
pdu
->
data
+
so
-
pdu
->
so
,
len
);
so
+=
len
;
}
free
(
pdu
->
data
);
...
...
openair2/LAYER2/nr_rlc/nr_rlc_entity_um.c
View file @
24ec687a
...
...
@@ -148,7 +148,7 @@ static void reassemble_and_deliver(nr_rlc_entity_um_t *entity, int sn)
bad_sdu
=
1
;
}
if
(
!
bad_sdu
&&
len
>
0
)
{
memcpy
(
sdu
+
so
,
pdu
->
data
,
len
);
memcpy
(
sdu
+
so
,
pdu
->
data
+
so
-
pdu
->
so
,
len
);
so
+=
len
;
}
free
(
pdu
->
data
);
...
...
openair2/LAYER2/nr_rlc/tests/run_tests.sh
View file @
24ec687a
#!/bin/sh
test_count
=
1
5
test_count
=
1
7
for
i
in
`
seq
$test_count
`
do
...
...
openair2/LAYER2/nr_rlc/tests/test16.h
0 → 100644
View file @
24ec687a
/*
* am test (SN field size 18):
* there was a bug when we receive a full PDU after receiving only the
* beginning of it; the data was copied at the end but from the start of the
* full PDU instead of the correct offset. This test captures this case.
* Gnb sends the start of a PDU then the full PDU. That is the SDU is
* [00 .. 09]. First gnb sends [00 .. 08] then it sends [00 .. 09].
*/
TIME
,
1
,
GNB_AM
,
100000
,
100000
,
45
,
35
,
0
,
-
1
,
-
1
,
8
,
18
,
UE_AM
,
100000
,
100000
,
45
,
35
,
0
,
-
1
,
-
1
,
8
,
18
,
GNB_PDU_SIZE
,
12
,
UE_PDU_SIZE
,
20
,
GNB_PDU
,
12
,
0x90
,
0x00
,
0x00
,
0x00
,
0x01
,
0x02
,
0x03
,
0x04
,
0x05
,
0x06
,
0x07
,
0x08
,
TIME
,
2
,
GNB_PDU_SIZE
,
20
,
GNB_PDU
,
13
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x01
,
0x02
,
0x03
,
0x04
,
0x05
,
0x06
,
0x07
,
0x08
,
0x09
,
TIME
,
-
1
openair2/LAYER2/nr_rlc/tests/test16.txt.gz
0 → 100644
View file @
24ec687a
File added
openair2/LAYER2/nr_rlc/tests/test17.h
0 → 100644
View file @
24ec687a
/*
* um test (SN field size 12):
* same problem as for test16, but we test by sending [00 .. 08] then
* [02 .. 09] (they overlap, the full SDU is [00 .. 09]), which probably
* never occurs in practice but triggers the bug. Doing as for test16 does
* not trigger the bug.
*/
TIME
,
1
,
GNB_UM
,
100000
,
100000
,
35
,
12
,
UE_UM
,
100000
,
100000
,
35
,
12
,
GNB_PDU_SIZE
,
8
,
UE_PDU_SIZE
,
20
,
GNB_PDU
,
11
,
0x40
,
0x00
,
0x00
,
0x01
,
0x02
,
0x03
,
0x04
,
0x05
,
0x06
,
0x07
,
0x08
,
TIME
,
2
,
GNB_PDU_SIZE
,
20
,
GNB_PDU
,
12
,
0x80
,
0x00
,
0x00
,
0x02
,
0x02
,
0x03
,
0x04
,
0x05
,
0x06
,
0x07
,
0x08
,
0x09
,
TIME
,
-
1
openair2/LAYER2/nr_rlc/tests/test17.txt.gz
0 → 100644
View file @
24ec687a
File added
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