Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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-AMF
Commits
5b684075
Commit
5b684075
authored
Feb 18, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SCTP issue for RHEL 8,2
parent
1ba52359
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/sctp/sctp_server.cpp
src/sctp/sctp_server.cpp
+5
-2
No files found.
src/sctp/sctp_server.cpp
View file @
5b684075
...
...
@@ -74,6 +74,7 @@ int sctp_server::create_socket(const char* address, const uint16_t port_num) {
if
(
bind
(
socket_
,
(
struct
sockaddr
*
)
&
serverAddr_
,
sizeof
(
serverAddr_
))
!=
0
)
{
Logger
::
sctp
().
error
(
"Socket bind: %s:%d"
,
strerror
(
errno
),
errno
);
return
-
1
;
}
bzero
(
&
events_
,
sizeof
(
events_
));
events_
.
sctp_data_io_event
=
1
;
...
...
@@ -83,6 +84,7 @@ int sctp_server::create_socket(const char* address, const uint16_t port_num) {
socket_
,
IPPROTO_SCTP
,
SCTP_EVENTS
,
&
events_
,
sizeof
(
struct
sctp_event_subscribe
));
listen
(
socket_
,
5
);
return
0
;
}
//------------------------------------------------------------------------------
...
...
@@ -205,13 +207,14 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
payload
,
(
sctp_assoc_id_t
)
sinfo
.
sinfo_assoc_id
,
sinfo
.
sinfo_stream
,
association
->
instreams
,
association
->
outstreams
);
}
return
0
;
}
//------------------------------------------------------------------------------
int
sctp_server
::
sctp_handle_com_down
(
sctp_assoc_id_t
assoc_id
)
{}
int
sctp_server
::
sctp_handle_com_down
(
sctp_assoc_id_t
assoc_id
)
{
return
0
;
}
//------------------------------------------------------------------------------
int
sctp_server
::
sctp_handle_reset
(
const
sctp_assoc_id_t
assoc_id
)
{}
int
sctp_server
::
sctp_handle_reset
(
const
sctp_assoc_id_t
assoc_id
)
{
return
0
;
}
//------------------------------------------------------------------------------
int
sctp_server
::
handle_assoc_change
(
...
...
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