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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG-RAN
Commits
01a095a2
Commit
01a095a2
authored
Nov 02, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
assoc_id only to be stored for DU
parent
e9d91de5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
openair2/F1AP/f1ap_common.h
openair2/F1AP/f1ap_common.h
+3
-1
openair2/F1AP/f1ap_cu_task.c
openair2/F1AP/f1ap_cu_task.c
+2
-1
openair2/F1AP/f1ap_du_task.c
openair2/F1AP/f1ap_du_task.c
+3
-3
No files found.
openair2/F1AP/f1ap_common.h
View file @
01a095a2
...
...
@@ -401,7 +401,9 @@ typedef struct f1ap_cudu_inst_s {
f1ap_net_config_t
net_config
;
/* SCTP information */
sctp_assoc_t
assoc_id
;
struct
{
sctp_assoc_t
assoc_id
;
}
du
;
uint16_t
sctp_in_streams
;
uint16_t
sctp_out_streams
;
...
...
openair2/F1AP/f1ap_cu_task.c
View file @
01a095a2
...
...
@@ -55,7 +55,8 @@ static void cu_task_handle_sctp_association_ind(instance_t instance,
{
// save the assoc id
f1ap_cudu_inst_t
*
f1ap_cu_data
=
getCxt
(
instance
);
f1ap_cu_data
->
assoc_id
=
sctp_new_association_ind
->
assoc_id
;
// we don't need the assoc_id, subsequent messages (the first being F1 Setup
// Request), will deliver the assoc_id
f1ap_cu_data
->
sctp_in_streams
=
sctp_new_association_ind
->
in_streams
;
f1ap_cu_data
->
sctp_out_streams
=
sctp_new_association_ind
->
out_streams
;
}
...
...
openair2/F1AP/f1ap_du_task.c
View file @
01a095a2
...
...
@@ -76,11 +76,11 @@ void du_task_handle_sctp_association_resp(instance_t instance, sctp_new_associat
}
// save the assoc id
f1ap_du_data
->
assoc_id
=
sctp_new_association_resp
->
assoc_id
;
f1ap_du_data
->
du
.
assoc_id
=
sctp_new_association_resp
->
assoc_id
;
f1ap_du_data
->
sctp_in_streams
=
sctp_new_association_resp
->
in_streams
;
f1ap_du_data
->
sctp_out_streams
=
sctp_new_association_resp
->
out_streams
;
/* setup parameters for F1U and start the server */
DU_send_F1_SETUP_REQUEST
(
f1ap_du_data
->
assoc_id
,
&
f1ap_du_data
->
setupReq
);
DU_send_F1_SETUP_REQUEST
(
f1ap_du_data
->
du
.
assoc_id
,
&
f1ap_du_data
->
setupReq
);
}
void
du_task_handle_sctp_data_ind
(
instance_t
instance
,
sctp_data_ind_t
*
sctp_data_ind
)
{
...
...
@@ -102,7 +102,7 @@ void *F1AP_DU_task(void *arg) {
MessageDef
*
msg
=
NULL
;
itti_receive_msg
(
TASK_DU_F1
,
&
msg
);
instance_t
myInstance
=
ITTI_MSG_DESTINATION_INSTANCE
(
msg
);
sctp_assoc_t
assoc_id
=
getCxt
(
0
)
!=
NULL
?
getCxt
(
0
)
->
assoc_id
:
0
;
sctp_assoc_t
assoc_id
=
getCxt
(
0
)
!=
NULL
?
getCxt
(
0
)
->
du
.
assoc_id
:
0
;
LOG_D
(
F1AP
,
"DU Task Received %s for instance %ld: sending SCTP messages via assoc_id %d
\n
"
,
ITTI_MSG_NAME
(
msg
),
myInstance
,
assoc_id
);
switch
(
ITTI_MSG_ID
(
msg
))
{
case
F1AP_SETUP_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