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
42ea1f82
Commit
42ea1f82
authored
Jun 27, 2021
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix F1 setup messages memory error
parent
66e31967
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
816 additions
and
1083 deletions
+816
-1083
openair2/F1AP/f1ap_cu_interface_management.c
openair2/F1AP/f1ap_cu_interface_management.c
+184
-261
openair2/F1AP/f1ap_du_interface_management.c
openair2/F1AP/f1ap_du_interface_management.c
+625
-808
openair3/SCTP/sctp_eNB_task.c
openair3/SCTP/sctp_eNB_task.c
+7
-14
No files found.
openair2/F1AP/f1ap_cu_interface_management.c
View file @
42ea1f82
This diff is collapsed.
Click to expand it.
openair2/F1AP/f1ap_du_interface_management.c
View file @
42ea1f82
This diff is collapsed.
Click to expand it.
openair3/SCTP/sctp_eNB_task.c
View file @
42ea1f82
...
@@ -925,21 +925,14 @@ void
...
@@ -925,21 +925,14 @@ void
sctp_eNB_read_from_socket
(
sctp_eNB_read_from_socket
(
struct
sctp_cnx_list_elm_s
*
sctp_cnx
)
struct
sctp_cnx_list_elm_s
*
sctp_cnx
)
{
{
int
flags
=
0
,
n
;
socklen_t
from_len
;
struct
sctp_sndrcvinfo
sinfo
;
struct
sockaddr_in
addr
;
uint8_t
buffer
[
SCTP_RECV_BUFFER_SIZE
];
DevAssert
(
sctp_cnx
!=
NULL
);
DevAssert
(
sctp_cnx
!=
NULL
);
memset
((
void
*
)
&
addr
,
0
,
sizeof
(
struct
sockaddr_in
))
;
int
flags
=
0
;
from_len
=
(
socklen_t
)
sizeof
(
struct
sockaddr_in
)
;
struct
sctp_sndrcvinfo
sinfo
=
{
0
}
;
memset
((
void
*
)
&
sinfo
,
0
,
sizeof
(
struct
sctp_sndrcvinfo
))
;
uint8_t
buffer
[
SCTP_RECV_BUFFER_SIZE
]
;
n
=
sctp_recvmsg
(
sctp_cnx
->
sd
,
(
void
*
)
buffer
,
SCTP_RECV_BUFFER_SIZE
,
int
n
=
sctp_recvmsg
(
sctp_cnx
->
sd
,
(
void
*
)
buffer
,
SCTP_RECV_BUFFER_SIZE
,
(
struct
sockaddr
*
)
&
addr
,
&
from_len
,
NULL
,
NULL
,
&
sinfo
,
&
flags
);
&
sinfo
,
&
flags
);
if
(
n
<
0
)
{
if
(
n
<
0
)
{
...
@@ -1049,8 +1042,8 @@ sctp_eNB_read_from_socket(
...
@@ -1049,8 +1042,8 @@ sctp_eNB_read_from_socket(
sctp_cnx
->
ppid
);
sctp_cnx
->
ppid
);
}
}
SCTP_DEBUG
(
"[%d][%d] Msg of length %d received
from port %u
, on stream %d, PPID %d
\n
"
,
SCTP_DEBUG
(
"[%d][%d] Msg of length %d received, on stream %d, PPID %d
\n
"
,
sinfo
.
sinfo_assoc_id
,
sctp_cnx
->
sd
,
n
,
ntohs
(
addr
.
sin_port
),
sinfo
.
sinfo_assoc_id
,
sctp_cnx
->
sd
,
n
,
sinfo
.
sinfo_stream
,
ntohl
(
sinfo
.
sinfo_ppid
));
sinfo
.
sinfo_stream
,
ntohl
(
sinfo
.
sinfo_ppid
));
sctp_itti_send_new_message_ind
(
sctp_cnx
->
task_id
,
sctp_itti_send_new_message_ind
(
sctp_cnx
->
task_id
,
...
...
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