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
canghaiwuhen
OpenXG-RAN
Commits
d4d07767
Commit
d4d07767
authored
Oct 27, 2020
by
Mohammed Ismail
Committed by
Raphael Defosseux
Nov 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sctp_event_subscribe updated
Signed-off-by:
Mohammed Ismail
<
mohammed.ismail@eurecom.fr
>
parent
b4522183
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
openair3/SCTP/sctp_eNB_task.c
openair3/SCTP/sctp_eNB_task.c
+16
-4
openair3/SCTP/sctp_primitives_client.c
openair3/SCTP/sctp_primitives_client.c
+8
-2
No files found.
openair3/SCTP/sctp_eNB_task.c
View file @
d4d07767
...
...
@@ -413,10 +413,16 @@ sctp_handle_new_association_req(
}
/* Subscribe to all events */
memset
((
void
*
)
&
events
,
1
,
sizeof
(
struct
sctp_event_subscribe
));
event
.
sctp_data_io_event
=
1
;
event
.
sctp_association_event
=
1
;
event
.
sctp_address_event
=
1
;
event
.
sctp_send_failure_event
=
1
;
event
.
sctp_peer_error_event
=
1
;
event
.
sctp_shutdown_event
=
1
;
event
.
sctp_partial_delivery_event
=
1
;
if
(
setsockopt
(
sd
,
IPPROTO_SCTP
,
SCTP_EVENTS
,
&
events
,
sizeof
(
struct
sctp_event_subscribe
)
)
<
0
)
{
8
)
<
0
)
{
SCTP_ERROR
(
"Setsockopt IPPROTO_SCTP_EVENTS failed: %s
\n
"
,
strerror
(
errno
));
close
(
sd
);
...
...
@@ -759,10 +765,16 @@ static int sctp_create_new_listener(
}
}
memset
((
void
*
)
&
event
,
1
,
sizeof
(
struct
sctp_event_subscribe
));
event
.
sctp_data_io_event
=
1
;
event
.
sctp_association_event
=
1
;
event
.
sctp_address_event
=
1
;
event
.
sctp_send_failure_event
=
1
;
event
.
sctp_peer_error_event
=
1
;
event
.
sctp_shutdown_event
=
1
;
event
.
sctp_partial_delivery_event
=
1
;
if
(
setsockopt
(
sd
,
IPPROTO_SCTP
,
SCTP_EVENTS
,
&
event
,
sizeof
(
struct
sctp_event_subscribe
)
)
<
0
)
{
8
)
<
0
)
{
SCTP_ERROR
(
"setsockopt: %s:%d
\n
"
,
strerror
(
errno
),
errno
);
if
(
sd
!=
-
1
)
{
close
(
sd
);
...
...
openair3/SCTP/sctp_primitives_client.c
View file @
d4d07767
...
...
@@ -241,10 +241,16 @@ int sctp_connect_to_remote_host(char *local_ip_addr[],
}
/* Subscribe to all events */
memset
((
void
*
)
&
events
,
1
,
sizeof
(
struct
sctp_event_subscribe
));
event
.
sctp_data_io_event
=
1
;
event
.
sctp_association_event
=
1
;
event
.
sctp_address_event
=
1
;
event
.
sctp_send_failure_event
=
1
;
event
.
sctp_peer_error_event
=
1
;
event
.
sctp_shutdown_event
=
1
;
event
.
sctp_partial_delivery_event
=
1
;
if
(
setsockopt
(
sd
,
IPPROTO_SCTP
,
SCTP_EVENTS
,
&
events
,
sizeof
(
struct
sctp_event_subscribe
)
)
<
0
)
{
8
)
<
0
)
{
SCTP_ERROR
(
"Setsockopt IPPROTO_SCTP_EVENTS failed: %s
\n
"
,
strerror
(
errno
));
return
-
1
;
...
...
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