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
spbro
OpenXG-RAN
Commits
ae70afe4
Commit
ae70afe4
authored
Jan 02, 2023
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for gcc version hat doesnt accept declarations in switch
parent
6a7a0104
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
openair2/E1AP/e1ap.c
openair2/E1AP/e1ap.c
+6
-6
openair2/F1AP/f1ap_du_task.c
openair2/F1AP/f1ap_du_task.c
+0
-7
openair2/F1AP/f1ap_du_ue_context_management.c
openair2/F1AP/f1ap_du_ue_context_management.c
+1
-1
No files found.
openair2/E1AP/e1ap.c
View file @
ae70afe4
...
...
@@ -1567,17 +1567,17 @@ void *E1AP_CUCP_task(void *arg) {
&
msg
->
ittiMsg
.
sctp_new_association_resp
);
break
;
case
E1AP_SETUP_REQ
:
case
E1AP_SETUP_REQ
:
{
e1ap_setup_req_t
*
req
=
&
E1AP_SETUP_REQ
(
msg
);
char
*
ipaddr
;
if
(
req
->
CUCP_e1_ip_address
.
ipv4
==
0
)
{
LOG_E
(
E1AP
,
"No IPv4 address configured
\n
"
);
return
NULL
;
}
else
}
else
{
ipaddr
=
req
->
CUCP_e1_ip_address
.
ipv4_address
;
cucp_task_send_sctp_init_req
(
0
,
ipaddr
);
break
;
}
}
break
;
case
SCTP_DATA_IND
:
cuxp_task_handle_sctp_data_ind
(
myInstance
,
&
msg
->
ittiMsg
.
sctp_data_ind
);
...
...
@@ -1620,12 +1620,12 @@ void *E1AP_CUUP_task(void *arg) {
const
int
msgType
=
ITTI_MSG_ID
(
msg
);
LOG_I
(
E1AP
,
"CUUP received %s for instance %ld
\n
"
,
messages_info
[
msgType
].
name
,
myInstance
);
switch
(
msgType
)
{
case
E1AP_SETUP_REQ
:
case
E1AP_SETUP_REQ
:
{
e1ap_setup_req_t
*
msgSetup
=
&
E1AP_SETUP_REQ
(
msg
);
createE1inst
(
UPtype
,
myInstance
,
msgSetup
);
cuup_task_send_sctp_association_req
(
myInstance
,
msgSetup
);
break
;
}
break
;
case
SCTP_NEW_ASSOCIATION_RESP
:
cuup_task_handle_sctp_association_resp
(
myInstance
,
&
msg
->
ittiMsg
.
sctp_new_association_resp
);
...
...
openair2/F1AP/f1ap_du_task.c
View file @
ae70afe4
...
...
@@ -96,13 +96,6 @@ void du_task_handle_sctp_data_ind(instance_t instance, sctp_data_ind_t *sctp_dat
AssertFatal
(
result
==
EXIT_SUCCESS
,
"Failed to free memory (%d)!
\n
"
,
result
);
}
static
instance_t
du_create_gtpu_instance_to_cu
(
char
*
CUaddr
,
uint16_t
CUport
,
char
*
DUaddr
,
uint16_t
DUport
)
{
openAddr_t
tmp
=
{
0
};
strncpy
(
tmp
.
originHost
,
DUaddr
,
sizeof
(
tmp
.
originHost
)
-
1
);
sprintf
(
tmp
.
originService
,
"%d"
,
DUport
);
return
gtpv1Init
(
tmp
);
}
void
*
F1AP_DU_task
(
void
*
arg
)
{
//sctp_cu_init();
LOG_I
(
F1AP
,
"Starting F1AP at DU
\n
"
);
...
...
openair2/F1AP/f1ap_du_ue_context_management.c
View file @
ae70afe4
...
...
@@ -1078,7 +1078,7 @@ int DU_send_UE_CONTEXT_RELEASE_COMPLETE(instance_t instance,
static
instance_t
du_create_gtpu_instance_to_cu
(
char
*
CUaddr
,
uint16_t
CUport
,
char
*
DUaddr
,
uint16_t
DUport
)
{
openAddr_t
tmp
;
openAddr_t
tmp
=
{
0
}
;
strncpy
(
tmp
.
originHost
,
DUaddr
,
sizeof
(
tmp
.
originHost
)
-
1
);
strncpy
(
tmp
.
destinationHost
,
CUaddr
,
sizeof
(
tmp
.
destinationHost
)
-
1
);
sprintf
(
tmp
.
originService
,
"%d"
,
DUport
);
...
...
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