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
ZhouShuya
OpenXG-RAN
Commits
2439efc7
Commit
2439efc7
authored
Apr 21, 2021
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NR PDCP: SRBs always have MAC-I, even when integrity is not active
parent
f207b202
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
+9
-2
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
View file @
2439efc7
...
...
@@ -65,7 +65,9 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
header_size
=
3
;
}
if
(
entity
->
has_integrity
)
{
/* SRBs always have MAC-I, even if integrity is not active */
if
(
entity
->
has_integrity
||
entity
->
type
==
NR_PDCP_SRB
)
{
integrity_size
=
4
;
}
else
{
integrity_size
=
0
;
...
...
@@ -180,7 +182,9 @@ static void nr_pdcp_entity_recv_sdu(nr_pdcp_entity_t *entity,
header_size
=
3
;
}
if
(
entity
->
has_integrity
)
{
/* SRBs always have MAC-I, even if integrity is not active */
if
(
entity
->
has_integrity
||
entity
->
type
==
NR_PDCP_SRB
)
{
integrity_size
=
4
;
}
else
{
integrity_size
=
0
;
...
...
@@ -193,6 +197,9 @@ static void nr_pdcp_entity_recv_sdu(nr_pdcp_entity_t *entity,
(
unsigned
char
*
)
buf
+
header_size
+
size
,
(
unsigned
char
*
)
buf
,
header_size
+
size
,
entity
->
rb_id
,
count
,
entity
->
is_gnb
?
1
:
0
);
else
if
(
integrity_size
==
4
)
/* set MAC-I to 0 for SRBs with integrity not active */
memset
(
buf
+
header_size
+
size
,
0
,
4
);
if
(
entity
->
has_ciphering
)
entity
->
cipher
(
entity
->
security_context
,
...
...
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