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
db7f39ba
Commit
db7f39ba
authored
May 24, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct structure in sctp_eNB_accept_associations()
parent
6b757c53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openair3/SCTP/sctp_eNB_task.c
openair3/SCTP/sctp_eNB_task.c
+3
-3
No files found.
openair3/SCTP/sctp_eNB_task.c
View file @
db7f39ba
...
@@ -859,7 +859,7 @@ sctp_eNB_accept_associations(
...
@@ -859,7 +859,7 @@ sctp_eNB_accept_associations(
struct
sctp_cnx_list_elm_s
*
sctp_cnx
)
struct
sctp_cnx_list_elm_s
*
sctp_cnx
)
{
{
int
client_sd
;
int
client_sd
;
struct
sockaddr
saddr
;
struct
sockaddr
_in6
saddr
;
socklen_t
saddr_size
;
socklen_t
saddr_size
;
DevAssert
(
sctp_cnx
!=
NULL
);
DevAssert
(
sctp_cnx
!=
NULL
);
...
@@ -868,14 +868,14 @@ sctp_eNB_accept_associations(
...
@@ -868,14 +868,14 @@ sctp_eNB_accept_associations(
/* There is a new client connecting. Accept it...
/* There is a new client connecting. Accept it...
*/
*/
if
((
client_sd
=
accept
(
sctp_cnx
->
sd
,
&
saddr
,
&
saddr_size
))
<
0
)
{
if
((
client_sd
=
accept
(
sctp_cnx
->
sd
,
(
struct
sockaddr
*
)
&
saddr
,
&
saddr_size
))
<
0
)
{
SCTP_ERROR
(
"[%d] accept failed: %s:%d
\n
"
,
sctp_cnx
->
sd
,
strerror
(
errno
),
errno
);
SCTP_ERROR
(
"[%d] accept failed: %s:%d
\n
"
,
sctp_cnx
->
sd
,
strerror
(
errno
),
errno
);
}
else
{
}
else
{
struct
sctp_cnx_list_elm_s
*
new_cnx
;
struct
sctp_cnx_list_elm_s
*
new_cnx
;
uint16_t
port
;
uint16_t
port
;
/* This is an ipv6 socket */
/* This is an ipv6 socket */
port
=
((
struct
sockaddr_in6
*
)
&
saddr
)
->
sin6_port
;
port
=
saddr
.
sin6_port
;
/* Contrary to BSD, client socket does not inherit O_NONBLOCK option */
/* Contrary to BSD, client socket does not inherit O_NONBLOCK option */
if
(
fcntl
(
client_sd
,
F_SETFL
,
O_NONBLOCK
)
<
0
)
{
if
(
fcntl
(
client_sd
,
F_SETFL
,
O_NONBLOCK
)
<
0
)
{
...
...
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