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
7dc6ebf4
Commit
7dc6ebf4
authored
Jun 06, 2017
by
vettel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync 2
parent
9d4479fb
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
982 additions
and
8 deletions
+982
-8
openair2/COMMON/x2ap_messages_types.h
openair2/COMMON/x2ap_messages_types.h
+2
-0
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+970
-4
openair2/X2AP/x2ap_eNB.c
openair2/X2AP/x2ap_eNB.c
+2
-1
openair2/X2AP/x2ap_eNB_generate_messages.c
openair2/X2AP/x2ap_eNB_generate_messages.c
+8
-3
No files found.
openair2/COMMON/x2ap_messages_types.h
View file @
7dc6ebf4
...
...
@@ -168,6 +168,8 @@ typedef struct x2ap_handover_req_ack_s {
int
source_x2id
;
/* TODO: to be fixed/remove */
/* TODO: this parameter has to be removed */
int
target_mod_id
;
uint8_t
rrc_buffer
[
255
/* TODO: should be RRC_BUF_SIZE */
];
int
rrc_buffer_size
;
}
x2ap_handover_req_ack_t
;
#endif
/* X2AP_MESSAGES_TYPES_H_ */
openair2/RRC/LITE/rrc_eNB.c
View file @
7dc6ebf4
This diff is collapsed.
Click to expand it.
openair2/X2AP/x2ap_eNB.c
View file @
7dc6ebf4
...
...
@@ -442,7 +442,8 @@ void x2ap_eNB_handle_handover_req_ack(instance_t instance,
target
=
x2ap_is_eNB_id_in_list
(
target_enb_id
);
DevAssert
(
target
!=
NULL
);
x2ap_eNB_generate_x2_handover_req_ack
(
instance_p
,
target
,
x2ap_handover_req_ack
->
source_x2id
);
x2ap_eNB_generate_x2_handover_req_ack
(
instance_p
,
target
,
x2ap_handover_req_ack
->
source_x2id
,
x2ap_handover_req_ack
->
rrc_buffer
,
x2ap_handover_req_ack
->
rrc_buffer_size
);
}
void
*
x2ap_task
(
void
*
arg
)
...
...
openair2/X2AP/x2ap_eNB_generate_messages.c
View file @
7dc6ebf4
...
...
@@ -429,7 +429,9 @@ abort();
int
x2ap_eNB_generate_x2_handover_req_ack
(
x2ap_eNB_instance_t
*
instance
,
x2ap_eNB_data_t
*
x2ap_enb_data_p
,
int
source_x2id
)
int
source_x2id
,
uint8_t
*
rrc_buffer
,
int
rrc_buffer_size
)
{
x2ap_message
message
;
...
...
@@ -454,10 +456,12 @@ int x2ap_eNB_generate_x2_handover_req_ack(x2ap_eNB_instance_t *instance,
message
.
procedureCode
=
procedure
;
message
.
criticality
=
criticality
;
message
.
direction
=
present
;
#if 0
//data is in file RRC_Context_acknowledge.txt
uint8_t RRC[63] = { 0x01,0xe9,0x00,0x90,0xa8,0x00,0x00,0x22,0x33,0xe9,0x42,0x80,0x02,0xf0,0x80,0x9e,0x20,0x23,0xc6,0x05,0x79,0x00,0xef,0x28,
0x21,0xe1,0x01,0x24,0x38,0x40,0x05,0x00,0x12,0x1c,0xa0,0x00,0x02,0x00,0x88,0x02,0x18,0x06,0x40,0x10,0xa0,0x2b,0x43,0x81,
0x1d,0xd9,0xc0,0x30,0x70,0x00,0xe0,0x21,0xc3,0x17,0x01,0x74,0x60,0x12,0x80 };
#endif
message
.
msg
.
x2ap_HandoverRequestAcknowledge_IEs
.
old_eNB_UE_X2AP_ID
=
source_x2id
;
message
.
msg
.
x2ap_HandoverRequestAcknowledge_IEs
.
new_eNB_UE_X2AP_ID
=
2001
;
...
...
@@ -466,7 +470,8 @@ int x2ap_eNB_generate_x2_handover_req_ack(x2ap_eNB_instance_t *instance,
e_RABs_Admitted_Item1
->
iE_Extensions
=
NULL
;
ASN_SEQUENCE_ADD
(
e_RABs_Admitted_List1
,
e_RABs_Admitted_Item1
);
memcpy
(
&
message
.
msg
.
x2ap_HandoverRequestAcknowledge_IEs
.
e_RABs_Admitted_List
,
e_RABs_Admitted_List1
,
sizeof
(
X2ap_E_RABs_Admitted_ListIEs_t
));
OCTET_STRING_fromBuf
(
&
message
.
msg
.
x2ap_HandoverRequestAcknowledge_IEs
.
targeteNBtoSource_eNBTransparentContainer
,
(
char
*
)
RRC
,
sizeof
(
RRC
));
//OCTET_STRING_fromBuf(&message.msg.x2ap_HandoverRequestAcknowledge_IEs.targeteNBtoSource_eNBTransparentContainer, (char*) RRC, sizeof(RRC));
OCTET_STRING_fromBuf
(
&
message
.
msg
.
x2ap_HandoverRequestAcknowledge_IEs
.
targeteNBtoSource_eNBTransparentContainer
,
(
char
*
)
rrc_buffer
,
rrc_buffer_size
);
if
(
x2ap_eNB_encode_pdu
(
&
message
,
&
buffer
,
&
len
)
<
0
)
{
X2AP_ERROR
(
"Failed to encode X2 handover response
\n
"
);
...
...
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