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
canghaiwuhen
OpenXG-RAN
Commits
592e7f60
Commit
592e7f60
authored
Nov 05, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5972
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
20a0e8b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+9
-8
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
592e7f60
...
...
@@ -415,6 +415,7 @@ boolean_t pdcp_data_ind(
boolean_t
packet_forwarded
=
FALSE
;
#if defined(LINK_PDCP_TO_GTPV1U)
MessageDef
*
message_p
=
NULL
;
uint8_t
*
gtpu_buffer_p
=
NULL
;
#endif
...
...
@@ -692,15 +693,15 @@ boolean_t pdcp_data_ind(
#if defined(LINK_PDCP_TO_GTPV1U)
if
((
TRUE
==
enb_flagP
)
&&
(
FALSE
==
srb_flagP
))
{
LOG_I
(
PDCP
,
"Sending to GTPV1U %d bytes
\n
"
,
sdu_buffer_sizeP
-
payload_offset
);
gtpu_buffer
=
itti_malloc
(
TASK_PDCP_ENB
,
TASK_GTPV1_U
,
sdu_buffer_sizeP
-
payload_offset
);
AssertFatal
(
gtpu_buffer
!=
NULL
,
"OUT OF MEMORY"
);
memcpy
(
gtpu_buffer
,
&
sdu_buffer_pP
->
data
[
payload_offset
],
sdu_buffer_sizeP
-
payload_offset
);
message_p
=
itti_alloc_new_message
(
TASK_PDCP_ENB
,
GTPV1U_TUNNEL_DATA_REQ
);
gtpu_buffer
_p
=
itti_malloc
(
TASK_PDCP_ENB
,
TASK_GTPV1_U
,
sdu_buffer_sizeP
-
payload_offset
);
AssertFatal
(
gtpu_buffer
_p
!=
NULL
,
"OUT OF MEMORY"
);
memcpy
(
gtpu_buffer
_p
,
&
sdu_buffer_pP
->
data
[
payload_offset
],
sdu_buffer_sizeP
-
payload_offset
);
message_p
=
itti_alloc_new_message
(
TASK_PDCP_ENB
,
GTPV1U_
ENB_
TUNNEL_DATA_REQ
);
AssertFatal
(
message_p
!=
NULL
,
"OUT OF MEMORY"
);
GTPV1U_
TUNNEL_DATA_REQ
(
message_p
).
buffer
=
gtpu_buffer
)
;
GTPV1U_TUNNEL_DATA_REQ
(
message_p
).
length
=
sdu_buffer_sizeP
-
payload_offset
;
GTPV1U_
TUNNEL_DATA_REQ
(
message_p
).
ue_module_id
=
ue_mod_idP
;
GTPV1U_
TUNNEL_DATA_REQ
(
message_p
).
rab_id
;
=
rb_id
+
4
;
GTPV1U_
ENB_TUNNEL_DATA_REQ
(
message_p
).
buffer
=
gtpu_buffer_p
;
GTPV1U_
ENB_
TUNNEL_DATA_REQ
(
message_p
).
length
=
sdu_buffer_sizeP
-
payload_offset
;
GTPV1U_
ENB_TUNNEL_DATA_REQ
(
message_p
).
ue_index
=
ue_mod_idP
;
GTPV1U_
ENB_TUNNEL_DATA_REQ
(
message_p
).
rab_id
=
rb_id
+
4
;
itti_send_msg_to_task
(
TASK_GTPV1_U
,
INSTANCE_DEFAULT
,
message_p
);
/*gtpv1u_new_data_req(
enb_mod_idP, //gtpv1u_data_t *gtpv1u_data_p,
...
...
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