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
常顺宇
OpenXG-RAN
Commits
74817138
Commit
74817138
authored
May 30, 2018
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable log for PDCP
parent
aa2ad085
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+2
-0
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
+5
-0
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
74817138
...
@@ -792,6 +792,8 @@ pdcp_data_ind(
...
@@ -792,6 +792,8 @@ pdcp_data_ind(
#ifdef Rel14
#ifdef Rel14
//TTN (29/05/18) should check value of INST since 0 is for OIP0 (UE-UE), 1 is for OIP1 (UE-eNB) [even with S1 mode]
//TTN (29/05/18) should check value of INST since 0 is for OIP0 (UE-UE), 1 is for OIP1 (UE-eNB) [even with S1 mode]
LOG_I
(
PDCP
,
"[THINH2] source L2 Id: 0x%08x, destL2 0x%08x
\n
"
,((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
sourceL2Id
,
((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
destinationL2Id
);
//if traffic from other UE
//if traffic from other UE
if
((((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
sourceL2Id
>
0
)
&&
(((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
destinationL2Id
>
0
)){
if
((((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
sourceL2Id
>
0
)
&&
(((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
destinationL2Id
>
0
)){
((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
inst
=
0
;
((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
inst
=
0
;
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
View file @
74817138
...
@@ -173,6 +173,8 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t* const ctxt_pP)
...
@@ -173,6 +173,8 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t* const ctxt_pP)
#ifdef Rel14
#ifdef Rel14
//TTN (29/05/18) OIP1 for UE-eNB, OIP0 for UE-UE (incoming packets)
//TTN (29/05/18) OIP1 for UE-eNB, OIP0 for UE-UE (incoming packets)
LOG_I
(
PDCP
,
"[THINH2] source L2 Id: 0x%08x, destL2 0x%08x
\n
"
,((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
sourceL2Id
,
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
destinationL2Id
);
//traffic from other UE
//traffic from other UE
if
((
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
sourceL2Id
>
0
)
&&
(
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
destinationL2Id
>
0
)){
if
((
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
sourceL2Id
>
0
)
&&
(
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
destinationL2Id
>
0
)){
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
inst
=
0
;
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
inst
=
0
;
...
@@ -1093,6 +1095,8 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
...
@@ -1093,6 +1095,8 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
rab_id
,
rab_id
,
pdcp_read_header_g
.
data_size
);
pdcp_read_header_g
.
data_size
);
LOG_I
(
PDCP
,
"[THINH] source L2 Id: 0x%08x, destL2 0x%08x
\n
"
,
pdcp_read_header_g
.
sourceL2Id
,
pdcp_read_header_g
.
destinationL2Id
);
//TTN - for traffic from OIP1 (to eNB), sourceL2/DestL2 should be set to NULL
//TTN - for traffic from OIP1 (to eNB), sourceL2/DestL2 should be set to NULL
if
(
pdcp_read_header_g
.
inst
==
0
){
//INST == 0 (OIP0)
if
(
pdcp_read_header_g
.
inst
==
0
){
//INST == 0 (OIP0)
pdcp_data_req
(
pdcp_data_req
(
...
@@ -1170,6 +1174,7 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
...
@@ -1170,6 +1174,7 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
DEFAULT_RAB_ID
,
DEFAULT_RAB_ID
,
pdcp_read_header_g
.
data_size
);
pdcp_read_header_g
.
data_size
);
LOG_I
(
PDCP
,
"[THINH] source L2 Id: 0x%08x, destL2 0x%08x
\n
"
,
pdcp_read_header_g
.
sourceL2Id
,
pdcp_read_header_g
.
destinationL2Id
);
//TTN - for traffic from OIP1 (to eNB), sourceL2/DestL2 should be set to NULL
//TTN - for traffic from OIP1 (to eNB), sourceL2/DestL2 should be set to NULL
if
(
pdcp_read_header_g
.
inst
==
0
){
//INST == 0 (OIP0)
if
(
pdcp_read_header_g
.
inst
==
0
){
//INST == 0 (OIP0)
pdcp_data_req
(
pdcp_data_req
(
...
...
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