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
08832fac
Commit
08832fac
authored
May 24, 2021
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix setup parameters for F1U
parent
824faeb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
openair2/F1AP/f1ap_cu_task.c
openair2/F1AP/f1ap_cu_task.c
+6
-1
openair2/F1AP/f1ap_du_task.c
openair2/F1AP/f1ap_du_task.c
+6
-1
No files found.
openair2/F1AP/f1ap_cu_task.c
View file @
08832fac
...
...
@@ -72,11 +72,16 @@ void cu_task_handle_sctp_association_resp(instance_t instance, sctp_new_associat
f1ap_du_data_from_du
->
sctp_out_streams
=
sctp_new_association_resp
->
out_streams
;
/* setup parameters for F1U and start the server */
const
cudu_params_t
params
=
{
const
cudu_params_t
params
=
RC
.
nrrrc
[
instance
]
->
node_type
==
ngran_gNB_CU
?
(
cudu_params_t
)
{
.
local_ipv4_address
=
RC
.
nrrrc
[
instance
]
->
eth_params_s
.
my_addr
,
.
local_port
=
RC
.
nrrrc
[
instance
]
->
eth_params_s
.
my_portd
,
.
remote_ipv4_address
=
RC
.
nrrrc
[
instance
]
->
eth_params_s
.
remote_addr
,
.
remote_port
=
RC
.
nrrrc
[
instance
]
->
eth_params_s
.
remote_portd
}
:
(
cudu_params_t
){
.
local_ipv4_address
=
RC
.
rrc
[
instance
]
->
eth_params_s
.
my_addr
,
.
local_port
=
RC
.
rrc
[
instance
]
->
eth_params_s
.
my_portd
,
.
remote_ipv4_address
=
RC
.
rrc
[
instance
]
->
eth_params_s
.
remote_addr
,
.
remote_port
=
RC
.
rrc
[
instance
]
->
eth_params_s
.
remote_portd
};
AssertFatal
(
proto_agent_start
(
instance
,
&
params
)
==
0
,
"could not start PROTO_AGENT for F1U on instance %ld!
\n
"
,
instance
);
...
...
openair2/F1AP/f1ap_du_task.c
View file @
08832fac
...
...
@@ -102,11 +102,16 @@ void du_task_handle_sctp_association_resp(instance_t instance, sctp_new_associat
f1ap_du_data
->
default_sctp_stream_id
=
0
;
/* setup parameters for F1U and start the server */
const
cudu_params_t
params
=
{
const
cudu_params_t
params
=
RC
.
nrrrc
[
instance
]
->
node_type
==
ngran_gNB_DU
?
(
cudu_params_t
)
{
.
local_ipv4_address
=
RC
.
nrmac
[
instance
]
->
eth_params_n
.
my_addr
,
.
local_port
=
RC
.
nrmac
[
instance
]
->
eth_params_n
.
my_portd
,
.
remote_ipv4_address
=
RC
.
nrmac
[
instance
]
->
eth_params_n
.
remote_addr
,
.
remote_port
=
RC
.
nrmac
[
instance
]
->
eth_params_n
.
remote_portd
}
:
(
cudu_params_t
){
.
local_ipv4_address
=
RC
.
mac
[
instance
]
->
eth_params_n
.
my_addr
,
.
local_port
=
RC
.
mac
[
instance
]
->
eth_params_n
.
my_portd
,
.
remote_ipv4_address
=
RC
.
mac
[
instance
]
->
eth_params_n
.
remote_addr
,
.
remote_port
=
RC
.
mac
[
instance
]
->
eth_params_n
.
remote_portd
};
AssertFatal
(
proto_agent_start
(
instance
,
&
params
)
==
0
,
"could not start PROTO_AGENT for F1U on instance %ld!
\n
"
,
instance
);
...
...
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