6 #include <osmocom/core/socket.h>
11 #include <netinet/sctp.h>
12 #define OSMO_STREAM_MAX_ADDRS OSMO_SOCK_MAX_ADDRS
18 #define MSG_NOSIGNAL 0
21 #define OSMO_STREAM_MAX_ADDRS 1
26 enum osmo_stream_mode {
27 OSMO_STREAM_MODE_UNKNOWN,
28 OSMO_STREAM_MODE_OSMO_FD,
29 OSMO_STREAM_MODE_OSMO_IO,
35 int stream_sctp_sock_activate_events(
int fd);
36 int stream_setsockopt_nodelay(
int fd,
int proto,
int on);
37 int stream_sctp_recvmsg_wrapper(
int fd,
struct msgb *msg,
const char *log_pfx);
39 int stream_iofd_sctp_send_msgb(
struct osmo_io_fd *iofd,
struct msgb *msg,
int sendmsg_flags);
40 int stream_iofd_sctp_recvmsg_trailer(
struct osmo_io_fd *iofd,
struct msgb *msg,
int ret,
const struct msghdr *msgh);