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
lizhongxiao
OpenXG-RAN
Commits
0222a74a
Commit
0222a74a
authored
Nov 15, 2022
by
Danil Ruban
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugz 124023 Fix pdcp sn overflow issue
parent
7b83adf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c
openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c
+4
-4
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c
View file @
0222a74a
...
...
@@ -102,20 +102,20 @@ uint16_t pdcp_get_next_tx_seq_number(pdcp_t* pdcp_entity)
// Sequence number should be incremented after it is assigned for a PDU
uint16_t
pdcp_seq_num
=
pdcp_entity
->
next_pdcp_tx_sn
;
uint16_t
max_seq_num
=
pdcp_calculate_max_seq_num_for_given_size
(
pdcp_entity
->
seq_num_size
);
/*
* Update sequence numbering state and Hyper Frame Number if SN has already reached
* its max value (see 5.1 PDCP Data Transfer Procedures)
*/
if
(
pdcp_entity
->
next_pdcp_tx_sn
==
pdcp_calculate_max_seq_num_for_given_size
(
pdcp_entity
->
seq_num_size
)
)
{
pdcp_entity
->
next_pdcp_tx_sn
=
0
;
if
(
pdcp_entity
->
next_pdcp_tx_sn
>
max_seq_num
)
{
pdcp_entity
->
next_pdcp_tx_sn
=
1
;
pdcp_entity
->
tx_hfn
++
;
LOG_D
(
PDCP
,
"Reseting the PDCP sequence number
\n
"
);
}
else
{
pdcp_entity
->
next_pdcp_tx_sn
++
;
}
return
pdcp_seq_num
;
return
pdcp_seq_num
&
max_seq_num
;
}
boolean_t
pdcp_advance_rx_window
(
pdcp_t
*
pdcp_entity
)
...
...
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